1754359 Members
4524 Online
108813 Solutions
New Discussion юеВ

vgimport fails

 
skt_skt
Honored Contributor

vgimport fails


Red Hat Enterprise Linux AS release 3 (Taroon Update 9)
Linux hostname 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux

lvm-1.0.8-14

# vgimport -v --force /dev/sdn /dev/sdo /dev/sdp /dev/sdq /dev/sdr
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "sdn" existence
vgimport -- trying to read physical volumes
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/sdo"
vgimport -- reading data of physical volume "/dev/sdo" from disk
vgimport -- checking for exported physical volume "/dev/sdo"
vgimport -- checking consistency of physical volume "/dev/sdo"
vgimport -- reallocating memory
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/sdp"
vgimport -- reading data of physical volume "/dev/sdp" from disk
vgimport -- checking for exported physical volume "/dev/sdp"
vgimport -- checking consistency of physical volume "/dev/sdp"
vgimport -- reallocating memory
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/sdq"
vgimport -- reading data of physical volume "/dev/sdq" from disk
vgimport -- checking for exported physical volume "/dev/sdq"
vgimport -- checking consistency of physical volume "/dev/sdq"
vgimport -- reallocating memory
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/sdr"
vgimport -- reading data of physical volume "/dev/sdr" from disk
vgimport -- checking for exported physical volume "/dev/sdr"
vgimport -- checking consistency of physical volume "/dev/sdr"
vgimport -- reallocating memory
vgimport -- physical volumes "/dev/sdr" and "/dev/sdo" are in different volume groups


I am restoring the data to these LUNS and when tried to import it fails.. Do you think those disks are having different header info( might have been used for diferent VG earlier; NOT sure) and a pvcreate will help here? do restore after the pvcreate?
Backup goes to tape using "dump" command (netapps snap volume goes to tape) and "retsore" command to restore to the LUNs.

if the dump and restore preserving the pvid/vgid information while restore i am not sure why this two luns complaints so.

any suggestions?
3 REPLIES 3
Gokul Chandola
Trusted Contributor

Re: vgimport fails

Hi,
"might have been used for diferent VG earlier"- No its not.
If you are importing then it is not related to That.

Regards,
Gokul Chandola
There is always some scope for improvment.
Sandeep_Chaudhary
Trusted Contributor

Re: vgimport fails

physical volumes "/dev/sdr" and "/dev/sdo" are in different volume groups

VGID is different on these Luns. use vgid command which u have used in SBI......




skt_skt
Honored Contributor

Re: vgimport fails

is that you baby!!? Nice to to you trying to help. vgchgid is a hp-ux tool. there is no such easy tool in linux.

This is fixed now .
pvscan,vgscan,"vgexport vgname"(it was already exported though and given the message that vgexport failed; But indeed that made a difference). then vgimport that helped.

it was reporing that some other vg was using the same group number. But in linux we dont create group file maually. Linux does that itself.

So i guess the same steps should help again.