Differences
This shows you the differences between two versions of the page.
— | glusterfs [2015/08/07 17:09] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== glusterfs ====== | ||
+ | * [[Filesystems]] | ||
+ | * [[mkfs.xfs]] | ||
+ | |||
+ | * uses NFS | ||
+ | * very few dependencies | ||
+ | * can run on top of any filesystem | ||
+ | * automatic failover | ||
+ | |||
+ | Things I'm not sure about: | ||
+ | |||
+ | * no-metadata server architecture | ||
+ | * noted some performance slowdown with Samba | ||
+ | * using any filesystem means that they' | ||
+ | |||
+ | ==== Setup ==== | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | Create an format a partition for the node: | ||
+ | |||
+ | < | ||
+ | mkfs.xfs -i size=512 /dev/sdb1 | ||
+ | mount /dev/sdb1 / | ||
+ | mkdir / | ||
+ | </ | ||
+ | |||
+ | Add an entry to ''/ | ||
+ | |||
+ | < | ||
+ | /dev/sdb1 / | ||
+ | </ | ||
+ | |||
+ | Mount the drive, and start the glusterfs daemon: | ||
+ | |||
+ | < | ||
+ | mount -a | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Have each server probe each other. On server1: | ||
+ | |||
+ | < | ||
+ | gluster peer probe server2 | ||
+ | </ | ||
+ | |||
+ | On server2: | ||
+ | |||
+ | < | ||
+ | gluster peer probe server1 | ||
+ | </ | ||
+ | |||
+ | On both servers, create the gluster volume directory: | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | </ | ||
+ | |||
+ | Then, from either server, create the gluster volume: | ||
+ | |||
+ | < | ||
+ | gluster volume create gv0 replica 2 server1:/ | ||
+ | gluster volume start gv0 | ||
+ | </ | ||
+ | |||
+ | You can check the status of the volume on either server: | ||
+ | |||
+ | < | ||
+ | gluster volume info | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Volume Name: gv0 | ||
+ | Type: Replicate | ||
+ | Status: Started | ||
+ | Number of Bricks: 2 | ||
+ | Transport-type: | ||
+ | Bricks: | ||
+ | Brick1: gluster1:/ | ||
+ | Brick2: gluster2:/ | ||
+ | </ | ||
+ | |||
+ | If the status is not started, check the logs in ''/ |