Mount Filesystem using Auto FS
This document is the Operational Instruction on how to work with Auto FS file system on a Red Hat Linux Server.
This article covers the adding and mounting of Auto FS file system in a Red Hat Linux servers.
Prerequisites
· Need to have root privileges to make necessary changes.
· Take backup of /etc/exports before making any changes to this file.
· On Master Server:
Ø Edit /etc/exports, where an entry for the server and file system needs to be made in the following format:
/abc/pqr/xyz -rw,no_root server1 server2
(Dir that needs to be shared) (Permissions) (Clients to which the
the filesystem needs to
be mounted)
Ø Run the command, on the master server.
# expotfs –av
· On Client Server:
Ø Where we need to have the NFS share mounted, edit the /etc/auto.direct file and add an entry as below:
/avinash servername:/abc/pqr/xyz
(Local Dir) (master server Name : Dir to be
shared)
Ø Refresh the autofs service and we should not be able to see the /avinash dir
#service autofs reload.
....................................Thank you ................................................
....................................Thank you ................................................
Comments
Post a Comment