W/S SE-ljy001
                           1996.3.18
                           Lee Jeong-Yong

SUBJECT:NFS¿¡ ´ëÇÏ¿©

CONTENTS:
1.NFSÀÇ °³³ä
2.NFS Environment
  1) NFS Resources
  2) NFS Server
  3) NFS Client
  4) Daemon
3.Sharing File Resources
  1) Syntax
  2) Command
4.Mounting File Resources
  1) Syntax
5.Share and Mount examples
  1) Solaris 2.x¿¡¼­ÀÇ share and mount
  2) Solaris 1.x¿¡¼­ÀÇ mount
  3) Booting½Ã¸¶´Ù NFS Resource¸¦ ÀÚµ¿À¸·Î mount ÇÏ°íÀÚ ÇÒ¶§
  4) hard¿Ísoft optionÀÇ Â÷ÀÌ
6.NFS Troubleshooting
  1) General Information on NFS Troubleshooting
  2) NFS server¿¡¼­ÀÇ check»çÇ×
  3) Clearing Remote Mounting Problems

DESCRIPTION:

1.NFSÀÇ °³³ä
  
 * NFS´Â ´Ù¸¥ system architecture¿Í ´Ù¸¥ Operating System°£ÀÇ ³×Æ®¿÷À» ÅëÇÑ
   resources¸¦ °øÀ¯ÇÒ ¼ö ÀÖ´Â ¼­ºñ½ºÀÌ´Ù.( from MS-DOS to VMS)
 * NFS´Â remote systemÀÇ »ç¿ëÀÚ¿¡°Ô local files ¶Ç´Â directory¸¦ ¸¶Ä¡ local 
   machineÀÇ »ç¿ëÀÚ Ã³·³ ¾µ¼ö ÀÖµµ·Ï ÇÑ´Ù.

2.NFS Environment

 1) NFS Resources
    NFS resources´Â NetworkÀ» ÅëÇؼ­ °øÀ¯ÇÒ ¼ö ÀÖ´Â ÀÚ¿øÀ» ¸»Çϸç file system       ¶Ç´Â file system ³»ÀÇ parationÀ» ÀǹÌ.
 
 2) NFS Server

    * NFS server´Â ÀÚ½ÅÀÇ file system¶Ç´Â partitionÀ» remote machineÀÌ ³×Æ®¿÷
      À» ÅëÇÏ¿© °øÀ¯ ÇÒ ¼ö ÀÖµµ·Ï ÇØ ÁÖ´Â ½Ã½ºÅÛÀ» ÀǹÌÇÑ´Ù.
    * NFS server´Â ³×Æ®¿÷»ó¿¡ ÀÚ½ÅÀÇ NFS resources¸¦ shareÇØ ÁÖ¾î¾ß ÇÑ´Ù.
      /etc/dfs/dfstab È­Àϳ»¿¡´Â nfs serverÀÇ share list¸¦ µî·ÏÇÒ ¼ö ÀÖÀ¸¸ç
      ÀÌ È­Àϳ»ÀÇ µî·ÏµÈ share list´Â ½Ã½ºÅÛ booting ½Ã¿¡ ÀÚµ¿À¸·Î ³×Æ®¿÷»ó¿¡
      shareµÈ´Ù.

 3) NFS client
 
    * NFS client´Â ³×Æ®¿÷À» ÅëÇÏ¿© remote systemÀÌ shareÇØÁØ Network Resources
      ¸¦ mountÇؼ­ »ç¿ëÇÏ´Â ½Ã½ºÅÛÀ» ÀǹÌÇÑ´Ù.
    * NFS client´Â mount ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© shareµÈ ÀÚ¿øÀ» »ç¿ëÇÒ ¼ö ÀÖÀ¸¸ç
      /etc/vfstab¿¡ NFS¸¦ ÅëÇØ mountÇÒ list¸¦ ±â·ÏÇÔÀ¸·Î½á booting½Ã ÀÚµ¿À¸·Î
      NFS Resources¸¦ mount ÇÒ ¼ö ÀÖ´Ù.
 
 4) Daemons
    
   * Server
   - /usr/lib/nfs/nfsd : clientÀÇ file system request¸¦ ó¸®ÇÏ¿© NFS service°¡
                         °¡´ÉÇϵµ·Ï ÇØÁÜ.
                         run level 3¿¡¼­ S15nfs.server¿¡ ÀÇÇØ ¼öÇàµÊ.
   - /usr/lib/nfs/mountd : mountd´Â RPC service·Î¼­ clientÀÇ file system
                           mount request¸¦ ó¸®ÇÑ´Ù.
                           client·ÎÀÇ ¿äû½Ã /etc/dfs/sharetabÀ» ÂüÁ¶ ÇØ´ç
                           filesystemÀ» client°¡ mountÇÒ ¼ö ÀÖµµ·Ï ÇØÁÜ.
   
   * Client
   - /usr/lib/nfs/statd : locked daemon°ú ÀÎÅÍÆäÀ̽ºÇÏ¿© NFS¿¡¼­ÀÇ locking servi                         -ce¸¦ À§ÇÑ crash ¶Ç´Â recovery±â´É Á¦°ø.
   - /usr/lib/nfs/lockd : kernel¿¡¼­ ¹ß»ýµÈ lock 󸮳ª ¶Ç´Â remoteÀÇ ´Ù¸¥ lock
                          daemonÀÇ lock ó¸® ´ã´ç
                          lockd°¡ lock request¸¦ RPC/XDRÀ» ÅëÇÏ¿© Àü´ÞÇÑ lockd
                          °¡ lock request¸¦ RPC/XDRÀ» ÅëÇÏ¿© Àü´ÞÇÑ ÈÄ¿¡´Â
                          status monitor daemon¿¡ request¸¦ º¸³»¾î statd daemon
                          ÀÌ monitor service°¡ °¡´ÉÇϵµ·Ï ÇÔ.

