What if CentOS fails to mount Glusterfs?

  

The CentOS system prompts an error when mounting Glusterfs, which causes Glusterfs to be unmounted. This problem is mainly caused by the fact that the machine is not smooth. The following is a brief introduction to the solution that CentOS cannot mount Glusterfs. .

mount command is executed:

mount target_host: after /volume_name current_path

execute mount command, an error message

/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

In general, where Glusterfs is stored, at least two machines are configured. After the completion, the corresponding service can be started normally on the respective machine; however, when the gluster volume info command is executed to view the defined volume information, the machine state of the non-native storage is found to be offline, whether it is local or not. Other places will not succeed when doing mount, will prompt timeout (link timeout) —— This is the problem (network is not smooth);

At this time, you need to deal with the network configuration between machines, here There are two points:

1, check the iptables configuration of each machine, backup iptables configuration (/etc/sysconfig/iptables), and then export the effective iptables (service iptables save), check the existing and Whether the configuration before export is different, if it exists, it will be repaired, and finally restart the iptables service (service iptables restart);

2. Check whether the IP configuration of each machine changes (ifconfig), whether it is on the same network segment, if configured If there is a change, change back to the original configuration and restart the network service (service network restart);

After the above network problem is solved, execute mount target_host:/volume_name current_path again (generally no parameter -t glusterfs) to complete the gluster The mounted volume is mounted; at this time, if the mount fails, the -t parameter is added, ie mount -t glusterfs target_host:/volume_name current_path

The above is the reason and solution after CentOS mounts Glusterfs failed. The introduction, after the problem appears, you may wish to check the network configuration between the machines.

Copyright © Windows knowledge All Rights Reserved