一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

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
posted @ 2020-09-11 14:07  ccku  阅读(854)  评论(0编辑  收藏  举报