Disk Enclosures
Showing results for 
Search instead for 
Did you mean: 

vgimport returns: /dev/vg01 already exist !

Occasional Contributor

vgimport returns: /dev/vg01 already exist !

I ran vgimport /dev/vg01 /dev/dsk/xxx /dev/dsk xxy ... and it returns that /dev/vg01 is already in lvmtab.

This is true since I ran vgscan prior. How do I get those lvol's in /dev/vg01 ? Do I need to recreate them ???
S.K. Chan
Honored Contributor

Re: vgimport returns: /dev/vg01 already exist !

To be on the safe side what you can do is don't import it as vg01, use another vg name that's not been used yet (say vg02). You would then do this ..
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
==> remember minor number 0x020000 has to be unique
# vgimport /dev/vg02 /dev/dsk/xxx /dev/dsk/xxy
# vgchange -a y /dev/vg02
==> activate it
# vgdisplay -v vg02
==> check it

Once this is ok .. get rid of the non-existing vg01 ..
# vgexport /dev/vg01