Operating System - HP-UX
1847383 Members
5048 Online
110264 Solutions
New Discussion

vgchgid , was missing a drive

 
Richard Pereira_1
Regular Advisor

vgchgid , was missing a drive

hi,

i performed a clone of my disks and by means of a script typo forgot to run vgchid on 2 of the 9 drives. now vgimport wont work and another vgchgid fails with a message that they are not part of the same vg. Is there a way i could force a vgid on those 2 drives?

Thanks in advance,
Richard
5 REPLIES 5
RAC_1
Honored Contributor

Re: vgchgid , was missing a drive

Activate vg without quorum and and on those two disks, vgcfgrestore on those two disks should resolve that problem.

Anil
There is no substitute to HARDWORK
Richard Pereira_1
Regular Advisor

Re: vgchgid , was missing a drive

# vgcfgrestore -n /dev/vgdbALM1 /dev/rdsk/c13t3d2
Configuration info for Physical Volume "/dev/rdsk/c13t3d2" not found
in "/etc/lvmconf/vgdbALM1.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vgdbALM1 when configuration file was created.
saju_2
Respected Contributor

Re: vgchgid , was missing a drive

Hi Richard

First verify the VG-ID of all the 9 disks. This can be done by
echo "0d8208?UY" | adb
use dsk not rdsk for pv name

Check whether the VG-ID's are showing different for the 2 disks.

If the two disks are showing different value from the other 7 disks , I feel you will have to do vgcfgrestore of the source VG.
At this point you will have disks with same LVM header as of the source disks. Then do a vgchgid on the 9 disks. This time make sure that you specify all the 9 disks in vgchgid command. Im man vgchgid it clearly says that
" all the physical volumes should be split-off and supplied in a single invocation of the vgchgid command"

This vgcfgrestore from source VG can be done if and only if the source VG lvm configurationis not changed after you did the cloning of the disks. If any lvcreation of vgextention was done on the source VG then this modified LVM header will come to the mirror copy.

Regards
CS
Armin Kunaschik
Esteemed Contributor

Re: vgchgid , was missing a drive

Nice way of getting the PV id with adb!
Is there a documentation of such "extra feature" of abd?
Might be helpful...

Armin
And now for something completely different...
Roland Piette
Regular Advisor

Re: vgchgid , was missing a drive

Hi all,

I try the following command :
echo "0d8208?UY" | adb /dev/dsk/c2t10d0
and I received this message :
2010:
text address not found

Is this method only working on specific devices ?

Regards,
Roland