Configuring and running master and chunkserver
Copy the configuration files
sudo cp /usr/share/doc/saunafs-master/examples/sfsmaster.cfg /etc/saunafs/
sudo cp /usr/share/doc/saunafs-chunkserver/examples/sfschunkserver.cfg /etc/saunafs/
sudo cp /usr/share/doc/saunafs-chunkserver/examples/sfshdd.cfg /etc/saunafs/
In the new sfshdd.cfg, uncomment the lines with /mnt/hd1 and /mnt/hd2 This should be enough to work, but if you named your master host something other than sfsmaster (or if you are running master on another IP), you also need to uncomment this line in /etc/saunafs/sfschunkserver.cfg and change the value to something else:
MASTER_HOST = <master ip address/name>
Start both master server and chunkserver
For the first run of master, you will need an empty metadata file for master, otherwise it will not start.
cp -vib /var/lib/saunafs/metadata.sfs.empty /var/lib/saunafs/metadata.sfs
Please note that usage of cp -biv
is for avoiding potential existing metadata overwriting.
There is a risk that one will execute this comand (eg. from history) on existing running instalation of SaunaFS.
sudo systemctl start saunafs-master
sudo systemctl start saunafs-chunkserver
They should start successfully.