Autofs cannot mount

Source: Internet
Author: User
Autofs fails to mount the problem-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Four new Dell 2950 instances are added, because only data conversion is used. The configuration and usage of these four machines are the same. ubuntu 8.04 Server is installed, and the installed software is basically the same, therefore, only an Internet IP address is set for one of them for ubuntu update.

The other three are updated through the NAT method through the Internet IP address. Deb package to be downloaded for ubuntu installation and upgrade

Nfs is mounted on three servers without an Internet IP address.

Sudo aptitude install nfs-kernel-server

Edit the/etc/exports file.

/Var/cache/apt/archives 192.168.1. * (rw, no_subtree_check, no_root_squash)

Install autofs on a server with an Internet IP Address

Sudo aptitude install autofs

Edit/etc/auto. master and add/home/apt-archives/etc/auto. nfs

Add a new file/etc/auto. nfs: sudo vi/etc/auto. nfs under/etc.

Convert102-rw, bg, soft 192.168.1.102:/var/cache/apt/archives
Convert103-rw, bg, soft 192.168.1.103:/var/cache/apt/archives
Convert104-rw, bg, soft 192.168.1.104:/var/cache/apt/archives

After editing, restart autofs: sudo/etc/init. d/autofs restart.

Cd/home/apt-archives/

Cd convert102: The system prompts that this directory is unavailable. Restart the nfs servers of the three servers and restart autofs for many times.

It cannot be changed to several related configuration files.

I accidentally changed the/etc/exports file on convert104, changed 192.168.1. * To 192.168.1.101, and fixed cd/home/apt-archives/convert104 on convert101.

It's strange to think about sun. Since NFS supports the sharing of network segments, why do we have to specify the IP address of the target machine in many cases?

In the past, the centos server was also used, and the NFS client did not respond after mounting the NFS directory for a long time. After a while, the system prompts that the mount failed.

Finally, find out the cause, as long as the IP address or machine name specified in/etc/exports is OK.

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.