Causes and solutions for failure to mount glusterfs in CentOS

Source: Internet
Author: User
Tags glusterfs gluster

Causes and solutions for failure to mount glusterfs in CentOS

Run the mount command:

Mount target_host:/volume_name current_path

After the mount command is executed, an error message is displayed.

/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

Generally, the glusterfs storage is configured on at least two machines, and the corresponding services can be started on the respective machines. However, when you execute the gluster volume info command to view the defined volume information, you will find that the status of machines not stored on the local machine is offline. In this case, the machine will not succeed when mounting is performed locally or elsewhere, the system will prompt timeout (link timeout) -- this is the problem (the network is not smooth );

At this time, you need to process the network configuration between machines. Here there are two points:

1. view the iptables configuration of each machine, back up the previous iptables configuration (/etc/sysconfig/iptables), and export the effective iptables (service iptables save ), check whether the existing configuration is different from that before export. If yes, fix the problem. restart the iptables service (iptables restart );

2. Check whether the IP address configuration of each machine has changed (ifconfig) and the same network segment. If the configuration changes, change the original configuration and restart the network service (service network restart );

After the preceding network problem is solved, mount target_host:/volume_name current_path (the-t glusterfs parameter is not required) to mount the volume managed by gluster. If the mounting fails, the-t parameter is added, that is, mount-t glusterfs target_host:/volume_name current_path.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.