You are not logged in.

#1 2008-11-29 13:22:29

kian.tern
Member
Registered: 2008-11-29
Posts: 5

[SOLVED] Can't initialize LVM partitions

I have Ubuntu 8.10 installed on LVM. I'm tring to install Arch using the same partition setup I already have for Ubuntu.
For some reason after I load dm-mod module the LVM partitions do not appear in /dev/mapper the /dev/{$VG_NAME} directory also does not exist.
If I do lvscan I see all of my logical volumes. I tried to do partprobe but it didn't help.
I can't recreate the VG because I'll lose all my data in /home and unfortunatly I don't have a place to back it up.
I'm using the archlinux-2008.06-ftp-x86_64.iso the md5sum matches so there is no problem with the installer.
Does any one know how to fix it?
Thanks in advance.

Last edited by kian.tern (2008-11-30 13:27:23)

Offline

#2 2008-11-29 21:19:53

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [SOLVED] Can't initialize LVM partitions

Did you activate the volumes? I think you can do this with 'lvm vgchange -ay' to activate all at once.

Last edited by iBertus (2008-11-29 21:20:08)

Offline

#3 2008-11-30 00:03:18

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Can't initialize LVM partitions

also, there is an option to automatically start logical volumes at boot-time in /etc/rc.conf:

USELVM="yes"

Did you also put your root partition on LVM? Then you'd better add the "lvm2" hook to $HOOKS in /etc/mkinitcpio.conf, make sure your boot-partition (if you have one) is mounted read-write, and run as root:

mkinitcpio -p kernel26

If your root is not on LVM, the mkinitcpio step is unnecessary


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#4 2008-11-30 13:35:36

kian.tern
Member
Registered: 2008-11-29
Posts: 5

Re: [SOLVED] Can't initialize LVM partitions

Initializing did the trick. Thanks.
There was an error in the Wiki. it said to use :
vgchange -a y
but it had to be
vgchange -ay

I have fixed it in the Wiki

Offline

Board footer

Powered by FluxBB