1834429 Members
2392 Online
110067 Solutions
New Discussion

Re: Can not import vg

 
Dr. Peer-Joachim Koch
Frequent Advisor

Can not import vg

Hi,

I hav reinstalled a L class from scratch. The system is connected
via fc with two EMC Raid arrays.
I have exported the vg before
I started the setup of the machine and now I'm not able to
import the vg.

The following commands are used:

mkdir /dev/vg01
cd /dev/vg01
mknod .....
vgimport -m mapfile -f out.file /dev/vg01

The command is executed WITHOUT any error messages, but their is NO logical volume.

Any idea ?

Thanks, Peer
peko
5 REPLIES 5
Ravi_8
Honored Contributor

Re: Can not import vg

Hi,

#vgchange -a y /dev/vg01
never give up
Ian Dennison_1
Honored Contributor

Re: Can not import vg

Does a vgdisplay show the disks and lvols (in the correct names if you used a mapfile?)

You may have to activate it using 'vgchange -a y /dev/vg01'.

You might also have to fsck the lvols before you can mount them.

Command = fsck -o -y full /dev/vg01/rlvol1

Share and Enjoy! Ian
Building a dumber user
Frederic Sevestre
Honored Contributor

Re: Can not import vg

Hi,

Try
# strings /etc/lvmtab
to check if the vg exist, and then
# vgchange -a y vg01

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Armin Feller
Honored Contributor

Re: Can not import vg

Hi,


please check if the volume group is already added to the system:

# vgdisplay vg01

if not, try to activate the volume group:

# vgchange -a y vg01

check the mapfile an show if all lvols are in:

# more mapfile

check if the "group" device of the volume group is correct and the minor no is unique:

# ll /dev/*/group

check the out.file file and be sure that the disk devices are ok

# ioscan -fnCdisk
# more out.file

Hope that helps.

Regards ...
Armin
Dr. Peer-Joachim Koch
Frequent Advisor

Re: Can not import vg

Hi,

thanks to all. I was my mistake.
I looked for /dev/vg01/lvol1, but thoses files are created
after vgchange -a y vg01 ....

Everything fine and running ;)

Bye, Peer
peko