MooseFS installation notes

Source: Internet
Author: User
Referring to the translation of moosefs-step-by-step-tutorial-cn by Lao Tian, I also started to deploy the test environment and now I have sorted out the installation process. Installation environment MasterServer192.168.72.32 & nbsp; Centos5.4 (64X) MetaloggerServer192.168.17.33 & nbs

Referring to the translation of moosefs-step-by-step-tutorial-cn by Lao Tian, I also started to deploy the test environment and now I have sorted out the installation process.
Installation environment
Master Server
192.168.72.32 Centos5.4 (64X)

Metalogger Server
192.168.17.33 Centos5.4 (64X)

Chunk Servers
192.168.17.34 Centos5.4 (64X)
192.168.17.35 Centos5.4 (64X)

Client Server
192.168.17.36 Centos5.4 (64X)
192.168.17.41 Centos5.4 (64X)
192.168.17.42 Centos5.4 (64X)
192.168.17.43 Centos5.4 (64X)

Master installation
Mkdir-p/home/install/moosefs/
Cd/home/install/moosefs/
Groupadd mfs
Useradd-g mfs

Wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
Tar-zxvf mfs-1.6.15.tar.gz
Cd mfs-1.6.15
. /Configure -- prefix =/usr -- sysconfdir =/etc -- localstatedir =/www/lib -- with-default-user = mfs -- with-default-group = mfs -- disable-mfschunkserver -- disable-
Mfsmount
Make & make install

Cd/etc/
Cp mfsmaster. cfg. dist mfsmaster. cfg
Cp mfsmetalogger. cfg. dist mfsmetalogger. cfg
Cp mfsexports. cfg. dist mfsexports. cfg

Vi mfsexports. cfg

Reference

192.168.0.0/16/rw, alldirs, maproot = 0


Cd/www/lib/mfs
Cp metadata. mfs. empty metadata. mfs

Vi/etc/hosts

Reference

192.168.17.32 mfsmaster


Run mfs service
/Usr/sbin/mfsmaster start

Reference

Master <-> metaloggers module: listen on X: 9419
Master <-> chunkservers module: listen on *: 9420
Master server module: listen on *: 9421


Operation Monitoring Platform
/Usr/sbin/mfscgiserv

Reference

Starting simple cgi server (host: any, port: 9425, rootpath:/usr/share/mfscgi)

 

Backup server (metalogger) installation
Mkdir-p/home/install/moosefs/
Cd/home/install/moosefs/
Groupadd mfs
Useradd-g mfs

Wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
Tar-zxvf mfs-1.6.15.tar.gz
Cd mfs-1.6.15
. /Configure -- prefix =/usr -- sysconfdir =/etc -- localstatedir =/www/lib -- with-default-user = mfs -- with-default-group = mfs -- disable-mfschunkserver -- disable-
Mfsmount
Make & make install

Cd/etc/
Cp mfsmetalogger. cfg. dist mfsmetalogger. cfg

Vi/etc/hosts

Reference

192.168.17.32 mfsmaster


/Usr/sbin/mfsmetalogger start

Chunk servers installation
Mkdir-p/home/install/moosefs/
Cd/home/install/moosefs/
Groupadd mfs
Useradd-g mfs

Wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
Tar-zxvf mfs-1.6.15.tar.gz
Cd mfs-1.6.15
./Configure -- prefix =/usr -- sysconfdir =/etc -- localstatedir =/www/lib -- with-default-user = mfs -- with-default-group = mfs -- disable-mfsmaster
Make & make install

Cd/etc/
Cp mfschunkserver. cfg. dist mfschunkserver. cfg
Cp mfshdd. cfg. dist mfshdd. cfg

Vi/etc/hosts

Reference

192.168.17.32 mfsmaster


Mkdir/www/mfschunks
Chown-R mfs: mfs/www/mfschunks

Vi/etc/mfshdd. cfg

Reference

/Www/mfschunks


/Usr/sbin/mfschunkserver start

Reference

Working directory:/www/lib/mfs
Lockfile created and locked
Initializing mfschunkserver modules...
Hdd space manager: scanning folder/www/mfschunks /...
Hdd space manager:/www/mfschunks/: 0 chunks found
Hdd space manager: scanning complete
Main server module: listen on *: 9422.
No charts data file-initializing empty charts
Mfschunkserver daemon initialized properly


Client Server installation
Groupadd mfs
Useradd-g mfs

Mkdir-p/home/install/moosefs/
Cd/home/install/moosefs/
Wget http://m.install.server.com/install/moosefs/fuse-2.7.6.tar.gz
Tar-zxvf fuse-2.7.6.tar.gz
Cd fuse-2.7.6
./Configure -- prefix =/usr
Make
Make install
Be sure to run the following export command. Otherwise, the mount to the moosefs system will fail.

Reference

Export PKG_CONFIG_PATH =/usr/lib/pkgconfig: $ PKG_CONFIG_PATH


Cd ../
Wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
Tar-zxvf mfs-1.6.15.tar.gz
Cd mfs-1.6.15
. /Configure -- prefix =/usr -- sysconfdir =/etc -- localstatedir =/www/lib -- with-default-user = mfs -- with-default-group = mfs -- disable-mfsmaster -- disable-
Mfschunkserver
Make & make install

Vi/etc/hosts

Reference

192.168.17.32 mfsmaster


Start the mounting operation
Mkdir-p/mnt/mfs
/Usr/bin/mfsmount/mnt/mfs-H mfsmaster

Installation is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.