手机
当前位置:查字典教程网 >操作系统 >RedHat/Centos >CentOS无法挂载Glusterfs的解决方法
CentOS无法挂载Glusterfs的解决方法
摘要:CentOS系统在挂载Glusterfs的时候提示错误,导致Glusterfs挂载不了,出现该问题主要是机器网络不流畅造成的,下面小编就给大...

CentOS系统在挂载Glusterfs的时候提示错误,导致Glusterfs挂载不了,出现该问题主要是机器网络不流畅造成的,下面小编就给大家介绍下CentOS无法挂载Glusterfs的解决方法。

CentOS无法挂载Glusterfs的解决方法1

执行的mount命令:

mount target_host:/volume_name current_path

执行mount命令后,提示错误信息

/usr/sbin/start-statd: line 8: systemctl: command not found

mount.nfs: rpc.statd is not running but is required for remote locking.

mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd.

mount.nfs: Operation not permitted

一般情况下,用到Glusterfs存储的地方至少都是两台机器来配置完成的,在各自的机器上能够正常的启动相应的服务;然而,在执行gluster volume info命令查看定义的volume信息时,会发现非本机存储的机器状态为offline,这时无论是在本地还是其他地方做mount 时都不会成功,会提示timeout(链接超时) —— 这就是问题所在(网络不通畅);

这时,需要处理机器间的网络配置,这里有两点:

1、查看各机器的iptables配置,备份之前的iptables配置(/etc/sysconfig/iptables),然后导出生效的iptables(service iptables save),查看核对现有的与导出前的配置是否存在不同,存在则修复,最后重启iptables服务(service iptables restart);

2、查看各机器的IP配置是否发生变化(ifconfig),是否同一网段,若配置存在变动,则更改回原始配置,重启网络服务(service network restart);

以上网络问题解决后,再次执行mount target_host:/volume_name current_path(一般不需要参数-t glusterfs)完成对gluster管理的volume的挂载;此时,如果挂载失败,则加上-t参数,即mount -t glusterfs target_host:/volume_name current_path

上面就是CentOS挂载Glusterfs失败后原因及解决方法的介绍了,出现该问题后不妨查看下各机器间的网络配置吧。

【CentOS无法挂载Glusterfs的解决方法】相关文章:

centos中wget的使用方法

centos下netconfig 的安装方法

CentOS安装中文支持包的方法

centos时间不同步的解决方法(centos时间同步)

CentOS 6.2 yum 安装MySQL初始化警告的解决方法

DELL服务器M100E中linux5.5无法启动的解决方法

putty登录CentOS中文乱码的解决方法

CentOS 挂载NTFS分区的两种方法

putty乱码的解决办法

CentOS挂载lvm分区重名问题的解决方法

精品推荐
分类导航