moosefs-1.6.10 安装手记

简介:
Moosefs-1.6.10 INSTALL
 
Forms 1
rule
OS
ip
Service
Host quantity
Master
Centos 5.3
192.168.0.19
Mfsmaster,mfsmetalogger
1
chunkserver
Centos5.3/freebsd7.*
192.168.0.71~74
chunkserver
4
Mfs client
Centos5.3/freebsd7.*
192.168.0.0/24
mfsmount
several
 
Use software:
1 fuse-2.7.4.tar.gz
2 mfs-1.6.10.tar.gz
 
 
Master install and running steps:
1 add mfs user :useradd mfs –s /sbin/nologin
 
2 install mfs: tar zxvf mfs-1.6.10.tar.gz; cd mfs-1.6.10; ./configure –prefix=/usr/local/mfs –with-default-user=mfs –with-default-group=mfs; make ; make install
 
3 produce and modify configuration file:
(1) cd /usr/local/mfs/etc ; cp mfsmaster.cfg.dist mfsmaster.cfg ; cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
(2) vi mfsmetalogger.cfg - à   MASTER_HOST = 192.168.0.19
(3) mkdir /var/run/mfs ; chown –R mfs:mfs /var/run/mfs
 
4 running mfsmaster:
(1) cd /usr/local/mfs ; sbin/mfsmaster start
(2) sbin/mfsmetalogger start
(3) check process: ps aux | grep mfsmaster
(4) check system log: tail –f /var/log/messages
(5) check network status: netstat –an | grep tcp
tcp4       0     52  192.168.0.19.22        192.168.1.252.49020    ESTABLISHED
tcp4       0      0  192.168.0.19.9420      192.168.0.75.16178     ESTABLISHED
tcp4       0      0  192.168.0.19.9420      192.168.0.72.42870     ESTABLISHED
tcp4       0      0  192.168.0.19.9420      192.168.0.71.2740      ESTABLISHED
tcp4       0      0  192.168.0.19.9420      192.168.0.73.38114     ESTABLISHED
tcp4       0      0  192.168.0.19.9419      192.168.0.19.25712     ESTABLISHED
tcp4            0  *.9421                 *.*                    LISTEN
tcp4       0      0  *.9420                 *.*                    LISTEN
tcp4       0      0  *.9419                 *.*                    LISTEN
…………………….(omitted)…………………………..
 
Everything seems to be fine!!!!!
 
 
Chunkserver install and running steps:
1 add mfs user :useradd mfs –s /sbin/nologin
 
2 install mfs: tar zxvf mfs-1.6.10.tar.gz; cd mfs-1.6.10; ./configure –prefix=/usr/local/mfs –with-default-user=mfs –with-default-group=mfs; make ; make install
 
3 produce and modify configuration file:
(1) cd /usr/local/mfs/etc ; cp mfschunkserver.cfg.dist mfschunkser.cfg ; cp mfshdd.cfg.dist  mfshdd.cfg
(2) vi mfschunkserver.cfg - à   MASTER_HOST = 192.168.0.19
(3) vi mfshdd.cfg - à   /data ( It is a separate partition)
(4) mkdir /var/run/mfs ; chown –R mfs:mfs /var/run/mfs
(5) chown –R mfs:mfs /data
 
4 running mfsmaster:
(1) cd /usr/local/mfs ; sbin/mfschunkserver start
(2) check process: ps aux | grep mfsmaster
(3) check system log: tail –f /var/log/messages
(4) check network status: netstat –an | grep tcp
(5) check directory /data ,  Observed the existence of a file or directory: ls –al /data
[root@mfs-1 etc]# ls -al /data/
total 1036
drwxr-xr-x 258 mfs  mfs  4096 Dec 23 11:59 .
drwxr-xr-x  24 root root 4096 Dec 22 10:17 ..
drwxr-x---   2 mfs  mfs  4096 Dec 23 11:59 00
drwxr-x---   2 mfs  mfs  4096 Dec 23 11:59 01
drwxr-x---   2 mfs  mfs  4096 Dec 23 11:59 02
drwxr-x---   2 mfs  mfs  4096 Dec 23 11:59 03
………………………………
Everything seems to be fine!!!!!
 
 
Mfs client install and mount operation steps:
1 add mfs user :useradd mfs –s /sbin/nologin
 
2 install mfs: tar zxvf mfs-1.6.10.tar.gz; cd mfs-1.6.10; ./configure –prefix=/usr/local/mfs –with-default-user=mfs –with-default-group=mfs –enable-mfsmount; make ; make install
 
3 mount mfs:
(1) when os is freebsd: mkdir /mnt/mfs ; /usr/local/mfs/bin/mfsmount -h 192.168.0.19 ; df –h  Output is as follows
shoucang5# df -h
Filesystem                          Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a                          19G    1.8G     16G    10%    /
devfs                               1.0K    1.0K      0B   100%    /dev
……………………………………………………………………..
/dev/fuse0                          7.1T      0B    7.1T     0%    /mnt/mfs
(2)when os is centos:mkdir /mnt/mfs ; /usr/local/mfs/bin/mfsmount -H 192.168.0.19 /mnt  Output is as follows
[root@dl-src mfs]# bin/mfsmount -H 192.168.0.19 /mnt
mfsmaster register error: Permission denied
 
It is not fine!!!!!!!
 
Note:If found not fuse , you can perform command in unix shell .
#export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
 
But when I use mfs-1.5.12 as mfsclient installing to mount master(version1.6.10),It is ok!
 
 


















本文转自sery51CTO博客,原文链接: http://blog.51cto.com/sery/248503 ,如需转载请自行联系原作者

相关文章
|
存储 监控 关系型数据库