View Single Post

   
  #3 (permalink)  
Old 01-05-2008, 10:54 AM
Kent Squires
 
Posts: n/a
Default Re: Unable to delete PV using "rmdev -dl" command

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

Reply With Quote