Skip to content

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:

Steps to reproduce:

  1. sudo pacman -S moosefs
  2. ls -al /var/lib/mfs/ #observe the file is missing
  3. systemctl start moosefs-master.service
  4. journalctl -u moosefs-master.service
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information