3 Replies Latest reply: Apr 30, 2013 5:30 AM by Reidod RSS

    df -h  hangs

    984266
      Hi all,

      Has any one encounter before than when you issues df -h command but it hangs there and never comes out?
      Even you open another session to kill it, although the kill command is successful, the pid still exist.


      root@solaris # kill -9 28149
      root@solaris # ps -ef|grep -i df
      root 27406 11934 0 10:27:15 ? 0:00 df -h
      root 6300 6275 0 Feb 27 ? 0:00 df -h
      root 10528 14196 0 10:28:27 ? 0:00 df -h
      admin 20606 1 0 Nov 26 ? 0:00 df -h
      root 10546 9880 0 10:25:57 ? 0:00 df -h
      admin 20360 1 0 10:25:23 ? 0:00 df -h
      root 29757 1 0 Nov 27 ? 0:00 df -h
      admin 11389 1 0 Nov 26 ? 0:00 df -k
      admin 20120 1 0 Nov 26 ? 0:00 df -h
      root 28317 1 0 Nov 27 ? 0:00 df -h
      root 21401 2997 0 Mar 12 ? 0:00 df -h
      root 21011 4657 0 10:30:26 pts/23 0:00 grep -i df
      root 28149 1 0 Nov 27 ? 0:00 df -h
      root@solaris # df -h
      Filesystem size used avail capacity Mounted on
      rpool/ROOT/s10s_u9wos_14a
      274G 209G 33G 87% /
      /devices 0K 0K 0K 0% /devices
      ctfs 0K 0K 0K 0% /system/contract
      proc 0K 0K 0K 0% /proc
      mnttab 0K 0K 0K 0% /etc/mnttab
      swap 17G 448K 17G 1% /etc/svc/volatile
      objfs 0K 0K 0K 0% /system/object
      sharefs 0K 0K 0K 0% /etc/dfs/sharetab
      fd 0K 0K 0K 0% /dev/fd
      swap 512M 32K 512M 1% /tmp
      swap 17G 104K 17G 1% /var/run
        • 1. Re: df -h  hangs
          Filip Francis
          Hi,

          This is typical when a nfs share is not available any more.
          When you have on your server a NFS share and its not available any more the df -h will hang for ever.
          check with the mount command if you have an NFS share that is not available any more
          Regards
          Filip
          • 2. Re: df -h  hangs
            942840
            check out your /etc/mnttab file for any mounted NFS partitions , unmount the mount point .
            • 3. Re: df -h  hangs
              Reidod
              Hi,

              Issue 'umountall -r'. This command will unmount all NFS filesystems, if you cannot determine which NFS share is not responding. Check also /var/adm/messages for related NFS errors.

              Regards,
              Rei

              Edited by: Reidod on Apr 30, 2013 12:30 PM