You are not logged in.

#1 2008-05-11 16:09:08

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

how to rescan lvm partitions from installation media

I used to be an archlinux user a while back, but haven't used it for some time now. Now, I'm feeling the urge to get back where everything once started for me :-)

So I've downloaded the live-USB image (the not yet released, RC install media), dd'd it to a USB stick and managed to boot from it no problem.

I'm currently using an LVM setup which looks like this:

  ACTIVE            '/dev/Linux/Hardy32' [8,00 GB] inherit
  ACTIVE            '/dev/Linux/LinuxDistro' [8,00 GB] inherit       <----- Here's well AL will live
  ACTIVE            '/dev/Linux/Hardy64' [8,00 GB] inherit
  ACTIVE            '/dev/Linux/Swap' [2,00 GB] inherit
  ACTIVE            '/dev/Linux/Home' [108,84 GB] inherit

The physical volume is located at /dev/sda3 which is encrypted using luks.

Now, from the live usb I've unlocked /dev/sda3 just fine, but /dev/mapper only shows Linux. That is, the logical paritions don't have nodes created for them. Is there anyway that I can tell LVM to rescan, or perhaps udev to do it's thing after I've unlocked /dev/sda3? I tried udevtrigger, but that didn't change anything. Do I need any particular modules loaded?

Looking forward to try AL again, _a lot_ of things have changed since I was here last :-)

Offline

#2 2008-05-14 03:13:21

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: how to rescan lvm partitions from installation media

You need to load the LVM2 module.

Before you run /arch/setup, run the command:
# modprobe dm-mod

Then you should be able to see your LVM2 volumes.

http://wiki.archlinux.org/index.php/LVM2

Make sure that you modify your configuration files before exiting the installer, such as adding LVM to your hooks.

Last edited by Aaron (2008-05-14 15:52:41)

Offline

#3 2008-05-15 08:29:16

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: how to rescan lvm partitions from installation media

Thanks for the reply. I will try that next time I find the time.
However, if my memory serves me right, that is exactly what I did, but I could only see the volumegroup. That is, I only had the device node /dev/mapper/Linux, not /dev/mapper/Linux-Hardy32, /dev/mapper/Linux-Swap, etc.

Offline

Board footer

Powered by FluxBB