3.Sharing File Resources

  1) Syntax

     share [-F nfs] {-o specific option] [-d description] pathname
     
     -o speific option:
 
     rw : ÁöÁ¤µÈ path³»ÀÇ µð·ºÅ丮¸¦ read/write permissionÀ¸·Î shareÇØÁÜ.
     ro : ÁöÁ¤µÈ path³»ÀÇ µð·ºÅ丮¸¦ read-only permissionÀ¸·Î shareÇØÁÜ.
     ro=client[:client] : ÁöÁ¤µÈ clientµéÀº read-only permissionÀ¸·Î share
     rw=client[:client] : ÁöÁ¤µÈ clientµéÀº read/write permissionÀ¸·Î share
     root=host[:host] : ÁöÁ¤µÈ hostµéÀº uid 0 À̸ç root permissionÀ¸·Î ÇØ´ç
                        µð·ºÅ丮¸¦ »ç¿ëÇÒ¼ö ÀÖ´Ù.
     anon=uid : ´Ù¸¥ uid¸¦ °¡Áö°í clientµéÀÌ access °¡´Éµµ·Ï ÇØÁÜ.
                ¸¸¾à client°¡ uid=0·Î access½Ã root permissionÀ¸·Î ÇØ´çµÇ´Â
                µð·ºÅ丮¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

 2) Command

    * share - Network»ó¿¡ NFS serverÀÇ Resources¸¦ shareÇØÁְųª ¶Ç´Â ÀÚ½ÅÀÌ
              network»ó¿¡ shareÇÑ resources¸¦ display ÇØÁÜ.
    * unshare - share ÇØÁØ NFS Resources ¿¡ ´ëÇÑ service Áß´Ü.
    * shareall - /etc/dfs/dfstab¿¡ µî·ÏµÈ ¸ðµç list¸¦ network»ó¿¡ shareÇØÁÜ.
    * unshareall - /etc/dfs/dfstabÀÇ ¸ðµç share list¿¡ ´ëÇÑ ¼­ºñ½º¸¦ Áß´ÜÇÔ.
    * /etc/dfs/dfstab - system booting½Ã¿¡ ÀÚµ¿ÀûÀ¸·Î NFS resources¸¦ network
                        »ó¿¡  share½Ã¿¡ µî·ÏÇØÁÜ.

