Monday, July 2, 2012
HP UX - Mounting NFS filesystem simple example
Mounting the NFS filesystem: Simple Example : (Reference)
Let me mount the '/usr/sarav' directory located in the remote SERVER machine to the local CLIENT machine in '/var/sarav_mounted' directory.
In Server,
1.) Add the filesystem to be mounted in /etc/exports file.
SERVER# cat /etc/exports
/usr/sarav
SERVER#
2.) Export the filesystem.
SERVER# exportfs -a
SERVER# exportfs
/usr/sarav
SERVER# cd /usr/sarav
SERVER# ls -ltr
total 32
drwxrwxrwx 3 root sys 96 Apr 25 21:13 Modules
drwxrwxrwx 2 root sys 8192 Apr 25 21:24 MyPrograms
drwxrwxrwx 2 root sys 8192 Jun 6 16:46 Scripts
SERVER# showmount -e
export list for SERVER:
/usr/sarav (everyone)
SERVER#
In Client,
1.) Create a directory which will be used to mount to the server side directory and mount it.
CLIENT# mkdir /var/sarav_mounted
CLIENT# mount -F nfs SERVER:/usr/sarav /var/sarav_mounted
CLIENT# mount
/var/sarav_mounted on SERVER:/usr/sarav rsize=32768,wsize=32768,NFSv3,dev=2 on Mon Jul 2 16:14:20 2012
2.) Now access the remotely located filesystem by the mounted filesystem name as if you are accessing the local filesystem.
CLIENT# cd /var/sarav_mounted
CLIENT# ls -ltr
total 32
drwxrwxrwx 3 root sys 96 Apr 25 21:13 Modules
drwxrwxrwx 2 root sys 8192 Apr 25 21:24 MyPrograms
drwxrwxrwx 2 root sys 8192 Jun 6 16:46 Scripts
CLIENT#
Labels:
Career,
hp ux,
Networking
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment