Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.

MoshiachNow (IS/IT--Management) (OP)
6 Jun 04 10:39
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 !"
http://www.7for70.com/

screwloose (MIS)
6 Jun 04 19:06
Try to recreate the vg.

And why did you clear the pvid?
unixfreak (ISP)
7 Jun 04 1:05

cfgmgr?

Cheers
MoshiachNow (IS/IT--Management) (OP)
7 Jun 04 1:37
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 !"
http://www.7for70.com/

MoshiachNow (IS/IT--Management) (OP)
7 Jun 04 2:34
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 !"
http://www.7for70.com/

ogniemi (TechnicalUser)
7 Jun 04 8:29
mybe this will help you to set old PVID (it helped to me):


http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2003-04/0685.html
MoshiachNow (IS/IT--Management) (OP)
8 Jun 04 3:25
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 !"
http://www.7for70.com/

MoshiachNow (IS/IT--Management) (OP)
10 Jun 04 7:29
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 !"
http://www.7for70.com/

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!

Back To Forum

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