4.Mounting File Resources

  1) Syntax

     mount [-F nfs] [-r] [-m] [-o specific_options] mount point

     -r : read-only permissionÀ¸·Î mount
     -m : /etc/mntab table¿¡ entry¸¦ append ½ÃÅ°Áö ¾Ê°í mount
     -o specific_options :
      
      rw|ro : resource is mountd read-write or read-only
              Default is rw
      suid|nosuid : Setuid exexution allowed or disabled.
                    Default is suid
      retry=n : The number of  times to retry the mount
      rsize=n : Set the read buffer size to n bytes.
                The default value is 8192
      wsize=n : Set the write buffer size to n bytes.
                The default value is 8192
      soft|hard : Return an error if the server does not respond,or  
                  continue the retry request until the server responds.
                  The default value is hard
      intr|nointr : Allow(do not allow)keyboard interrupts to kill a process
                    that is hung while waiting for a response on a hard-mounted
                    file system.The default is intr.
      bg|fg       : If the first attempt fails,retry in the background,or in the                    foreground.
                    The default is fg.
      
      Background ¿Í ForegroundÀÇ Â÷ÀÌ
      - background optionÀº client serverÀÇ NFS resources¸¦ mount½Ã serverÀÇ
        mount daemonÀÌ ÀÀ´äÀ» ÇÏÁö ¾ÊÀ» °æ¿ì background·Î mount¼öÇà.
        (retry=n optionÀ» »ç¿ëÇÒ °æ¿ì ÁöÁ¤ÇÑ ¹øÈ£´ë·Î retry)
      - mount½Ã soft optionÀ» »ç¿ëÇϸé mount ½ÇÆнà message¸¦ return½ÃÅ´.
      - mount½Ã hard optionÀ» »ç¿ëÇϸé mount½ÇÆнà warning message¸¦ printingÈÄ
        °è¼ÓÀûÀÎ retry¸¦ ½ÃµµÇÔ.

  2) Command

     * mount : remote NFS server·ÎºÎÅÍ NFS resources¸¦ local·Î °¡Á®¿È.
               ¶Ç´Â ÇöÀç mountµÇ¾î ÀÖ´Â ¸ñ·ÏÀ» º¸¿©ÁÜ.
     * umount : mountµÇ¾î ÀÖ´Â NFS resource¸¦ Á¦°Å½ÃÅ´.
     * showmount : NFS server·ÎºÎÅÍ ¾î¶²ÇÑ ÀÚ¿øÀÌ shareµÇ¾ú´ÂÁö displayÇØÁÜ.
     * dfshares : remote ¶Ç´Â local systemÀÇ NFS resource¸¦ displayÇØÁÜ.

5.Share and Mount ¿¹Á¦

0) Environment
     
    ------------------------------------ 
    | nfs server : hostname : candy    |
    |              ip : 203.240.159.39 |
    |              OS : SUNOS 5.4      |
    | nfs client : hostname : hyundai3 |
    |              ip : 203.240.159.35 |
    |              OS : SUNOS 5.4      |
    | nfs client : hostname : hyundai2 |
    |              ip : 203.240.159.34 |
    -----------------------------------
  
1) Solaris 2.x¿¡¼­ÀÇ share and mount
  
   * share NFS resources from the NFS server

candy# mkdir /home/disk1 /home/disk2 /home/disk3 /home/disk4
candy# ls -alsd /home/disk*
   2 drwxr-xr-x   2 root     other        512  3¿ù 19ÀÏ  13:55 /home/disk1
   2 drwxr-xr-x   2 root     other        512  3¿ù 19ÀÏ  13:55 /home/disk2
   2 drwxr-xr-x   2 root     other        512  3¿ù 19ÀÏ  13:55 /home/disk3
   2 drwxr-xr-x   2 root     other        512  3¿ù 19ÀÏ  13:55 /home/disk4
