MFS排错
2016-07-13 15:33
260 查看
[root@Nginx_Master mfs]# /app/server/mfs/sbin/mfsmaster start working directory: /app/server/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
matser、metalogger、chunker、client端,服务器关机(init0)和重启(init6)时,程序都是正常关闭,无需修复。整个mfs体系中,直接断电只有master有可能无法启动 使用mfsmetarestore -a修复才能启动。
[root@Nginx_Master mfs]# /app/server/mfs/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:2514 - last:0 - 100% - ETA:finished) store metadata into file: /app/server/mfs/var/mfs/metadata.mfs
[root@Nginx_Master mfs]# file metadata.mfs.empty metadata.mfs.empty: ASCII text, with no line terminators [root@Nginx_Master mfs]# file metadata.mfs metadata.mfs: data
[root@Nginx_Master mfs]# /app/server/mfs/sbin/mfsmaster start working directory: /app/server/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 ... 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 all inodes: 8 directory inodes: 3 file inodes: 5 chunks: 11 metadata file has been loaded stats file has been loaded master <-> metaloggers module: listen on *:9419 master <-> chunkservers module: listen on *:9420 main master server module: listen on *:9421 mfsmaster daemon initialized properly
问题解决!!!
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@chunk37 mfs-1.6.27]# ./configure --prefix=/app/server/mfs --with-default-user=mfs --with-default-group=mfs checking for FUSE... no ******************************** mfsmount disabled ******************************** * fuse library is too old or not installed - mfsmount needs version 2.6 or higher * *********************************************************************************** checking for fuse_version in -lfuse... no checking for zlibVersion in -lz... no configure: error: zlib development library not found
[root@chunk37 mfs-1.6.27]# yum install fuse* -y [root@chunk37 mfs-1.6.27]#./configure --prefix=/app/server/mfs --with-default-user=mfs --with-default-group=mfs checking for zlibVersion in -lz... no configure: error: zlib development library not found [root@chunk37 mfs-1.6.27]# yum search zlib-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn =========================== N/S Matched: zlib-devel ============================ zlib-devel.i686 : Header files and libraries for Zlib development zlib-devel.x86_64 : Header files and libraries for Zlib development Name and summary matches only, use "search all" for everything. [root@chunk37 mfs-1.6.27]# yum install zlib-devel -y [root@chunk37 mfs-1.6.27]#./configure --prefix=/app/server/mfs --with-default-user=mfs --with-default-group=mfs 问题解决!
==========================================================================
root@web02 bin]# /app/server/mfs/bin/mfsmount /app/www -H 192.168.1.21 mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root fuse: device not found, try 'modprobe fuse' first error in fuse_mount #根据提示可以解决问题 [root@web02 bin]# modprobe fuse [root@web02 bin]# /app/server/mfs/bin/mfsmount /app/www -H 192.168.1.21 mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
相关文章推荐
- JVM类加载与运行时优化
- UVA 10161 Ant on a Chessboard
- Win7 VC++6.0打开文件崩溃 FileTool.dll
- AVC编码中的规格 :High、Baseline、Main什么意思?还有High@L3.0、High@L4.0、High@L5.1等
- C#中对文件的操作
- Activity之间的动画切换学习笔记(一)
- 二维码扫描之zxing与zbar的优劣
- myeclipse,jdk,tomcat,MySQL配置
- 利用Java生成静态HMTL页面
- HDU 1258 Sum It Up
- hdu 2571 命运
- 【hdu3341-Lost's revenge】DP压缩+AC自动机
- Linux From Scratch(从零开始构建Linux系统,简称LFS)(三)
- python学习笔记之module && package
- MFC 之进度条CProgressCtrl
- How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS
- [置顶] 微信红包技术分析
- [NOIP2011]聪明的质监员 D2 T2 二分答案
- pta 5-2 任务调度的合理性
- Eclipse 4.6 neon搭建Arcgis for Android的开发环境