• mfschunkserver start启动失败


    问题:

    [root@011 ~]# mfschunkserver start
    open files limit has been set to: 16384
    working directory: /usr/local/mfs/var/mfs
    lockfile created and locked
    setting glibc malloc arena max to 4
    setting glibc malloc arena test to 4
    initializing mfschunkserver modules ...
    hdd space manager: can't create lock file '/mnt/sdb1/.lock': EACCES (Permission denied)
    hdd space manager: no hdd space defined in /usr/local/mfs/etc/mfs/mfshdd.cfg file
    init: hdd space manager failed !!!
    error occurred during initialization - exiting
    # 硬盘空间管理器:不能创建锁文件 /mnt/sdb1 (权限拒绝)
    # hdd空间管理器:没有在/usr/local/mfs/etc/mfs/mfshdd.cfg文件中定义的hdd空间
    # init:硬盘空间管理器失败
    

    解决办法:

    # 检查配置文件
    [root@011 ~]# cat /usr/local/mfs/etc/mfs/mfshdd.cfg
    /mnt/sdb1
    # 查看挂载点目录的文件用户和属组
    [root@011 ~]# ls -ld /mnt/sdb1/
    drwxr-xr-x 3 root root 4096 Sep 11 18:08 /mnt/sdb1/
    
    # 将该目录的归属设为mfs用户和组
    [root@011 ~]# chown -R mfs.mfs /mnt/sdb1/
    [root@011 ~]# ls -ld /mnt/sdb1/
    drwxr-xr-x 3 mfs mfs 4096 Sep 11 18:08 /mnt/sdb1/
    

    启动验证:

    [root@011 ~]# mfschunkserver start
    open files limit has been set to: 16384
    working directory: /usr/local/mfs/var/mfs
    lockfile created and locked
    setting glibc malloc arena max to 4
    setting glibc malloc arena test to 4
    initializing mfschunkserver modules ...
    hdd space manager: path to scan: /mnt/sdb1/
    hdd space manager: start background hdd scanning (searching for available chunks)
    main server module: listen on *:9422
    no charts data file - initializing empty charts
    mfschunkserver daemon initialized properly
    
    作者:ccku
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。如有问题或建议,请多多赐教,非常感谢。
  • 相关阅读:
    文件IO流
    ArrayList LinkedList vector的区别
    双例集合Map,HashMap常用方法及源码分析
    单例集合List和Set
    集合与数组
    自然排序与定制排序
    String StringBuffer StringBuilder
    String与其他结构的转化
    线程的通信
    死锁,同步锁
  • 原文地址:https://www.cnblogs.com/ccku/p/13651431.html
Copyright © 2020-2023  润新知