candy# vi /etc/dfs/dfstab
 
#       place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       share [-F fstype] [ -o options] [-d ""]  [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
share -F nfs -o rw /home/disk1
share -F nfs -o root=hyundai3:hyundai2 /home/disk2
share -F nfs -o anon=0 /home/disk3
share -F nfs -o ro,rw=hyundai3 /home/disk4

candy# shareall
candy# /etc/init.d/nfs.server start
candy# cat /etc/dfs/dfstab

#       place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       share [-F fstype] [ -o options] [-d ""]  [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
share -F nfs -o rw /home/disk1
share -F nfs -o root=hyundai3:hyundai2 /home/disk2
share -F nfs -o anon=0 /home/disk3
share -F nfs -o ro,rw=hyundai3 /home/disk4

candy# dfshares
RESOURCE                                  SERVER ACCESS    TRANSPORT
     candy:/home/disk1                     candy  -         -
     candy:/home/disk2                     candy  -         -
     candy:/home/disk3                     candy  -         -
     candy:/home/disk4                     candy  -         -

* mount NFS Resource from the NFS server

hyundai3# mkdir /home/userA /home/userB /home/userC /home/userD
hyundai3# dfshares candy
RESOURCE                                  SERVER ACCESS    TRANSPORT
     candy:/home/disk1                     candy  -         -
     candy:/home/disk2                     candy  -         -
     candy:/home/disk3                     candy  -         -
     candy:/home/disk4                     candy  -         -
hyundai3# mount -F nfs candy:/home/disk1 /home/userA
hyundai3# mount -F nfs candy:/home/disk2 /home/userB
hyundai3# mount -F nfs candy:/home/disk3 /home/userC
hyundai3# mount -F nfs candy:/home/disk4 /home/userD
hyundai3# mount
/ on /dev/dsk/c0t3d0s0 read/write/setuid on ¼ö  2¿ù 14 07:52:38 1996
/usr on /dev/dsk/c0t3d0s6 read/write/setuid on ¼ö  2¿ù 14 07:52:38 1996
/proc on /proc read/write/setuid on ¼ö  2¿ù 14 07:52:38 1996
/dev/fd on fd read/write/setuid on ¼ö  2¿ù 14 07:52:38 1996
/tmp on swap read/write on ¼ö  2¿ù 14 07:53:09 1996
/home on /dev/dsk/c0t3d0s7 setuid/read/write on ¼ö  2¿ù 14 07:53:09 1996
/opt on /dev/dsk/c0t3d0s5 setuid/read/write on ¼ö  2¿ù 14 07:53:09 1996
/user on /dev/dsk/c0t1d0s6 setuid/read/write on ¼ö  2¿ù 14 07:53:09 1996
/pcfs on /dev/diskette setuid/read/write on ¼ö  2¿ù 14 07:55:00 1996
/home/userA on candy:/home/disk1 read/write/remote on ¿ù  3¿ù 18 15:00:10 1996
/home/userB on candy:/home/disk2 read/write/remote on ¿ù  3¿ù 18 15:00:31 1996
/home/userC on candy:/home/disk3 read/write/remote on ¿ù  3¿ù 18 15:00:55 1996
/home/userD on candy:/home/disk4 read/write/remote on ¿ù  3¿ù 18 15:01:44 1996

hyundai3# cd /home/userA
hyundai3# touch test_userA
touch: test_userA¸¦ ¸¸µé¼ö ¾øÀ½
       ---> rw optionÀε¥µµ write°¡ µÇÁö ¾ÊÀ½.ÀÌ°ÍÀº serverÀÇ /home/disk1ÀÇ
            permissionÀÌ 755À̱⠶§¹®ÀÌ´Ù.
            chmod 777 /home/disk1À» ½ÇÇàÇϸé rwµÊ.
