Skip to main content

Installing MooseFS Client on Linux

Debian-based systems

apt-get install moosefs-pro-client

RedHat-based systems

yum install moosefs-pro-client

Mounting a MooseFS Share

Assume you want to mount the MooseFS share to the directory /mnt/mfs on the client machine. Run:

mkdir -p /mnt/mfs
mfsmount /mnt/mfs -H mfs-master

To verify that the mount is working, run:

df -h | grep mfs

Example output:

/storage/mfschunks/mfschunks1   2.0G   69M   1.9G   4%   /mnt/mfschunks1
/storage/mfschunks/mfschunks2 2.0G 69M 1.9G 4% /mnt/mfschunks2
mfs#mfsmaster:9421 3.2G 0 3.2G 0% /mnt/mfs

Repeat the installation and mount steps on every machine intended to act as a MooseFS Client (e.g., hosts in the 192.168.2.x network).

Enabling Automount at System Boot

To enable MooseFS client automount during system boot:

  1. Ensure that the fuse and fuse-libs packages are installed.
  2. Add the following entry to /etc/fstab:
mfsmount /mnt/mfs fuse defaults,mfsmaster=mfsmaster.example.lan,mfsport=9421 0 0

When MooseFS Client Runs on the Same Machine as MooseFS Master Server

Use the following /etc/fstab entry instead:

mfsmount /mnt/mfs fuse defaults,mfsdelayedinit,mfsmaster=mfsmaster.example.lan,mfsport=9421 0 0