Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing disk from VG

Status
Not open for further replies.

Marksmen

Technical User
Feb 4, 2003
36
US
I have a san disk that was/is part of a vg and I can't remove it from the vg. When I check the pv's in the vg it shows this:

# lsvg -p prodvg1
prodvg1:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdiskpower323 active 136 20 00..00..00..00..20
hdiskpower319 active 136 7 00..00..00..00..07
hdiskpower320 active 136 8 00..00..00..00..08
hdiskpower321 active 136 8 00..00..00..00..08
hdiskpower322 active 136 8 00..00..00..00..08

However, when I run the lspv command I show an extra disk, hdiskpower233, assigned to the vg:

# lspv |grep prodvg1
hdiskpower233 00ce028fdb1bcb8c prodvg1 active
hdiskpower319 00ce028f8ad90414 prodvg1 active
hdiskpower320 00ce028f8adb4e07 prodvg1 active
hdiskpower321 00ce028f8ad37404 prodvg1 active
hdiskpower322 00ce028f8ad86ba3 prodvg1 active
hdiskpower323 00ce028f8aca78b8 prodvg1 active

I run the reducevg command and get the following:

# reducevg prodvg1 hdiskpower233
0516-022 lquerypv: Illegal parameter or structure value.
0516-022 ldeletepv: Illegal parameter or structure value.
0516-884 reducevg: Unable to remove physical volume hdiskpower233.

Any ideas on how to correct this?
 
This is my understanding (recently learned this, hope it's right - worked for me though)

Using the command "rmdev -dl hdiskpower233"
Should remove the drive from the system then you can export the VG and remove that as well.

I did this when I connected an iSCSI SAN to my AIX then I wanted to remove it completely.
 
hi,
Logical Volume Manager, has data redounded in ODM and in
Volume Descriptor Area on the disks. For some cause these
data may be different, leading to un-clear situations.

See commands as synvlvodm or similar.

ciao
vittorio
 
If you are sure to remove the disk from the VG, you can try the reducevg command with the -d flag (you can try to do it with the name of this or with the ID of the disk), to force deallocation of all partitions on this physical volume.

I hope this works.
Samalogo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top