Operating System - HP-UX
1820042 Members
3346 Online
109608 Solutions
New Discussion юеВ

Re: Unable to activate volume groups

 
SOLVED
Go to solution
John_16
New Member

Unable to activate volume groups

I have a K450 running 10.20 with 5 Winchester disk arrays attached to it. One of the arrays went bad and it was necessary to replace the array shelf(all the disks were still intact). After swapping out the shelves and placing the disks into the new shelf I was able to map out the logical drive and assign the RAID a new LUN. Now when I go back into the system, I am having trouble getting the volume group working again. The volume group vg05a previously was on /dev/dsk/c2t3d0 and now after replacing the shelf I did an "ioscan -funC disk" and "insf" and the new device file that was created is /dev/dsk/c4t5d0. I am not sure how to reconfigure vg05a to this new location.
whazup
4 REPLIES 4
Andy Monks
Honored Contributor
Solution

Re: Unable to activate volume groups

the easiest way is to vgexport/import it :-

ll /dev/vg05a/group (make a note of the minor number)

vgexport /dev/vg05a

mkdir /dev/vg05a
mknod /dev/vg05a/group c 64 0xYY0000 (this is the minor number from above)

vgimport /dev/vg05/a /dev/dsk/

vgchange -a y /dev/vg05a

and that should be it
Kofi ARTHIABAH
Honored Contributor

Re: Unable to activate volume groups

You would have to vgexport and then vgimport... here are the commands:

first deactivate the vg05a with:
# vgchange -a n vg05a
then remove entries for vg05a from the lvmtabs...
# vgexport /dev/vg05a
now re-read the lvm details from the disk /dev/dsk/c4t5d0
# vgimport /dev/vg05a /dev/dsk/c4t5d0
re-activate the vg05a with:
# vgchange -a y vg05a

that is it.
nothing wrong with me that a few lines of code cannot fix!
John Palmer
Honored Contributor

Re: Unable to activate volume groups

Providing creating the LUN has not trashed your data then all you have to do is remove the old vg05a from you system and recreate it as follows (assuming there is only one disk in your VG):-

ll /dev/vg05a
and note the minor number of the file group
vgexport -m /tmp/vg05a.map vg05a
to remove the old vg05a from your system

mkdir /dev/vg05a
mknod /dev/vg05a/group c 64 0x??0000
where ?? is the same as the original group
vgimport -m /tmp/vg05a.map \ vg05a /dev/dsk/c4t5d0
vgchange -a y vg05a
vgcfgbackup vg05a

John_16
New Member

Re: Unable to activate volume groups

That worked...I have all my data back now. Thanks a lot for your help!
whazup