MFS主服务器启动失败

[root@bogon mfs]# /usr/local/mfs/sbin/mfsmaster start
working directory: /usr/local/mfs/var/mfs
lockfile created and locked
initializing mfsmaster modules …
loading sessions … ok
sessions file has been loaded
exports file has been loaded
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 28
mfstopology: incomplete definition in line: 28
topology file has been loaded
loading metadata …
can’t open metadata file

if this is new instalation then rename
/usr/local/mfs/var/mfs/metadata.mfs.empty as
/usr/local/mfs/var/mfs/metadata.mfs init: file system manager failed
!!! error occured during initialization - exiting

报错让你改文件名
[root@bogon mfs]# cd /usr/local/mfs/var/mfs/
[root@bogon mfs]# ls
changelog.8.mfs metadata.mfs.back.1 sessions.mfs
metadata.mfs.back metadata.mfs.empty stats.mfs

[root@bogon mfs]# cp metadata.mfs.empty metadata.mfs

改吧 改完再启动还是报错
[root@bogon mfs]# /usr/local/mfs/sbin/mfsmaster start
working directory: /usr/local/mfs/var/mfs
lockfile created and locked
initializing mfsmaster modules …
loading sessions … ok
sessions file has been loaded
exports file has been loaded
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 28
mfstopology: incomplete definition in line: 28
topology file has been loaded
loading metadata …

backup file is newer than current file - please check it manually -
propably you should run metarestore init: file system manager failed
!!! error occured during initialization - exiting

最终呢,
[root@bogon mfs]# cd /usr/local/mfs/sbin/
[root@bogon sbin]# ls
mfscgiserv mfsmaster mfsmetadump mfsmetalogger mfsmetarestore

[root@bogon sbin]# mfsmetarestore -a

loading objects (files,directories,etc.) … ok
loading names … ok
loading deletion timestamps … ok
loading chunks data … ok
checking filesystem consistency … ok
connecting files and chunks … ok
progress: current change: 0 (first:1 - last:0 - 100% - ETA:finished)
store metadata into file: /usr/local/mfs/var/mfs/metadata.mfs

使用这条命令再次启动服务器,解决问题。

你可能感兴趣的:(MFS)