[Nix-dev] LVM troubles

Rickard Nilsson rickard.nilsson at telia.com
Sun Apr 21 19:29:22 CEST 2013


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...


Best regards
   Rickard Nilsson


More information about the nix-dev mailing list