[Nix-dev] LVM troubles

Rickard Nilsson rickard.nilsson at telia.com
Mon Apr 22 12:01:26 CEST 2013


Den 2013-04-22 06:52:50 skrev James Cook <james.cook at utoronto.ca>:

> On 21 April 2013 10:29, Rickard Nilsson <rickard.nilsson at telia.com>  
> wrote:
>> Hi,
>>
>> I noticed today that my NixOS system that uses LVM on top of mdadm RAID
>> doesn't boot. It seems the LVM volumes are not activated. The NixOS init
>> says something about "starting LVM" and then it immediately starts  
>> looking
>> for the root device, which fails. If I try booting an older generation
>> (nixos-0.2pre-d99fce2-930e4d5), it prints that it found a number of lvm
>> volumes before starting to scan for the root device.
>>
>> Has something changed regarding LVM in NixOS lately (the last two months
>> or so) which might cause this behavior? Do I need to add any extra  
>> kernel
>> module include something LVM-related in the initrd?
>>
>> I realise now, that just doing "nixos-rebuild switch", and not rebooting
>> the system every once in a while, can be risky...
>
> Hi Rickard,
>
> My root partition is on LVM, but I'm not using RAID.  I just updated
> and rebooted and had no trouble.  Maybe it's got something to do with
> RAID?

Yes, this has struck me too, since I actually use LVM on my laptop, and
everything works fine there (but I didn't realise that when I wrote my
first mail).

I will try to set up a virtual environment to recreate this in.

   / Rickard


More information about the nix-dev mailing list