Operating System - HP-UX
1825780 Members
3219 Online
109687 Solutions
New Discussion

Cannot activate vg after recover from make recovery

 
SOLVED
Go to solution
kenny chia
Regular Advisor

Cannot activate vg after recover from make recovery

Hi all
I just recovered a system using a make recovery tape. The make recovery tape was quite old.
Upon boot up the volume group vg01 and vg02 could not be activated
I tried to activate vg01 using sam and the error message is

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t5d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t5d0": The specified path does not correspond to physical volume attached to this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.

Some addition info about my system
# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 8/0/1/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST39175LW
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 2 8/16/5.5.0 sdisk CLAIMED DEVICE QUANTUM FIREBALL-ST2
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
disk 3 8/16/5.6.0 sdisk CLAIMED DEVICE SEAGATE ST32151N
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0


All Your Bases Are Belong To Us!
13 REPLIES 13
Fabio Ettore
Honored Contributor

Re: Cannot activate vg after recover from make recovery

Hi,

may be that /etc/lvmtab is old and it doesn't correspond with the current configuration.

Try to launch:

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v

HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
SIJU JOSE
Frequent Advisor

Re: Cannot activate vg after recover from make recovery

Hi

By default ignite takes only VG00 backup.So you need to import the the other VGs by running a vgscan as fabio told.

try the following
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -av

This will give you an ouput telling which disks are having LVM tructures in that

#mkdir /dev/vg01
#cd /dev/vg01
#mknod group c 64 0x010000
#vgimport /dev/vg01 /dev/dsk/c*t*d*

HTH

Siju
Ashwani Kashyap
Honored Contributor

Re: Cannot activate vg after recover from make recovery

Do a
#strings /etc/lvmtab
and see if your vg01 and vg02 are in there with the proper disk devices .

If the disk devices are different than what you see in ioscan then , you need to rebuidl your lvmtab as explained above.

If the VG's are not listed at all , then you need to import them and can be easily done through sam again .
Ravi_8
Honored Contributor

Re: Cannot activate vg after recover from make recovery

Hi,

by default make_tape_recovery copies only vg00, have you included vg01 and vg02?
if so check the disk c1t5d0(physiacl connections, diskinfo and dd commands).
If you have included in vg01 and vg02 in recovery tape and if the disk is fine then you can import the vg01 and vg02
never give up
kenny chia
Regular Advisor

Re: Cannot activate vg after recover from make recovery

Hi all
I already have the directory vg01 and vg02, should I delete them first?

# mv lvmtab lvmtab.old
# vgscan -av
Creating "/etc/lvmtab".


/dev/vg00
/dev/dsk/c1t6d0


The Volume Group /dev/vg01/group was not matched with any Physical Volumes.
The Volume Group /dev/vg02/group was not matched with any Physical Volumes.
Scan of Physical Volumes Complete.

# ls /dev/vg*

/dev/vg00:
group lvol2 lvol4 lvol6 lvol8 rlvol2 rlvol4 rlvol6 rlvol8
lvol1 lvol3 lvol5 lvol7 rlvol1 rlvol3 rlvol5 rlvol7

/dev/vg01:
group lvol1 rlvol1

/dev/vg02:
group lvol1 rlvol1
All Your Bases Are Belong To Us!
Joseph Loo
Honored Contributor

Re: Cannot activate vg after recover from make recovery

hi,

just follow these steps to recover the missing Volume Groups:

1) Import missing VG's:
# vgimport -v /dev/vg## /dev/dsk/disk /dev/dsk/disk
2) Activate the VG's:
# vgchange -a y /dev/vg##

to avoid this from happening in the future:

1) Install the latest verion of Ignite UX. The make_recovery command
has been enhanced and now backs up the Volume Groups configuration depending on
a vgdisplay. Thus more recent versions will backup Volume Group
configurations even if the logical volumes do not contain any filesystems.

regards.
what you do not see does not mean you should not believe
kenny chia
Regular Advisor

Re: Cannot activate vg after recover from make recovery

Hi Joseph
Doesn't seem to work. Please see the pvdisplay at the bottom, I think it is abnormal. I have performed a dd comand on the disk and there is no problem.

# vgimport -v /dev/vg01 /dev/dsk/c1t5d0
Creating "/etc/lvmtab".
Beginning the import process on Volume Group "/dev/vg01".
vgimport: Warning: Volume Group contains "0" PVs, "1" specified. Continuing.
vgimport: Quorum not present, or some physical volume(s) are missing.
Volume group "/dev/vg01" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.

# vgchange -a y dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t5d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t5d0":
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/vg01":
Quorum not present, or some physical volume(s) are missing.

# pvdisplay /dev/dsk/c1t5d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t5d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c1t5d0".

All Your Bases Are Belong To Us!
Joseph Loo
Honored Contributor
Solution

Re: Cannot activate vg after recover from make recovery

hi,

if u read the following Technical KB:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070865398

check under /etc/lvmconf/ if vg01.conf and vg02.conf r still available, then
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c#t#d#
if this fails, pray that u have a backup data somewhere to restore your vg01 and vg02 back.

by the way, u should ready upgrade Ignite-UX and use make_tape_recovery command, the following download at:

http://www.software.hp.com/products/IUX/download.html

regards.
what you do not see does not mean you should not believe
kenny chia
Regular Advisor

Re: Cannot activate vg after recover from make recovery

Hi Joseph
problem solved
I guess I should just use vgcfgrestore
All Your Bases Are Belong To Us!
Joseph Loo
Honored Contributor

Re: Cannot activate vg after recover from make recovery

hi kenny,

hope that your vg01 and vg02 is mounted and running. please remember to use make_tape_recovery command from the latest Ignite UX download.

regards.
(p.s. glad to help a fellow Singaporean in time of his/her needs.)
what you do not see does not mean you should not believe
kenny chia
Regular Advisor

Re: Cannot activate vg after recover from make recovery

Many thanks. Done that already
All Your Bases Are Belong To Us!
Jeffrey Killian
Frequent Advisor

Re: Cannot activate vg after recover from make recovery

We ran itno this same problem the other morning when we swapped out our system drives. We booted from Ignite (worked great) only our Non-VG00 volume groups were not available. Ignite (even with the -A option) backs up the FILES in /etc - not the subdirs that you need to recover from - like /etc/lvmconf. Also, when you Ignite, the system does a full I/O scan and assigns a new device file to the hardware path. If eveything is the same as when the system was first installed, you should be all set - how often does that happen though. Suggestion made to me (by Brian O'Connel in Atlanta support center) was to make sure we had "map" files of the volume groups (vgcfgbackup of the VGs, and a vgexport to create the map files.) More info available if anyone interested.
kenny chia
Regular Advisor

Re: Cannot activate vg after recover from make recovery

Hi Jeffrey
How should we use the map files to prevent a similiar situation (eg different disk setup when doing a recovery when compared to the setup done during make_recovery)
All Your Bases Are Belong To Us!