How do i install glusterfs?
-
Link: http://gluster.readthedocs.io/en/latest/Quick-Start-Guide/Quickstart/
Pre-reqs on AWS
- Have at least two nodes/servers
- An active network connection
- Have the root disk + one other disk for glusterfs
- Advised to have /var/log on separate partition, so does not fill up /var
- Install wget
- Add repo if required from https://download.gluster.org
Format and mount the bricks on both nodes
gluster1> sudo fdisk /dev/xvdb Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x0c322b21 Device Boot Start End Blocks Id System /dev/xvdb1 2048 4194303 2096128 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. gluster1> sudo mkfs.xfs -i size=512 /dev/xvdb1 meta-data=/dev/xvdb1 isize=512 agcount=4, agsize=131008 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0, sparse=0 data = bsize=4096 blocks=524032, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 gluster1> mkdir -p /data/brick1 gluster1> sudo -i # echo '/dev/xvdb1 /data/brick1 xfs defaults 1 2' >> /etc/fstab gluster1> mount -a && mount gluster1> df -h /data/brick1 Filesystem Size Used Avail Use% Mounted on /dev/xvdb1 2.0G 33M 2.0G 2% /data/brick1
Looking at the downloads area of glusterfs for RHEL, the RPM's are available from https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.9/
Installing GlusterFS on both nodes
gluster1> yum-config-manager --add-repo https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.9/ gluster1> yum install glusterfs-server
© Lightnetics 2024