zoukankan      html  css  js  c++  java
  • MFS排错

    [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
    
  • 相关阅读:
    sqlserver如何查询一个表的主键都是哪些表的外键
    sql server nullif的使用技巧,除数为零的处理技巧
    如何解决数据库中,数字+null=null
    sql server truncate table 删除表数据限制条件
    eclipse需要的环境变量就两个,一个是java_home指向JDK。另一个是Tomcat,自己去preference-sever下new一个
    解释Eclipse下Tomcat项目部署路径问题(.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebapps)
    mysql登录退出命令
    代码svn下载到本地后,关于数据库问题
    MySQL配置文件详解
    mysql查看存储过程show procedure status;
  • 原文地址:https://www.cnblogs.com/bass6/p/5667101.html
Copyright © 2011-2022 走看看