Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Debian 6.0 GlusterFS
- # sometimes thies device is missing
- mknod /dev/fuse c 10 229
- # install the packages
- apt-get install glusterfs-client glusterfs-server
- # create a new volume using /gluster/server on test1 and test2 as replicated file store
- glusterfs-volgen --name clusteredfilestore test1:/gluster/server test2:/gluster/server --raid 1
- # make this the default server configuration
- cp <hostname>-clusteredfilestore-export.vol /etc/glusterfs/glusterfsd.vol
- # you also get a client configuration, make it the default
- cp clusteredfilestore-tcp.vol /etc/glusterfs/glusterfs.vol
- # restart the server
- /etc/init.d/glusterfs-server restart
- # you can add the gluster share to fstab, and you can samba it from there if you wish.
- /etc/glusterfs/glusterfs.vol /gluster/client glusterfs defaults,_netdev,noatime 0 0
- # that will write changes to both backend servers, and will automatically look to the other if one
- # falls over. If you serve it from 2 samba servers, you will have to set up ip failover for that too.
Add Comment
Please, Sign In to add comment