Oracle@NDMCDB05:~> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 16G 331M 15G 3% /
udev 12G 748K 12G 1% /dev
/dev/sda10 1.1G 73M 956M 8% /boot
/dev/sda9 11G 33M 10G 1% /core
/dev/sda6 41G 15G 26G 37% /home
/dev/sda5 11G 1.2G 8.9G 12% /opt
/dev/sda7 21G 6.8G 14G 34% /oracle
/dev/sda8 11G 2.5G 7.6G 25% /tmp
/dev/sda11 5.1G 2.6G 2.5G 51% /usr
/dev/sda12 2.1G 1.3G 725M 65% /var
shmfs 14G 9.4G 4.7G 68% /dev/shm
/dev/mapper/vgopt-lvarchive
100G 4.8G 96G 5% /home/oracle/archive
只要运行df命令,该session马上挂死,使用ctrl + C也不能终止。
解决办法:
方法1:
使用root用户:
oracle@NDMCDB05:~> su -
Password:
NDMCDB05:~ # cat /etc/mtab
/dev/sda2 / reiserfs rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/sda6 /home reiserfs rw,acl,user_xattr 0 0
/dev/sda5 /opt reiserfs rw,acl,user_xattr 0 0
/dev/sda7 /usr reiserfs rw,acl,user_xattr 0 0
/dev/sda8 /var reiserfs rw,acl,user_xattr 0 0
shm /dev/shm tmpfs rw,size=24g 0 0
proc /var/lib/ntp/proc proc rw 0 0
/dev/mapper/vgopt-lvarchive /home/oracle/archive reiserfs rw 0 0
192.168.121.23:/mnt/ws1_fs/db_backup /backup nfs rw,addr=192.168.121.23 0 0
NDMCDB05:~ #
将上面文件中挂载nfs的整行删除(标红),保存退出即可!!
方法2:
等待NFS server故障恢复,nfs重启启用后,df命令挂死问题解决,但有可能需要重新挂载一下nfs才可以。