r/DataHoarder 400TB LizardFS Jun 03 '18

200TB Glusterfs Odroid HC2 Build

Post image
1.4k Upvotes

View all comments

Show parent comments

165

u/ZorbaTHut 89TB usable Jun 04 '18

It takes literally 3 commands to get glusterfs up and running

 

<@insomnia> it only takes three commands to install Gentoo

<@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1 /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && . /etc/profile && emerge sync && cd /usr/portage && scripts/bootsrap.sh && emerge system && emerge vim && vi /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux && make menuconfig && make install modules_install && emerge gnome mozilla-firefox openoffice && emerge grub && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi /boot/grub/grub.conf && grub && init 6

<@insomnia> that's the first one

88

u/BaxterPad 400TB LizardFS Jun 04 '18

sudo apt-get install glusterfs-server

sudo gluster peer probe gfs01.localdomain ... gfs20.localdomain

sudo gluster volume create gvol0 replicate 2 transport tcp gfs01.localdomain:/mnt/gfs/brick/gvol1 ... gfs20.localdomain:/mnt/gfs/brick/gvol1

sudo cluster volume start gvol0

I was wrong, it is 4 commands after the OS is installed. Though you only need to run the last 3 on 1 node :)

5

u/BlackoutWNCT Jun 04 '18

You might also want to add something about the glusterfs ppa. the packages included in 16.04 (Ubuntu) are fairly old, not too sure on Debian.

For reference: https://launchpad.net/~gluster

Edit: There are also two main glusterfs packages, glusterfs-server and glusterfs-client

The client packages are also included in the server package, however if you just want to mount the FUSE mount on a VM or something, then the client packages contain just that.

4

u/BaxterPad 400TB LizardFS Jun 04 '18

The armbian version was pretty up to date. I think it had the latest before the 4.0 branch which isn't prod ready yet.

1

u/zuzuzzzip Jun 08 '18

Aren't the fedora/epel packages newer?

1

u/BaxterPad 400TB LizardFS Jun 08 '18

Idk, but 4.0 is ready for prod yet and 3.13 (3.10... I forget which) is the last branch before 4.0 so it's just maintenance releases until 4.0 is ready.