You are not logged in.

#1 2013-03-21 21:16:14

lyco
Member
Registered: 2010-02-15
Posts: 12

[SOLVED] Volume group with / partition inactive at boot

I am installing Arch on my server, and I am facing following problem:

I have two disks, each divided to 2 partitions. These partitions forms raid-1 (so I got two raid devices - md0 and md1) . md0 is formatted as ext3 and mounted as /boot, the other one is used as LVM physical volume. It is (the only) part of vg0 volume group, and in it resides two LVs: system (mounted as /) and home (/home). Therefore, I need /dev/mapper/vg0-system mounted at boot.

When booting, there is six lines similar to this:

[6.212111] device-mapper: table: 253:0 linear: dm-linear: Device lookup failed

Then comes the

ERROR: device /dev/mapper/vg0-system not found. Skipping fsck.
ERROR: unable to find root device '/dev/mapper/vg0-system'.
You are being dropped to a recovery shell
Type exit to try and continue booting

I checked, and there really isn't /dev/mapper/vg0-system block device. When I do

lvm vgchange -ay

it finds both devices in vg0 group, creates files in /dev and when I exit recovery shell, system boots without problem.

I have use_lvmetad = 1 in lvm.conf

In my mkinitcpio i have

MODULES="dm_mod"
HOOKS="base udev autodetect modconf block mdadm lvm2 filesystems keyboard fsck"

and my grub.cfg does contain line

linux /vmlinuz-linux root=/dev/mapper/vg0-system ro  quiet

I spent few days googling and searching forums, but I haven't found any error in my config, nor any solution. What am I doing wrong? I will gladly provide any informations about my config.

Last edited by lyco (2013-03-22 00:53:37)


I'm not a native English speaker. If there are grammar errors in my post, don't beat me please. Polite pointing at them is more than enough.

Offline

#2 2013-03-21 21:38:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Volume group with / partition inactive at boot

You should be using the mdadm_udev hook.

There is a long thread about unexpected behaviour with LVM: try changing the hook, rebuilding your intird and seeing if that helps...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-03-21 22:41:32

lyco
Member
Registered: 2010-02-15
Posts: 12

Re: [SOLVED] Volume group with / partition inactive at boot

Thank you very much - it works like a charm.

Can you send me a link to this long thread? It sould be documented it on the wiki, but I would like to know more before I will write about it.


I'm not a native English speaker. If there are grammar errors in my post, don't beat me please. Polite pointing at them is more than enough.

Offline

#4 2013-03-21 23:26:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Volume group with / partition inactive at boot

The megathread is here: https://bbs.archlinux.org/viewtopic.php?id=158012&p=1

The mdadm_udev hook thing is documented on the mkinitcpio page.

Glad you got it sorted. Please remember to mark your thread as [Solved] by editing your first post and adding it ot the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB