You are not logged in.

#1 2006-11-14 19:50:36

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

lvm for data and mkinitcpio.conf: how to load dm_mod @ boot?

I've got Arch installed on raid-1 (2 HDDs) for a LAN server.
/boot, swap & / are on raid-1 arrays
+ there are 3 logical volumes on a single volume Group on /dev/md3 (also raid-1).
I've configured mkinitcpio.conf as in the wiki during install with

MODULES="piix ide_disk reiserfs"
HOOKS="base autodetect ide raid filesystems"

and activated lvm in rc.conf.

Now when I rebooted (from kernel26.img), all went fine excepted dm_mod wich was not loaded. Thereafter the logical devices were absent from /dev.

I understand one shouldn't add dm_mod to rc.conf's "MODULES=() line to load, as mkinitcpio configuration is supposed to take care of that !
So one should add 'lvm' to HOOKS even if LVM isn't used for booting (in this case it is for users data only) ?


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2006-11-14 21:44:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: lvm for data and mkinitcpio.conf: how to load dm_mod @ boot?

Once you actually boot ("passing control to kinit"), mkinitcpio is done.  If that was successful, and things booted, the problem is no longer in the realm of mkinitcpio.

If you need lvm in normal userspace, and dm_mod is not loading properly, try adding dm_mod to rc.conf's modules array.

Offline

Board footer

Powered by FluxBB