ODROID HC1/HC2/XU4 + Newer GlusterFS

ODROID HC1/HC2 have a single sata port. The HC1 supports 2.5" drives with 5V 4A over the barrel plug, the HC2 supports 3.5" AND 2.5" drives at 12V 2A over the barrel plug - from a stepping power supply. No, the HC1 can’t take 12V, it’s missing the step-down circuit. XU4 requires USB drives, but can still do it. All three use the same armhf (not arm64) chip.

GlusterFS is a distributed filesystem for managing files across disks on multiple systems - it can be used instead of RAID, as an instantaneous replacement to Rsync. Development moves faster than Debian, so this covers getting newer packages from testing.

However, I want something newer than GlusterFS 5. So, let’s configure some packages from Debian Bullseye (testing).

apt -t testing install glusterfs-server

Go ahead and install GlusterFS 5 anyways - this will get the maximum number of stable packages possible, which will make the inevitable testing version bump smoother.

Now, adding testing as an option.

#Currently, Buster IS Stable

sudo nano /etc/apt/apt.conf.d/99defaultrelease



APT::Default-Release "stable";



sudo nano /etc/apt/sources.list.d/testing.list



deb     http://deb.debian.org/debian/    testing main contrib non-free
deb-src http://deb.debian.org/debian/    testing main contrib non-free

Get those new repos

apt update

Now, this should pull ONLY the packages needed from testing

apt -t testing install glusterfs-server

Clean out the old gluster dependancies

apt autoremove

The gluster service name is very inconsistent across versions, as of writing 7.2-2 is

service glusterd start
service glusterd status
systemctl enable glusterd

Now you’re set to continue with step 5 of the GlusterFS guide.
https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/#step-5-configure-the-trusted-pool





( thanks to
https://ultra-technology.org/linux_for_beginners/install-the-latest-package-version-debian-using-sid/ , this version is a bit less aggressive)

ADDITIONAL NOTES:

https://docs.gluster.org/en/latest/Developer-guide/Building-GlusterFS/
https://github.com/gluster/glusterfs.git

7.2 will compile from git, using debian instructions, will need the additional package of uuid-dev - libraries will be placed in /usr/local/lib instead of /usr/lib/arm-linux-gnueabihf - and binaries can not find those libraries.

Communications aren’t encrypted by default. https://www.redhat.com/en/blog/hardening-gluster-installations-tls