You are not logged in.

#1 2009-04-05 08:30:15

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

LVM2 - installer "see" already existing logical volumes [SOLVED]

I've been messing about with LVM for about a week now and ran into a snag with the installer.

Essentially if, for whatever reason, I make my logical volumes, then reboot and start the installer it won't "see" my L.Vols at all.  I did the

modprobe dm_mod

before starting and after starting the installer.  The result is still the same either way.  I ended up removing the L.Vols and re-creating them, then running the installer again.  It seems to be the only way I can get the setup scripts to "find" the Logical Volumes properly if the Physical Extent/Volume Group/Logical Volumes pre-existed before invoking /arch/setup. 

I searched the installation forum but the closest thing I found was this from a year ago:  http://bbs.archlinux.org/viewtopic.php?id=48483.  I'm a bit baffled as to how I can get the installation routine to recognise the volumes exist so I don't need re-create things every time I want to do another install.  Any advice is appreciated.

*goes to search elsewhere*

MS

Last edited by MoonSwan (2009-04-06 23:11:26)

Offline

#2 2009-04-05 09:05:11

pdincubus
Member
From: England, UK
Registered: 2008-11-04
Posts: 20
Website

Re: LVM2 - installer "see" already existing logical volumes [SOLVED]

I think once you've modprobe dm_mod, u should be able to do a bunch of commands to activate existing volume groups and logical volumes. I'm running an lvm setup and it took me ages to suss it all out and get up and running.

You can definitely do an lvscan command which should look for logical volumes and list them for you. I think you can activate them through there too. Does doing any of the following give you anything once you've done the modprobe?

pvdisplay
vgdisplay
lvdisplay

Also

ls -al /dev/mapper (I think) should lisy the devices for lvm tht already exist. Sorry can't be more accurate for you at the mo, am not in front of my linux box. :-(


Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz // 4GB RAM // GEForce 9800GT 512MB PCI-E // 2 x 250GB SATA in LVM2 setup // 1TB SATA Storage Drive // 1680x1050 LCD

Offline

#3 2009-04-05 10:48:42

Vintendo
Member
From: Netherlands
Registered: 2008-04-21
Posts: 375
Website

Re: LVM2 - installer "see" already existing logical volumes [SOLVED]

You have to mark them as active using

lvchange -ay

if I rember correctly.

Offline

#4 2009-04-05 21:24:28

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: LVM2 - installer "see" already existing logical volumes [SOLVED]

pdincubus, thank you for the reply & yes I can "see" them using the display commands.  The installer did not though.

Vintendo, thanks will try that.  I didn't know that was part of lvchange's purpose.  Will try that.

Offline

#5 2009-04-05 22:28:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: LVM2 - installer "see" already existing logical volumes [SOLVED]

You should be able to do:

pvscan
vgscan
lvscan

Before starting the installer and that will make them active and the installer will see them. Works for me anyway.

Last edited by fukawi2 (2009-04-05 22:28:57)

Offline

#6 2009-04-06 23:10:45

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: LVM2 - installer "see" already existing logical volumes [SOLVED]

Fukawi, I tried to do just a pvscan and thought that would work by itself but it did not.  I was going to try your suggestion next just haven't had time to do so.  Thanks.  smile

Offline

Board footer

Powered by FluxBB