1847356 Members
4510 Online
110264 Solutions
New Discussion

vgimport problem

 
SOLVED
Go to solution
Jim Adamson
Frequent Advisor

vgimport problem

I have messed up while trying to use vgimport. I used the following commands while trying to import a volume group on a second disk. The commands I used were -
1. mkdir /dev/vg01
2. mknod /dev/vg01/group c 64 0x010000
3. vgimport -v vg01 /dev/dsk/c3t3d0
I then looked in SAM to activate the volume group - but the volume group was not shown. After this I tried to undo what I did by removing /dev/vg01 and trying again. Unfortunately there is still an entry for for /dev/dsk/c3t3d0 in /etc/lvmtab so I cannot recreate /dev/vg01 as the error messages say there is already an entry for this.

I could create a different volume group (vg02) but would like to sort this out properly. Any way to remove an entry in /etc/lvmtab and clear vg01 off the host (its a j5000).
thanks
Jim
Oh dear
4 REPLIES 4
U.SivaKumar_2
Honored Contributor
Solution

Re: vgimport problem

Hi,
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan
Try creating vg again.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Vincent Farrugia
Honored Contributor

Re: vgimport problem

Hello,

vgexport -v vg01

HTH,
Vince
Tape Drives RULE!!!
Pete Randall
Outstanding Contributor

Re: vgimport problem

Jim,

You need to get the entry out of /etc/lvmtab for /dev/dsk/c3t3d0. To do that, you move the old lvmtab aside and recreate a new one:
mv /etc/lvmtab /etc/lvmtab.oops
vgscan -a

After that you should be able to recreate vg01 - by going through your original process:
mkdir, mknod, vgimport.

The one question I have is: where did this volume group come from? Did you export it? Or are you really just trying to create a VG?

HTH,
Pete

Pete
Jim Adamson
Frequent Advisor

Re: vgimport problem

Thanks guys thats it sorted.
Jim
Oh dear