Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Changing PVID

Changing PVID


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
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 !"

RE: Changing PVID

Try to recreate the vg.

And why did you clear the pvid?

RE: Changing PVID



RE: Changing PVID


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 !"

RE: Changing PVID

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 !"

RE: Changing PVID


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 !"

RE: Changing PVID

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 !"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close