hyundai3# !!
touch test_userA
hyundai3# ls -al
ÃÑ 4
drwxrwxrwx   2 root     other        512 1995³â  3¿ù 19ÀÏ .
drwxr-xr-x  25 root     root         512  3¿ù 18ÀÏ  14:51 ..
-rw-r--r--   1 nobody   other          0 1995³â  3¿ù 19ÀÏ test_userA
hyundai3# cd /home/userC
hyundai3# touch test_userC
hyundai3# ls -al
ÃÑ 4
drwxr-xr-x   2 root     other        512 1995³â  3¿ù 19ÀÏ .
drwxr-xr-x  25 root     root         512  3¿ù 18ÀÏ  14:51 ..
-rw-r--r--   1 root     other          0 1995³â  3¿ù 19ÀÏ test_userC

2) Solaris 1.x mount
     
   NFS server°¡ shareÇØÁØ NFS resources¸¦ mount

hyundai2# showmount -e candy
export list for candy:
/home/disk1 (everyone)
/home/disk2 (everyone)
/home/disk3 (everyone)
/home/disk4 (everyone)

hyundai2# mkdir /home/disk4
hyundai2# mount -t nfs candy:/home/disk4 /home/disk4
                ------ -> Solaris 2.x(-F nfs)¿Í ´Ù¸¥ ºÎºÐ
hyundai2# mount
/dev/sd0a on / type 4.2 (rw)
/dev/sd0g on /usr type 4.2 (rw)
/dev/sd0h on /home type 4.2 (rw)
/dev/sd4h on /DATA1 type 4.2 (rw)
/dev/sd5h on /DATA2 type 4.2 (rw)
/dev/sd6h on /DATA3 type 4.2 (rw)
/dev/sd7h on /PC type 4.2 (rw)
candy:/home/disk4 on /home/disk4 type nfs (rw)

hyundai2# cd /home/disk4
hyundai2# ls -al
total 2
drwxr-xr-x  2 root          512 Mar 19  1995 .
drwxr-xr-x 15 root         1024 Mar 18 15:35 ..
hyundai2# touch tets_disk4
touch: cannot create tets_disk4: Read-only file system
hyundai2# mount -t nfs candy:/home/disk3 /home/disk3
hyundai2# mount
/dev/sd0a on / type 4.2 (rw)
/dev/sd0g on /usr type 4.2 (rw)
/dev/sd0h on /home type 4.2 (rw)
/dev/sd4h on /DATA1 type 4.2 (rw)
/dev/sd5h on /DATA2 type 4.2 (rw)
/dev/sd6h on /DATA3 type 4.2 (rw)
/dev/sd7h on /PC type 4.2 (rw)
candy:/home/disk3 on /home/disk3 type nfs (rw)
candy:/home/disk4 on /home/disk4 type nfs (rw)
hyundai2# cd /home/disk3
hyundai2# touch test_disk3
hyundai2# ls -al
total 2
drwxr-xr-x  2 root          512 Mar 19  1995 .
drwxr-xr-x 16 root         1024 Mar 18 15:38 ..
-rw-r--r--  1 root            0 Mar 19  1995 test_disk3

3) Booting½Ã¸¶´Ù NFS Resources¸¦ ÀÚµ¿ÀûÀ¸·Î mount ÇÏ°íÀÚ ÇÒ¶§

hyundai3# vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
/proc           -               /proc           proc    -       no      -
fd              -               /dev/fd         fd      -       no      -
swap            -               /tmp            tmpfs   -       yes     -

/dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1       no
-
/dev/dsk/c0t3d0s6       /dev/rdsk/c0t3d0s6      /usr    ufs     1       no
-
/dev/dsk/c0t3d0s7       /dev/rdsk/c0t3d0s7      /home   ufs     2       yes
-
/dev/dsk/c0t3d0s5       /dev/rdsk/c0t3d0s5      /opt    ufs     2       yes
-
/dev/dsk/c0t3d0s1       -       -       swap    -       no      -
/dev/dsk/c0t1d0s6       /dev/rdsk/c0t1d0s6      /user   ufs     2       yes
-
candy:/home/disk1       -   /home/userA   nfs   -  yes    bg,soft,intr
:wq

