Routine maintenance
Common cluster operations: bringing a chunkserver in or out of service, and upgrading LeilFS. Adding and removing individual disks on an existing chunkserver is covered separately in Storage device setup/removal; this page covers whole chunkserver nodes and cluster upgrades.
Adding a chunkserver
-
Install
leil-chunkserveron the new node. -
Configure
leil-chunkserver.cfgwith the master's address (MASTER_HOST,MASTER_PORT). -
Create
/etc/saunafs/leil-hdd.cfglisting the storage directories on the new node. -
Start the service:
sudo systemctl start saunafs-chunkserver -
Confirm in the CGI monitor that the new chunkserver appears and that chunks begin replicating onto it.
Removing a chunkserver
Data must be evacuated before the node is taken out, or copies below goal could be lost.
-
Mark every disk of the node in
leil-hdd.cfgwith the*prefix to trigger evacuation (see hdd-config). -
Watch replication drain the node — use
leil fileinfoon affected paths and/or the CGI monitor — until no chunks remain on it. -
Stop the chunkserver service:
sudo systemctl stop saunafs-chunkserver -
Remove the node from any
leil-topology.cfgentries.
Never physically remove a chunkserver until you have confirmed every chunk it held has been replicated elsewhere. Pulling it early can drop copies below the configured goal and cause data loss.
Upgrading LeilFS
LeilFS follows semantic versioning: minor and patch upgrades within a major version keep backward compatibility and can be done with rolling restarts. Major upgrades may need a migration step.
- Read the release notes and the Upgrade/Downgrade notes for the target version.
- Upgrade in this order: master → shadow masters → metaloggers → chunkservers → clients.
- For major upgrades, run the provided migration helper scripts (
saunafs-migrations). - Verify health after the upgrade with
leil-admin infoand by checking the logs.
The strict upgrade order keeps components that speak newer protocol versions behind those that must remain compatible. Do not upgrade chunkservers or clients ahead of the master.