1753784 Members
6923 Online
108799 Solutions
New Discussion юеВ

vgimport problem

 
Jorge Pons
Trusted Contributor

Re: vgimport problem

That is..

# more vg02.map
VGID 05eb7a3c399a89b
1 lvol1
vg02.map: END

Jorge

Massimo Bianchi
Honored Contributor

Re: vgimport problem

Hi,
vg02.map looks O.K.


Does the import works, after re-creating dir and special file ?

Do you get any error ?
BTW, are source and dest the same O.S. ? It should not matter, but...

Massimo

Jorge Pons
Trusted Contributor

Re: vgimport problem

it tells me
/dev
# cd vg02
sh: vg02: not found.
# vgimport -s -v -m /tmp/vg02.map /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
vgimport: Volume group "/dev/vg02" already exists in the "/etc/lvmtab" file.
#
#
and nothing is created. How I clean lvmtab?

Thanks
Massimo Bianchi
Honored Contributor

Re: vgimport problem

"it tells me
/dev
# cd vg02
sh: vg02: not found.
# vgimport -s -v -m /tmp/vg02.map /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
vgimport: Volume group "/dev/vg02" already exists in the "/etc/lvmtab" file.
#
#
and nothing is created. How I clean lvmtab?

Thanks "

Hi,
to clean lvmtab:
- cp -p /etc/lvmtab /etc/lvmtab.ORIG
- vgscan -p
preview to see what will be done
- vgscan
to operate
if this does not clean lvmtab, then
- rm /etc/lvmtab
we made a copy before
- vgscan


HTH,
Massimo