当我们对网络或网卡进行操作时,经常会遇到"device busy", 而不让我们进行操作. wLBLinux联盟
例如: wLBLinux联盟
rmdev -l ent1 wLBLinux联盟
Method error (/etc/methods/ucfgdevice): wLBLinux联盟
0514-062 Cannot perform the requested function because the wLBLinux联盟
specified device is busy. wLBLinux联盟
1.首先我们要确认网络接口已经"down"及 "detached". wLBLinux联盟
使用以下脚本文件可以"down"及"detach"所有TCP/IP网络接口. wLBLinux联盟
interfaces=`lsdev -Cc if -F name | grep -v lo0` wLBLinux联盟
for interface in $interfaces wLBLinux联盟
do wLBLinux联盟
ifconfig $interface down wLBLinux联盟
ifconfig $interface detach wLBLinux联盟
done wLBLinux联盟
2. 检查是否下列应用正在运行: wLBLinux联盟
1) SNA : lssrc -g sna (检查SNA是否运行) wLBLinux联盟
stopsrc -g sna(中断) wLBLinux联盟
stopsrc -f -s sna(强行中断) wLBLinux联盟
如果以上两条命令都不起作用: /usr/bin/sna -stop sna -t forced wLBLinux联盟
如果仍不能中断: /usr/bin/sna -stop sna -t cancel wLBLinux联盟
2) IPX: ps -ef |grep npsd wLBLinux联盟
ps -ef |grep sapd (IPX是否运行) wLBLinux联盟
/usr/lpp/netware/bin/stopnps (中断) wLBLinux联盟
3) Netbios: ps -ef | grep netbios (是否运行) wLBLinux联盟
mcs0 unload (中断)
以上步骤对于大部分"device busy"问题都可解决.wLBLinux联盟