Guest User

Untitled

a guest
Jun 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. # Debian 6.0 GlusterFS
  2.  
  3. # sometimes thies device is missing
  4. mknod /dev/fuse c 10 229
  5. # install the packages
  6. apt-get install glusterfs-client glusterfs-server
  7. # create a new volume using /gluster/server on test1 and test2 as replicated file store
  8. glusterfs-volgen --name clusteredfilestore test1:/gluster/server test2:/gluster/server --raid 1
  9. # make this the default server configuration
  10. cp <hostname>-clusteredfilestore-export.vol /etc/glusterfs/glusterfsd.vol
  11. # you also get a client configuration, make it the default
  12. cp clusteredfilestore-tcp.vol /etc/glusterfs/glusterfs.vol
  13. # restart the server
  14. /etc/init.d/glusterfs-server restart
  15.  
  16. # you can add the gluster share to fstab, and you can samba it from there if you wish.
  17. /etc/glusterfs/glusterfs.vol /gluster/client glusterfs defaults,_netdev,noatime 0 0
  18.  
  19. # that will write changes to both backend servers, and will automatically look to the other if one
  20. # 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