nfs的mount问题

发表于:2007-06-08来源:作者:点击数: 标签:
今天将远程机器DOWN。客户端MOUNT这块盘,不能卸掉,我找到了方法,希望给大家借鉴。 1.问题 [root@ linux one]# umount /mnt01 Cannot MOUNTPROG RPC: RPC: Port mapper failure - RPC: Unable to receive umount: /mnt01: device is busy Hello, We have on
今天将远程机器DOWN。客户端MOUNT这块盘,不能卸掉,我找到了方法,希望给大家借鉴。

1.问题

[root@linuxone]# umount /mnt01
Cannot MOUNTPROG RPC: RPC: Port mapper failure - RPC: Unable to receive
umount: /mnt01: device is busy
Hello,

We have one server hosting the home directories via an NFS share for all the
other Linux boxes. We needed to reboot the system and when attempting to
"umount -f" the NFS /home shares on the other machines we get the following
error;

Cannot MOUNTPROG RPC: RPC: Port mapper failure - RPC: Unable to receive
umount:

(Some machines actually hang on the RPC indefinitely)

mnt01这个目录mount远程的机器,那台机器(server)停掉了,所以不能卸掉.

2.解决办法

[root@linuxone]# /etc/rc.d/init.d/portmap stop
Stopping portmapper: [  OK  ]
[root@linuxone]# umount -f /mnt01
[root@linuxone]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              7669052   4213152   3066324  58% /
/dev/sda1               233336     15057    206232   7% /boot
/dev/sda5              5534416   3373868   1879416  65% /home
none                   2062016         0   2062016   0% /dev/shm
[root@linuxone menglx]# /etc/rc.d/init.d/portmap start
Starting portmapper: [  OK  ]

这个有可能不是最佳的办法.

 

原文转自:http://www.ltesting.net