zoukankan      html  css  js  c++  java
  • 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
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。如有问题或建议,请多多赐教,非常感谢。
  • 相关阅读:
    (转)在WPF中自定义控件 CustomControl (下)注意TemplatePartAttribute
    [STAThread]的含义
    Exception of Storyboard in controlTemplate,can't use binding or dynamic resource
    What is the difference between CollectionView and CollectionViewSource?
    EssentialWPF_chapter6_Data
    WPF 调试方法, WPF Debug
    System.Windows.Markup.ContentPropertyAttribute
    Layout相关
    When use registerReadonly
    注意:匿名事件处理函数
  • 原文地址:https://www.cnblogs.com/ccku/p/13651431.html
Copyright © 2011-2022 走看看