MFS分布式文件系统在启动和运中的排错

MFS分布式文件系统在启动和运中的排错
1. 非正常关闭管理服务器进程导致启动失败,启动过程中生成如下报错日志:
错误日志一:
working directory: /drbd/mfs lockfile created and locked initializing mfsmaster modules … loading sessions … ok sessions file has been loaded exports file has been loaded loading metadata … can’t open metadata file if this is new instalation then rename metadata.mfs.empty as metadata.mfs init: file system manager failed !!! error occured during initialization – exiting
以上错误提示将metadata.mfs.empty 文件重命名为metadata.mfs,解决方法如下所示:
cd /drbd/mfs/var/mfs mv metadata.mfs.empty metadata.mfs
错误日志二:
当执行完上述命令再次启动进程后,会有如下错误日志生成
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
可以执行下列命令自动修复元数据文件,命令如下所示:
/drbd/mfs/sbin/mfsmetarestore -a
 

This entry was posted in Ubuntu笔记. Bookmark the permalink.