Difference between revisions of "Installing Glusterfs on Centos-7 using Vagrant"
From MyWiki
Line 1: | Line 1: | ||
+ | Reference - https://wiki.centos.org/HowTos/GlusterFSonCentOS<br> | ||
+ | |||
<source lang="text"> | <source lang="text"> | ||
samba-vfs-glusterfs | samba-vfs-glusterfs |
Latest revision as of 09:18, 10 August 2017
Reference - https://wiki.centos.org/HowTos/GlusterFSonCentOS
samba-vfs-glusterfs glusterfs-server glusterfs-libs glusterfs-client-xlators glusterfs-api glusterfs-fuse glusterfs glusterfs-cli yum install centos-release-gluster37 # pvcreate /dev/vdb Physical volume "/dev/vdb" successfully created Create a Volume Group on /dev/vdb: # vgcreate vg_gluster /dev/vdb Volume group "vg_gluster" successfully created Create brick1 and brick2 Logical Volumes for XFS bricks on both cluster nodes: # lvcreate -L 5G -n brick1 vg_gluster Logical volume "brick1" created. # lvcreate -L 5G -n brick2 vg_gluster Logical volume "brick2" created. Setup XFS file systems: # mkfs.xfs /dev/vg_gluster/brick1 # mkfs.xfs /dev/vg_gluster/brick2 Create mount points and mount XFS bricks: # mkdir -p /bricks/brick{1,2} # mount /dev/vg_gluster/brick1 /bricks/brick1 # mount /dev/vg_gluster/brick2 /bricks/brick2 Extend the /etc/fstab: /dev/vg_gluster/brick1 /bricks/brick1 xfs defaults 0 0 /dev/vg_gluster/brick2 /bricks/brick2 xfs defaults 0 0 Result: Both cluster nodes have two XFS partitions mounted to /bricks/brick{1,2} folders.