1846595 Members
2399 Online
110256 Solutions
New Discussion

vgimport failed?

 
SOLVED
Go to solution
Murat SULUHAN
Honored Contributor

vgimport failed?

Hi

I have to import some physical volumes, but vgimport failed as you can see in below

# vgscan -v -a
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c0t2d0":
Invalid argument
Physical Volume "/dev/dsk/c4t2d0" contains no LVM information
Physical Volume "/dev/dsk/c4t3d0" contains no LVM information
Physical Volume "/dev/dsk/c5t0d0" contains no LVM information
Physical Volume "/dev/dsk/c5t1d0" contains no LVM information
Physical Volume "/dev/dsk/c5t2d0" contains no LVM information
Physical Volume "/dev/dsk/c5t3d0" contains no LVM information


/dev/vg00
/dev/dsk/c1t15d0


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
# vgimport /dev/vgoradata /dev/dsk/c4t0d0 /dev/dsk/c4t1d0
Volume group "/dev/vgoradata" is still active.
# vgchange -a n /dev/vgoradata
vgchange: Volume group "/dev/vgoradata" does not exist in the "/etc/lvmtab" file.
#


So how can I import these 2 volumes

Best Regards
Murat
Murat Suluhan
5 REPLIES 5
RAC_1
Honored Contributor

Re: vgimport failed?

Did you do
mkdir /dev/vgxx
mknod /dev/vg00/group c 64 0x0y0000
Where y is appropriate vg number

Before trying to import the pvs to vgxx??

Anil
There is no substitute to HARDWORK
Sundar_7
Honored Contributor

Re: vgimport failed?

vgimport will not create the VG directory/group file. You need to manually create the vg dir and group file

# mkdir /dev/vg09
# mknod /dev/vg09/group c 64 0x090000
# vgimport /dev/vg09 /dev/dsk/c4t0d0 /dev/dsk/c4t1d0
# vgchange -a y /dev/vg09

Learn What to do ,How to do and more importantly When to do ?
Murat SULUHAN
Honored Contributor

Re: vgimport failed?

Hi all

I am so sorry, I already created the

/dev/vgoradata directory and
/dev/vgoradata/group file (with mknode)

before the import operation

/dev/vgoradata:
total 0
crw-rw-rw- 1 root sys 64 0x002000 Jul 28 17:18 group

Best Regards
Murat SULUHAN
Murat Suluhan
Sundar_7
Honored Contributor
Solution

Re: vgimport failed?

crw-rw-rw- 1 root sys 64 0x002000 Jul 28 17:18 group

I believe you have the wrong minor number for the group file. The last 4 digits of the group file's minor number should be 0.

Try this

# rm /dev/vgoradata/group
# mknod /dev/vgoradata/group c 64 0x020000
# vgimport ....
# vgchange -a y /dev/vgoradata
Learn What to do ,How to do and more importantly When to do ?
Murat SULUHAN
Honored Contributor

Re: vgimport failed?

oh my god

I am so sorry, thank you so much

Best Regards
Murat
Murat Suluhan