跳转至

MooseFS 2.x 错误信息


2015-05-11 by dongnan

环境

操作系统: CentOS 6.6 amd64

配置

ChunkServer: 物理机 4Core CPU/16GB Mem/单磁盘 1TB/1GB NIC
Master: VM 4Core CPU/4GB Mem/100GB Disk/1GB NIC
Client: VM 4Core CPU/4GB Mem/50GB Disk/1GB NIC

IP

master: 172.27.244.69
client: 172.27.244.99
chunk1: 172.27.244.31
chunk2: 172.27.244.32
chunk3: 172.27.244.33

问题描述

启动 Master报错 master can't find metadata.mfs - try using option

错误日志

Apr 24 10:22:13 test6 mfsmaster[29888]: open files limit has been set to: 4096
Apr 24 10:22:13 test6 mfsmaster[29888]: set gid to 499
Apr 24 10:22:13 test6 mfsmaster[29888]: set uid to 498
Apr 24 10:22:13 test6 mfsmaster[29888]: monotonic clock function: clock_gettime
Apr 24 10:22:13 test6 mfsmaster[29888]: monotonic clock speed: 5231 ops / 10 mili seconds
Apr 24 10:22:13 test6 mfsmaster[29888]: exports file has been loaded
Apr 24 10:22:13 test6 mfsmaster[29888]: topology file has been loaded
Apr 24 10:22:13 test6 mfsmaster[29888]: can't find metadata.mfs - try using option '-a'
Apr 24 10:22:13 test6 mfsmaster[29888]: init: metadata manager failed !!!
Apr 24 10:22:13 test6 mfsmaster[29888]: exititng ...
Apr 24 10:22:13 test6 mfsmaster[29888]: process exited successfully (status:1)

解决办法

# 元数据目录
cd /var/lib/mfs
# 拷贝元数据文件
cp metadata.mfs.empty metadata.mfs
# 元数据文件属性
chown mfs.mfs metadata.mfs

ls -la
total 8
-rwxr--r-- 1 mfs mfs 8 4月  24 10:55 metadata.mfs
-rwxr--r-- 1 mfs mfs 8 12月 24 20:25 metadata.mfs.empty

验证

再次启动服务

/etc/init.d/mfsmaster start

服务器日志

tail /var/log/messages
Apr 24 10:56:40 test6 mfsmaster[31425]: set gid to 499
Apr 24 10:56:40 test6 mfsmaster[31425]: set uid to 498
Apr 24 10:56:40 test6 mfsmaster[31425]: monotonic clock function: clock_gettime
Apr 24 10:56:40 test6 mfsmaster[31425]: monotonic clock speed: 5262 ops / 10 mili seconds
Apr 24 10:56:40 test6 mfsmaster[31425]: exports file has been loaded
Apr 24 10:56:40 test6 mfsmaster[31425]: topology file has been loaded
Apr 24 10:56:41 test6 mfsmaster[31425]: no charts data file - initializing empty charts
Apr 24 10:56:41 test6 mfsmaster[31425]: master <-> metaloggers module: listen on *:9419
Apr 24 10:56:41 test6 mfsmaster[31425]: master <-> chunkservers module: listen on *:9420
Apr 24 10:56:41 test6 mfsmaster[31425]: main master server module: listen on *:9421



回到页面顶部