hyundai3#

4) hard ¿Í soft optionÀÇ Â÷ÀÌ

   * NFS serverÀÇ down½Ã (bg,soft,intr,optionÀ¸·Î mount ½Ãµµ)
     bootingÁß¿¡ ´ÙÀ½°ú °°Àº message°¡ ³ªÅ¸³².

     nfs mount: candy::RPC:Rpcbind failure -RPC: Timed out
     nfs mount: backgrounding:/usr/nfs

   bootingÀÌ ³¡³­ ÈÄ¿¡ process»óŸ¦ º¸¸é
   hyundai3# ps -ef | more
   root 138 1 8 02:43:53 ? 0:00 mount -o bg,soft,intr candy:/home/disk1 /usr/nfs
  
   À§¿Í °°Àº processor°¡ background·Î runningÁßÀÓÀ» ¾Ë¼ö ÀÖÀ½.
   NFS server°¡ ´Ù½Ã bootingµÈ ÈÄ¿¡´Â background·Î µµ´Â process¿¡ ÀÇÇØ Á¤»óÀÎ
   °æ¿ìÀûÀÎ NFS mount ¼öÇà
   
   * mount optionÀ» fg,hard,intr optionÀ» »ç¿ë½Ã
     À§ÀÇ °æ¿ì´Â rebootingµµÁß hangup»óÅ·Π°è¼Ó NFS serverÃøÀ¸·Î retrying½Ãµµ.

     NFS server°¡ Á¤»óÀûÀÎ »óÅ·Πµ¹¾Æ¿À¸é ´ÙÀ½°ú °°Àº ¸Þ¼¼Áö°¡ ³ªÅ¸³².
     NFS mount:candy:RPC: Rpcbind fauliure -RPC : Timed out
     NFS mount:retrying:/home/nfs
     nfs mount:/home/userA: mounted ok
     
     À§¿Í °°ÀÌ mount¸¦ ³¡³½ÈÄ booting procedure¸¦ ²¾¼Ó ÁøÇàÇÔ.

