Tuesday, February 15, 2011

Mounting of NFS File System on HP-UX 11.31 Server.


Source Server : Server whose file system you want to share
Destination Server : Server where you want to mount.

From the HP-UX 11.31 Source Server :

e.g I want to mount /stage/StageR12 on HP-UX Destination Server.

# share -F nfs -o rw /stage/StageR12/
# share -- will show which file system you want to share.
     -       /stage/StageR12 rw " "
#

# shareall

From the HP-UX 11.31 Destination Server :

# mount hostname:/stage/StageR12/ /backup/stage/
or
# mount ipaddress:/stage/StageR12/ /backup/stage/


Unmounting of NFS File System

Destination Server:

# umount /backup/stage/

  if getting error
#  umount /mountpoint    e.g # umount /backup/stage/
   umount: cannot unmount /dev/disk/disk23 : Device busy
   umount: return error 1.

 Run :

# fuser -kuc /mountpoint e.g # fuser -kuc /backup/stage/

# umount /backup/stage/

Source Server :

# unshare /stage/StageR12/

#unshareall if using shareall command on source server