vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am working on a system using AIX 5.3 I need to execute a script that leads to too many phantom disk entries. Thus, I wrote a batch file to delete these phantom disk entries i=0 limit=500 while ((i<$limit))&&((i=$i+1)) do rmdev -dl hdisk$i done The problem now is that I cant delete these entries using command rmdev. The error I see is # rmdev -dl hdisk39 Method error (/etc/methods/ucfgdevice): 0514-062 Cannot perform the requested function because the specified device is busy. Here is the list of disks I need to delete: # lspv hdisk0 000c7bca3abf3bb6 rootvg active hdisk6 000c7bcae1b8aac7 None hdisk7 000c7bcae1b8ab33 None hdisk8 none None hdisk9 none None hdisk10 000c7bcae1b8ab9e None hdisk11 000c7bcae1b90451 None hdisk12 000c7bcae1b904bd None hdisk13 000c7bcae1b90529 None hdisk14 000c7bcae1b95dac None hdisk15 000c7bcae1b95e18 None hdisk16 000c7bcae1b95e84 None hdisk17 000c7bcae1b9be93 None hdisk18 000c7bcae1b9bf0b None hdisk19 000c7bcae1b9bf82 None hdisk20 none None hdisk21 none None hdisk22 none None hdisk23 none None hdisk24 none None hdisk25 none None hdisk26 none None hdisk27 none None hdisk28 none None hdisk29 none None hdisk31 none None hdisk32 none None hdisk5 none None hdisk30 none None hdisk37 none None hdisk38 none None hdisk39 none None |
| |||
| tangy wrote: > I am working on a system using AIX 5.3 > I need to execute a script that leads to too many phantom disk entries. > Thus, I wrote a batch file to delete these phantom disk entries > i=0 > limit=500 > while ((i<$limit))&&((i=$i+1)) > do > rmdev -dl hdisk$i > done > The problem now is that I cant delete these entries using command > rmdev. The error I see is > # rmdev -dl hdisk39 > Method error (/etc/methods/ucfgdevice): > 0514-062 Cannot perform the requested function because the > specified device is busy. > Not sure why it won't remove hdisk39, since it is in the lspv, but wouldn't the following be safer? for i in `lspv |grep None|cut -f 1 -d " "` do rmdev -dl $i done > Here is the list of disks I need to delete: > # lspv > hdisk0 000c7bca3abf3bb6 rootvg > active > hdisk6 000c7bcae1b8aac7 None > hdisk7 000c7bcae1b8ab33 None > hdisk8 none None > .. .. .. > > hdisk39 none None |
| ||||
| hdisk39? with an hdisk# that high, i would assume there may be SAN on this server? and hdisk39 may be associated with a SAN device (vpath,hdiskpower, etc).... On 19 Jun 2006 06:15:17 -0700, takarov2003@yahoo.com wrote: >tangy wrote: >> I am working on a system using AIX 5.3 >> I need to execute a script that leads to too many phantom disk entries. >> Thus, I wrote a batch file to delete these phantom disk entries >> i=0 >> limit=500 >> while ((i<$limit))&&((i=$i+1)) >> do >> rmdev -dl hdisk$i >> done >> The problem now is that I cant delete these entries using command >> rmdev. The error I see is >> # rmdev -dl hdisk39 >> Method error (/etc/methods/ucfgdevice): >> 0514-062 Cannot perform the requested function because the >> specified device is busy. >> > >Not sure why it won't remove hdisk39, since it is in the lspv, but >wouldn't the following be safer? > >for i in `lspv |grep None|cut -f 1 -d " "` >do >rmdev -dl $i >done > > >> Here is the list of disks I need to delete: >> # lspv >> hdisk0 000c7bca3abf3bb6 rootvg >> active >> hdisk6 000c7bcae1b8aac7 None >> hdisk7 000c7bcae1b8ab33 None >> hdisk8 none None >> >. >. >. >> >> hdisk39 none None |