Add nfs mount on a linux machine
For the full info - go here http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-nfs-mount.html
Vital directories;
/etc/fstab
ALSO - make sure you have created the dir as a dir on the server! In other words, a request to mount the resource ukpoopoop003:/apps/export/hsit as /apps/filestaging2/appsith means you need to create the dir appsith on this server under /apps/filestaging2
Mounting NFS Filesystems using /etc/fstab
An alternate way to mount an NFS share from another machine is to add a line to the /etc/fstab file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted. You must be root to modify the /etc/fstab file.
The general syntax for the line in /etc/fstab is as follows:
server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr
The mount point /pub must exist on the client machine. After adding this line to /etc/fstab on the client system, type the command mount /pub at a shell prompt, and the mount point /pub will be mounted from the server.
Here is an example of /etc/fstab with mounted nfs resources;
server001 $ more /etc/fstab
.......truncated for brevity........
pradltot06:/export/filestaging/cac01 /app/filestaging/pOOpOO01 nfs bg
0 0
pradltot07:/export2/filestaging/cac01 /app/filestaging2/pOOpOO1 nfs bg
0 0
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment