LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

Lost a VG - need to get it back

 
Highlighted

Lost a VG - need to get it back

Hiya Folks -

I have a machine that used to have two VG's in addition to vg00 off course

1. /dev/hpvm4a_vg00
2. /dev/hpvm4b_vg00

This morning I came in and I now only have the /dev/hpvm4a_vg00 but not hpvm4b_vg00 - I need to get it back - here is some output with some descriptive notes about my situation - any help would be really appreciated.

I am attaching a full problem description in txt. Please please help me restore my VG. Very strange.

Thanks in advance for any help -

Cheers,
4 REPLIES 4
Highlighted

Re: Lost a VG - need to get it back

Just an additional note to the attachment which explains the whole problem. When I try to import the VG off the disk I get the following:

# vgimport -v /dev/hpvm4b_vg00 /dev/dsk/c16t0d2
Beginning the import process on Volume Group "/dev/hpvm4b_vg00".
vgimport: Volume group "/dev/hpvm4b_vg00" already exists in the "/etc/lvmtab" file.

When I try to activate the VG - it tries to connect to c18t0d2 - which seems to be down SAN side - but that shouldnt matter because this 4b volume should be on c16t0d2

# vgchange -a y /dev/hpvm4b_vg00
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c18t0d2":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c18t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c18t0d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c18t0d4":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/hpvm4b_vg00":
Quorum not present, or some physical volume(s) are missing.

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t0d0s2
/dev/dsk/c0t1d0
/dev/hpvm4a_vg00
/dev/dsk/c16t0d1
/dev/dsk/c18t0d1
/dev/hpvm4b_vg00
/dev/dsk/c16t0d2
/dev/dsk/c16t0d3
/dev/dsk/c16t0d4
/dev/dsk/c18t0d2
/dev/dsk/c18t0d3
/dev/dsk/c18t0d4
#
Highlighted
Torsten.
Acclaimed Contributor

Re: Lost a VG - need to get it back

You should be able to activate the VG in quorum mode.


But if you look at this:

disk 37 0/3/0/0/0/1.6.14.218.0.0.4 sdisk CLAIMED DEVICE NETAPP LUN ----> These disks are supposed to be the alternate links c18 disks for the c16 disks


There are no device files.

Maybe something has changed (switch port?) - you need to create the device files and import the VG with these new device files.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Highlighted

Re: Lost a VG - need to get it back

Thanks for the help - called HP support - there was a mismatch between the disks the vg's created on by name and what was in the lvm conf files...

After correcting - exporting - reimporting - and recreating via mknod - issue was resolved ... closing this thread

Re: Lost a VG - need to get it back

Thanks for the help - called HP support - there was a mismatch between the disks the vg's created on by name and what was in the lvm conf files...

After correcting - exporting - reimporting - and recreating via mknod - issue was resolved ... closing this thread