#add mfs user : useradd mfs –s /sbin/nologin #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 #produce and modify configuration file: cd /usr/local/mfs/etc cp mfschunkserver.cfg.dist mfschunkser.cfg cp mfshdd.cfg.dist mfshdd.cfg vi mfschunkserver.cfg –> MASTER_HOST = 192.168.0.19 vi mfshdd.cfg –> /data (It is a separate partition) mkdir /var/run/mfs chown –R mfs:mfs /var/run/mfs chown –R mfs:mfs /data #running mfsmaster: cd /usr/local/mfs sbin/mfschunkserver start #check process: ps aux | grep mfsmaster #check system log: tail –f /var/log/messages #check network status: netstat –an | grep tcp #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 2 3 4 5 6 7 8
#add mfs user : useradd mfs –s /sbin/nologin #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
mount mfs:
1 2 3 4 5 6 7 8 9 10 11 12
#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 #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 /mntmfsmaster register error: Permission denied
It is not fine!!!!!!! Note:If found not fuse , you can perform command in unix shell .