Blog · 2018-09-21 · Wojciech

Things to do before installing MooseFS

Two things every MooseFS cluster needs before the first package is installed: a DNS zone where all Master Server IPs resolve as mfsmaster, and the official MooseFS repository added to your OS. Get these wrong and the multi-master failover won’t work.

This article is part of the MooseFS installation guide series:

  1. How to set up a DNS server for MooseFS on Debian/Ubuntu
  2. Things to do before installing MooseFS
  3. How to install MooseFS
  4. MooseFS basic usage

For the purpose of these articles, we will assume that your machines have the following IP addresses:

Master Servers:

  • Leader: 192.168.1.1
  • Follower/Metalogger: 192.168.1.2

Chunkservers:

  • 192.168.1.101
  • 192.168.1.102
  • 192.168.1.103

Clients (Users’ computers):

  • 192.168.2.x

Configure Domain Name Service

Before you start installing MooseFS, you need to have working DNS. It’s needed for MooseFS to work properly with several Master Servers because DNS can resolve one hostname as more than one IP address.

All IPs of machines which will be Master Servers must be included in the DNS configuration file and resolved as “mfsmaster” (or any other selected name), e.g.:

mfsmaster IN A 192.168.1.1 ; address of first Master Server
mfsmaster IN A 192.168.1.2 ; address of second Master Server

You can find more information about configuring a DNS server in this article.

Add MooseFS repository

To install MooseFS you need to add MooseFS Official Supported Repositories to your system. This process, together with detailed instructions for specific operating systems, is described at moosefs.com/download/.

At this time there are repositories available for:

  • Ubuntu/Debian
  • RHEL/CentOS/Fedora
  • FreeBSD
  • MacOS X
  • Raspberry Pi 3
Repository branches

Our repository contains two branches:

  • moosefs-3
  • moosefs-2

Both branches contain stable and production-ready MooseFS versions. At the time of writing this guide, the moosefs-3 branch contains version 3.0.101, and the moosefs-2 branch contains version 2.0.91-1. The moosefs-3 branch is the default and you don’t need to make any changes in the default URL (http://ppa.moosefs.com/moosefs-3/). If you want to use the moosefs-2 branch, you just need to replace moosefs-3 with moosefs-2 after http://ppa.moosefs.com/ and before apt, yum, freebsd or osx, so the URL will look like:

http://ppa.moosefs.com/moosefs-2/[rest of url]

It is also possible to use a version number instead of a “branch” name if you want to upgrade to a specific version of MooseFS (e.g. 3.0.101):

http://ppa.moosefs.com/3.0.101/[rest of url]

If you want to use the last option, please remember you need to manually change the version number on each server to the selected one before doing an upgrade.

Differences in package names between MooseFS and MooseFS Pro

MooseFS and MooseFS Pro packages are named according to the following pattern:

MooseFS moduleMooseFS ProMooseFS
Master Servermoosefs-pro-mastermoosefs-master
Chunkservermoosefs-pro-chunkservermoosefs-chunkserver
Metaloggermoosefs-pro-metaloggermoosefs-metalogger
Clientmoosefs-pro-clientmoosefs-client
CLI Interfacemoosefs-pro-climoosefs-cli
CGI Interfacemoosefs-pro-cgimoosefs-cgi
CGI Servermoosefs-pro-cgiservmoosefs-cgiserv
Netdumpmoosefs-pro-netdumpmoosefs-netdump
Supervisormoosefs-pro-supervisorn/a

Summary

Now you know which steps you should take before installing MooseFS. You can now install it — more in the next article in this series.