Lizardfs

From The World according to Vissie
Jump to navigation Jump to search

Setup

Setup can not be easier.....

https://docs.lizardfs.com/quickstart.html

Setup tips

Ports to open on chunk server

sudo ufw allow 9419-9422
sudo mkdir /usr/disk-img/
sudo touch /usr/disk-img/10gig.img
sudo truncate -s 10G /usr/disk-img/10gig.img
sudo apt-get install xfsprogs
sudo mke2fs -t ext4 -F /usr/disk-img/10gig.img
sudo mkfs.xfs /dev/sdb1
sudo mount -o loop /tmp/tmpdisk /media/10gig

Firewall

http://www.micronarrativ.org/2016/2016-lizardfs.html

I am missing an overview from LizardFS about which components need access to where and what. So far I configured the following which seems to work:

master:
 9419/tcp incoming metalogger/shadow master
 9420/tcp incoming chunkserver
 9421/tcp incoming client/mount
 9424/tcp incoming tapeserver
chunkserver:
 9422/tcp incoming client/mount

So the communication looks like this:

extern                -> lizardfs-cgi       : 9425/tcp
extern                -> lizardfs-master    : 9421/tcp
lizardfs-chunkserver  -> lizardfs-master    : 9420/tcp
lizardfs-metalogger   -> lizardfs-master    : 9419/tcp
lizardfs-master       -> lizard-chunkserver : 9422/tcp
sudo ufw allow from 12.34.56.78 to any port 9419
sudo ufw allow from 11.22.33.44 to any port 9421