Setup glusterfs server

Suppose you want to export the ext3 volume /dev/sdb1. We create /etc/glusterfs/glusterfsd.vol as the following.

Underlying volume

Suppose /dev/sdb1 already mounted on /mnt/sdb1.

volume posix1
  type storage/posix
  option directory /mnt/sdb1
end-volume

Add posix locks function to the volume

volume locks1
    type features/locks
    subvolumes posix1
end-volume

Use subvolumes to specify the layer to place this on top of.

Add quota to the volume

volume quota1
  type features/quota
  option disk-usage-limit 2000000000  # 2GB
  subvolumes locks1
end-volume

Add I/O enhancement

volume brick1
    type performance/io-threads
    option thread-count 8
    subvolumes quota1
end-volume

Lastly, define network access

volume server-tcp
    type protocol/server
    option transport-type tcp
    option auth.addr.brick1.allow *    
    option transport.socket.listen-port 6996
    option transport.socket.nodelay on
    subvolumes brick1
end-volume

All in one file

glusterfsd.vol
volume posix1
  type storage/posix
  option directory /mnt/sdb1
end-volume

volume locks1
    type features/locks
    subvolumes posix1
end-volume

volume quota1
  type features/quota
  option disk-usage-limit 2000000000  # 2GB
  subvolumes locks1
end-volume

volume brick1
    type performance/io-threads
    option thread-count 8
    subvolumes quota1
end-volume

volume server-tcp
    type protocol/server
    option transport-type tcp
    option auth.addr.brick1.allow *    
    option transport.socket.listen-port 6996
    option transport.socket.nodelay on
    subvolumes brick1
end-volume

Reference

ha/setup_glusterfs_server.txt · Last modified: 2010-08-26 11:47 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0