Created
February 20, 2014 05:54
-
-
Save dannysheehan/9107750 to your computer and use it in GitHub Desktop.
Create Gluster File system with 6 stripes and 2 replicas across 12 nodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On every node in gluster. Turn /scratch disk into brick. | |
b01b01:~ # df -h /scratch | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/sda5 243G 6.8G 224G 3% /scratch | |
umount /scratch | |
mkfs.xfs -f -i size=512 /dev/sda5 | |
mkdir -p /glusterfs/brick1 | |
/etc/fstab | |
#/dev/sda5 /scratch ext3 defaults 0 0 | |
/dev/sda5 /glusterfs/brick1 xfs defaults 0 0 | |
mount /glusterfs/brick1 | |
On any one node in the cluster create and start the volume | |
gluster volume create gscratch stripe 6 replica 2 transport tcp \ | |
b01a01-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a02-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a03-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a04-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a05-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a06-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a07-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a08-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a09-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a10-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a11-ib:/glusterfs/brick1/vol_gscratch \ | |
b01a12-ib:/glusterfs/brick1/vol_gscratch | |
gluster> volume list | |
gscratch | |
gluster> volume start gscratch | |
gluster> volume status | |
On each node in the gluster, mount the new now larger and distributed /scratch volume | |
/etc/fstab | |
localhost:/gscratch /scratch glusterfs defaults,_netdev 0 3 | |
mount /scratch | |
chmod 1777 /scratch | |
wow. It's bigger. | |
b01a01:~ # df -h /scratch/ | |
Filesystem Size Used Avail Use% Mounted on | |
localhost:/gscratch 1.5T 3.5G 1.5T 1% /scratch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment