When I run command:
>chdev -l hdisk1 -a pv=clear
It shows
Method error (/etc/methods/chgdisk):
0514-062 Cannot perform the requested function because the
specified device is busy.
run:
#>fuser -kxuc /dev/raw1
/dev/raw1:
How to clean PV id?
When I run command:
>chdev -l hdisk1 -a pv=clear
It shows
Method error (/etc/methods/chgdisk):
0514-062 Cannot perform the requested function because the
specified device is busy.
run:
#>fuser -kxuc /dev/raw1
/dev/raw1:
How to clean PV id?
Not sure - maybe varyoffvg the VG that might be on it?
First I need to ask why you would want to clean the PVID as the system assigns this. Also would assume that hdisk1 is a mirror PV on rootvg and if true varying off this VG would not be a good idea!
zaxxon as well as johnf are correct: you probably have to make sure nothing is accessing the disk, which is probably not possible because it is part of a volume group and hence accessed - not by a user process but the filesystem driver.
Find out if this is the case ("lsvg -p rootvg") and - if you are doing this for testing purposes - better don'tproceed.
If you really have to do it: use "reducevg" to get the disk out of the VG, then try the "chdev" command again.
I hope this helps.
bakunin
you should varyoffvg vg ,umount all fs resided on that pv first