首页 > 代码库 > 启动mfs 提示error occured during initialization - exiting

启动mfs 提示error occured during initialization - exiting

[root@varnish mfs]# /usr/local/mfs/sbin/mfsmaster restart    启动出现下面错误
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 configuration file (/usr/local/mfs/etc/mfstopology.cfg) not found - using defaults
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@varnish mfs]# cd /usr/local/mfs/var/mfs/

[root@varnish mfs]# mv metadata.mfs.empty metadata.mfs

启动成功:

[root@varnish mfs]# /usr/local/mfs/sbin/mfsmaster restart
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 configuration file (/usr/local/mfs/etc/mfstopology.cfg) not found - using defaults
loading metadata ...
create new empty filesystemmetadata file has been loaded
no charts data file - initializing empty charts
master <-> metaloggers module: listen on *:9419
master <-> chunkservers module: listen on *:9420
main master server module: listen on *:9421
mfsmaster daemon initialized properly

启动mfs 提示error occured during initialization - exiting