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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing PVID

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

For my reason I have changed the existing PVID from 0045401b5c79b298 to 0045401bfa67b912 on one of the disks as following:

chdev -l hdisk2 -a pv=clear
chdev -l hdisk2 -a pv=yes

Now it shows:
lqueryvg -p hdisk2 -Avt
0516-320 lqueryvg: Physical volume hdisk2 is not assigned to
a volume group.
Max LVs: 256
PP Size: 24
Free PPs: 33
LV count: 2
PV count: 1
Total VGDAs: 2
Conc Allowed: 0
MAX PPs per PV 1016
MAX PVs: 32
Conc Autovaryo 0
Varied on Conc 0
Logical: 0045401b5c79b298.1 slv2.0 1
0045401b5c79b298.2 loglv01 1
Physical: 0045401bfa67b912 2 0
VGid: 0045401b5c79b298
Total PPs: 542
LTG size: 128
HOT SPARE: 0
AUTO SYNC: 0
VG PERMISSION: 0
SNAPSHOT VG: 0
IS_PRIMARY VG: 0
PSNFSTPP: 4352

Clearly VGID and LVID's are different from the hdisk PVID.
I'm now unable to import the disk :

importvg -y svg2 hdisk2
0516-304 getlvodm: Unable to find device id 0045401bfa67b912 in the Device
Configuration Database.
0516-022 : Illegal parameter or structure value.
0516-780 importvg: Unable to import volume group from hdisk2.

What is the way to now sync the VGID and LVID on the disk with the PVID ?


"Long live king Moshiach !"
 
Guys,

I had to clear the PVID since I had 2 identical PVIDs on 2 different disks (RAID sets) after some crash.
Recreatevg is no good - I need to fix the issue with AIX 4.3.3,where it does not exist.

"Long live king Moshiach !"
 
screwloose ,
Did not manage to find a way to recreate the existing VG (just change the VG name and the PVID) without (!) changing the LV's names.

Any idea ?

"Long live king Moshiach !"
 
Thanks,

But in my case I could not use the old PVID (it was used by another disk) - so I HAD to recreate the PVID.
But then still I'm left with a problem of recreating the VG so that I can import it allright,including updating the LV's info on the disk.
"recreatevg -y svg2 hdisk2" did not work well for me - all the LV's got names changed.

"Long live king Moshiach !"
 
Still seaking the answer:

Once I have changed the disk's PVID (chdev) - how can I bring my VG+LV's back to the state when they will import allright ?

"Long live king Moshiach !"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top