Missing file
Description:
After installation of moosefs package, the file /var/lib/mfs/metadata.mfs.empty
is missing. The service moosefs-master.service
will fail to start saying:
Apr 25 13:38:37 kvm06 mfsmaster[9341]: [info] loading metadata ...
Apr 25 13:38:37 kvm06 mfsmaster[9341]: [error] can't find metadata.mfs - try using option '-a'
This tells us to use the -a
parameter.
When the command mfsmaster -c /etc/mfs/mfsmaster.cfg -a
is ran it will look for the missing file to create a new, empty /var/lib/mfs/metadata.mfs
file.
To manually create the template file:
echo -n 'MFSM NEW' > /var/lib/mfs/metadata.mfs.empty
After this, running mfsmaster -c /etc/mfs/mfsmaster.cfg -a
no longer fails and succesfully creates /var/lib/mfs/metadata.mfs
.
Use pgrep -f "mfsmaster -c /etc/mfs/mfsmaster.cfg -a
and kill the process, then we can start the service moosefs-master.service
succesfully.
Additional info:
- package version(s): moosefs 4.57.6-1
- link to upstream bug report, if any: https://github.com/moosefs/moosefs/discussions/659
Steps to reproduce:
- sudo pacman -S moosefs
- ls -al /var/lib/mfs/ #observe the file is missing
- systemctl start moosefs-master.service
- journalctl -u moosefs-master.service