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
上一篇:java和c的本质--最重要的是启动


下一篇:Windows Server 2012 R2 里面如何安装Net Framework 3.5