Creating the required directories
For the purposes of this setup, we will set up everything on one machine. We need three directories: Two to store data, and one for client. In a production scenario, the two directories storing data would be dedicated drives, but for now we will set them up as simple directories as that works as well for testing purposes.
mkdir /mnt/hd1 # Storage 1
mkdir /mnt/hd2 # Storage 2
mkdir /mnt/client # Client
You need to set the correct user and permissions for the storage directories. The user required can be changed in the configuration files, but the default is saunafs. Note that if the directory is usually mounted, it's usually a good practice to make sure the unmounted directory is owned by any other user other than saunafs (root is a good choice). This is a extra layer of protection to ensure that SaunaFS does not write to unmounted directories.
chown saunafs:saunafs /mnt/hd1
chmod 755 /mnt/hd1
chown saunafs:saunafs /mnt/hd2
chmod 755 /mnt/hd2