Chunkservers
MooseFS Chunkservers store the actual data blocks (chunks) that make up files in the filesystem.
Each Chunkserver requires its own local storage and communicates directly with the Master Server to coordinate chunk placement, replication, EC formatting, and recovery operations.
This chapter explains how to install and configure Chunkservers for MooseFS Pro.
Installing the MooseFS Pro Chunkserver Package
Install the moosefs-pro-chunkserver package using your distribution’s package manager.
Debian/Ubuntu (APT-based systems)
apt-get install moosefs-pro-chunkserver
RedHat/CentOS (YUM-based systems)
yum install moosefs-pro-chunkserver
Preparing Configuration Files
After installation, navigate to the MooseFS configuration directory:
cd /etc/mfs
Copy the default configuration templates:
cp mfschunkserver.cfg.sample mfschunkserver.cfg
cp mfshdd.cfg.sample mfshdd.cfg
Those configuration files are described in a separate chapter.
Ensuring Proper Permissions
The Chunkserver process runs as user mfs, so this user must have full read/write permissions on the mounted chunk directories. Set ownership as follows:
chown -R mfs:mfs /mnt/mfschunks1
chown -R mfs:mfs /mnt/mfschunks2
This is required so the Chunkserver can create necessary files, including the .lock file that indicates active use of the directory.
Starting the Chunkserver
Once configuration and permissions are set correctly, start the Chunkserver process.
Using SysV init
service moosefs-pro-chunkserver start
Using systemd
systemctl start moosefs-pro-chunkserver.service
Installing Chunkservers on Multiple Machines
Repeat all installation and configuration steps on every machine intended to act as a Chunkserver.
In this example, Chunkservers should be installed on:
192.168.1.101
192.168.1.102
192.168.1.103
Each Chunkserver will register with the Master and begin storing chunks as soon as it is operational.
Verifying Chunkserver Status
After starting the Chunkservers, open the MooseFS CGI Monitor in your browser:
http://<gui-host>:9425