Showing results for 
Search instead for 
Did you mean: 

Re: vgimport failing..

Go to solution
Respected Contributor

vgimport failing..

i have 2 nodes..
out of whichi just extended an vg for one of my package...
its running fine on primary package..

but wen i take an vgexport of it n do vgimport on sec node..
its failing giving ..

vgchange: Volume group "/dev/vg_spcb_bancs_dbday" does not exist in the "/etc/lvmtab" file.
ERROR: Function activate_volume_group
ERROR: Failed to activate vg_spcb_bancs_dbday

kindly guide me...

on 1st node...

vgexport -p -v -s -m /tmp/ vg_spcb_bancs_dbday

the followng command i use on 2nd node...
vgimport -p -v -s -m /tmp/ vg_spcb_bancs_dbday /dev/dsk/c1t0d7 /dev/dsk/c3t0d7 /dev/dsk/c5t0d7 /dev/dsk/c7t0d7 /dev/dsk/c11t2d0 /dev/dsk/c13t2d0 /dev/dsk/c15t2d0 /dev/dsk/c17t2d0
Respected Contributor

Re: vgimport failing..

Hi ,
i used the follwng steps to increase my vg and lv..

create vdisk of 10 gb
vgchange -a e
vgextend /dev/vg_spcb_bancs_dbday /dev/dsk/c11t2d0 /dev/dsk/c13t2d0 /dev/dsk/c15t2d0 /dev/dsk/c17t2d0
lvextend -L 40890 vgname...
extendfs -F vxfs vggname/rlvol1

vgchange -a n
vgchange -c y

its running fine on primary node but not on 2ndary node..

strings /etc/lvmtab shows nthg...

Honored Contributor

Re: vgimport failing..


ur command is wrong on 2nd server
it should be the follwing (assuming u have copied the map file to the 2nd node)

1. mkdir /dev/vg_spcb_bancs_dbday
2. mknod /dev/vg_spcb_bancs_dbday/group c 64 0xNN0000
3. vgimport -v -s -m /tmp/ /dev/vg_spcb_bancs_dbday

Respected Contributor

Re: vgimport failing..

hi Ninad,

i have tried dat also ...

it gives me d following..

root #/ >vgimport -p -v -s -m /tmp/ /dev/vg_spcb_bancs_dbday /dev/dsk/c1t0d7 /dev/dsk/.....>
Beginning the import process on Volume Group "/dev/vg_spcb_bancs_dbday".
Logical volume "/dev/vg_spcb_bancs_dbday/lvol1" has been successfully created
with lv number 1.
Volume group "/dev/vg_spcb_bancs_dbday" has been successfully created.

root #/ >strings /etc/lvmtab|grep spcb

its nt shwng me the dev/vg_spcb_bancs_dbday in /etc/lvmtab...

Honored Contributor

Re: vgimport failing..


Please see the command I have shown carefully
Please do not use -p while importing
-p is for preview - it will only show you steps that will be carried out - but will not actually carryout the steps.
Try without the -p option - as I have shown and thren check.

Respected Contributor

Re: vgimport failing..

thnnxxxxxx ninad veryy muchhhhhhhhhhhhhhhhh

:) points given..