(四)、MFS客戶(hù)端的安裝及配置
由于MFS客戶(hù)端依賴(lài)于fuse,所以要先安裝fuse。
1、 fuse的安裝
(1)、解包 tar zxvf fuse-2.8.1.tar.gz
(2)、./configure
(3)、make;make install
如果所在的系統(tǒng)已經(jīng)安裝了fuse,則跳過(guò)這個(gè)步驟,高版本的Linux內(nèi)核已經(jīng)支持了。
2、 安裝MFS客戶(hù)端
(1)、下載源代碼 http://ncu.dl.sourceforge.net/pr ... 1/mfs-1.6.11.tar.gz
(2)、tar zxvf mfs-1.6.11.tar.gz
(3)、創(chuàng)建用戶(hù) useradd mfs –s /sbin/nologin
(4)、./configure –prefix=/usr/local/mfs –with-default-user=mfs –with-default-group=mfs –enable-mfsmount
說(shuō)明:在這個(gè)過(guò)程中,當(dāng)執(zhí)行到–enable-mfsmount時(shí)可能出現(xiàn)”checking for FUSE… no configure: error: mfsmount build was forced, but fuse development package is not installed”這樣的錯(cuò)誤,
........
checking for FUSE... no
******************************** mfsmount disabled ********************************
* fuse library is too old or not installed - mfsmount needs version 2.6 or higher *
***********************************************************************************
......
利用mount命令查看:
[root@www ~]# mount
mfsmeta#192.168.3.34:9421 on /mnt/mfsmeta type fuse (rw,nosuid,nodev,allow_other,default_permissions)
mfs#192.168.3.34:9421 on /mnt/mfs type fuse (rw,nosuid,nodev,allow_other,default_permissions
五、MooseFS master的恢復(fù)
一旦mfsmaster崩潰(例如因?yàn)橹鳈C(jī)或電源失。,需要最后一個(gè)元數(shù)據(jù)日志changelog并入主要的metadata中。這個(gè)操作時(shí)通過(guò)mfsmetarestore工具做的,最簡(jiǎn)單的方法是:
mfsmetarestore -a
如果master數(shù)據(jù)被存儲(chǔ)在MooseFS編譯指定地點(diǎn)外的路徑,則要利用-d參數(shù)指定使用,如:
mfsmetarestore -a -d /storage/mfsmaster