Systemd
Though not required, it is advisable to use systemd to run the flexFS metadata server. Here is a functional sample service file:
/etc/systemd/system/flexfs-meta.service
[Unit]
Description=flexFS Metadata Service
Requires=network-online.target
After=network-online.target
[Service]
ExecStart=/sbin/meta.flexfs start --iamRole
LimitNOFILE=1000000
Restart=on-failure
RestartSec=5
TimeoutSec=43200
[Install]
WantedBy=multi-user.target
warning
If you are not using AWS or have not enabled the IAM instance role to the host, remove the --iamRole
flag from the start command above. Not doing so may lead to object storage authentication failures.
note
The above service will start the metadata server using the default in-memory
snapshot store. If you want to use the on-disk
sqlite store instead, add the flag --storeType sqlite
to the start command.
To enable and start the service:
sudo systemctl daemon-reload
sudo systemctl enable flexfs-meta.service
sudo systemctl start flexfs-meta
And one way to view the server logs:
sudo journalctl -u flexfs-meta -n 1000 -f --no-pager
Start options
You can view all start command options by running:
sudo meta.flexfs start -h