6. NFS Troubleshooting

   NFS¿¡¼­ÀÇ Àå¾Ö°¡ ¹ß»ý½Ã ¿øÀÎÀº NFS server ¶Ç´Â NFS client ±×¸®°í NFS client
   ±×¸®°í ³×Æ®¿÷ ÀÚüÀÇ ¹®Á¦ÀÇ Çϳª·Î º¼¼ö ÀÖ´Ù.

   NFS server system¿¡´Â mountd,nfsd daemonÀÌ ¹Ýµå½Ã running µÇ¾î¾ß ÇÏ°í
   /etc/dfs/dfstab¿¡ entry°¡ ÀÖÀ¸¸é booting½Ã ÀÚµ¿ÀûÀ¸·Î nfsd,mountd¸¦
   runningÇÏ°Ô µÇ¾î ÀÖ´Ù.
   (/etc/rc3.d/S15nfs.server script¿¡ ÀÇÇØ ½ÇÇàµÊ)

   1) General Information on NFS Troubleshooting. 

      * NFS server  not responding,still trying   
        hard mountdÀÇ °æ¿ì NFS serverÀÇ fail½Ã displayµÊ.
      * NFS server  ok
        NFS server°¡ Á¤»óÀûÀ¸·Î NFS resource¸¦ share½Ã À§¿Í °°Àº message°¡
        ³ªÅ¸³².
      * intr optionÀº default mount optionÀ¸·Î server·Î ºÎÅÍÀÇ ÀÀ´äÀÌ ¾øÀ»¶§
        Ctrl-C key¸¦ ÀÔ·Â interruptÀ» ¼öÇàÇÒ ¼ö°¡ ÀÖ´Ù.
  
   2) NFS server¿¡¼­ÀÇ check»çÇ×

     * ´ÙÀ½°ú °°ÀÌ candy systemÀÇ procedure¸¦ check

      candy# ps -ef | grep mountd
    root   169     1 15 08:34:31 ?        0:00 /usr/lib/autofs/automountd
    root   984   890  5 18:02:52 pts/4    0:00 grep mountd
    root   756     1 40 14:00:56 ?        0:00 /usr/lib/nfs/mountd
      candy# ps -ef | grep nfsd
    root   986   890  5 18:03:29 pts/4    0:00 grep nfsd
    root   754     1  8 14:00:56 ?        0:00 /usr/lib/nfs/nfsd -a 16
    
     * nfsdÀÇ option
       -a : Start a NFS daemon over all available connectionless transports
        8 : Number of daemon in server 
            Solaris 2.4¿¡¼­´Â default:16

     * ´ÙÀ½°ú °°ÀÌ NFS serverÀÇ ³×Æ®¿÷ »óŸ¦ Á¡°ËÇÑ´Ù.

       client¿¡¼­
       # /usr/sbin/rpcinfo -u  nfs
       - Á¤»óÀÎ °æ¿ì 
       hyundai3# rpcinfo -u candy nfs
       program 100003 version 2 ready and waiting
       - ºñÁ¤»óÀÎ °æ¿ì 
       rpcinfo: RPC : Program not registered
       program 100005 is not available

       client¿¡¼­ 
       # /usr/sbin/rpcinfo -u  mountd
       - Á¤»óÀÎ °æ¿ì 
       hyundai3# rpcinfo -u candy nfs
       program 100005 version 1 ready and waiting
       program 100005 version 2 ready and waiting
       - ºñÁ¤»óÀÎ °æ¿ì 
       rpcinfo: RPC : Program not registered
       program 100005 is not available      

  3) Clearing Remote Mounting Probelms

     * Example (1)
       - NFS client¿¡¼­ NFS serverÀÇ resource¸¦ mountÇÏ°íÀÚ ÇÒ¶§ ´ÙÀ½°ú
         °°Àº error°¡ ¹ß»ýµÇ¸é,
         mount:...., server not responding:RPC_PMAP_FAILURE - RPC TIMED OUT
      
       - Á¶Ä¡
         À§ÀÇ °æ¿ì´Â nfs serverÀÇ sharing list down ¶Ç´Â wrong run level,
         ¶Ç´Â rpcbind°¡ dead or hang»óÅ À϶§ ¹ß»ýÇÏ¸ç ´ÙÀ½°ú °°Àº Á¶Ä¡.
  
         candy# who -r
           .       run-level 2   3¿ù 19 08:34     3      0  S
         run level checking:
         run level 3¿¡¼­ nfsd,mountd daemonÀÌ running µÊ.
         ¸¸¾à run levelÀÌ 2 °¡ ¾Æ´Ï¸é run level 3À¸·Î ÀüȯÇϰųª ½Ã½ºÅÛÀ»
         rebooting½ÃÄѼ­ rpcbind daemonÀ» restart½ÃÅ´.
     
         candy# init 3 ---> run level 3 À¸·Î Àüȯ
 
      * Examples (2)
        - mount: ... server not responding: RPC_PROG_NOT_REGISTERED
   
        -¿øÀÎ /ÇØ°á
         mount ¸í·É¾î°¡ serverÀÇ rpcbind±îÁö´Â ½ÇÇàÀÌ µÇ¾úÀ¸³ª mountd daemon
         ÀÌ running µÇÁö ¾Ê´Â °æ¿ì

         candy# /usr/sbin/rpcinfo -u  mountd

      * Example(3)
        - mount: ... No such file or directory
   
        -¿øÀÎ
         remote directory ¶Ç´Â local directory°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ìÀÓ.

      * Example(4)
        -mount: ..... : Permission denied
        
        -¿øÀÎ
         nfs serverÀÇ share list¿¡ client°¡ µî·ÏµÇÁö ¾Ê´Â °æ¿ì

Revision History
Created by Lee Jeong-Yong( HEI W/S S.E.)   on March 18 ,1996