[Nix-dev] USB disks with LVM on boot

Joachim Schiele js at lastlog.de
Sat Jan 2 03:26:29 CET 2016


On 29.12.2015 20:53, Alex Brandt wrote:
> Hey,
> 
> I'm trying to setup a three disk software RAID1 with LVM on USB drives.  I get 
> everything working great and add the filesystems to my nix configuration.  
> Upon reboot I get the following:
> 
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Job dev-disk-
> by\x2duuid-8db66416\x2d4a8a\x2d4f89\x2db828\x2d55cb2b2ded50.device/start timed 
> out.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Timed out waiting for device 
> dev-disk-by\x2duuid-8db66416\x2d4a8a\x2d4f89\x2db828\x2d55cb2b2ded50.device.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Dependency failed for 
> /var/db/postgresql.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Dependency failed for Local 
> File Systems.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Triggering OnFailure= 
> dependencies of local-fs.target.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Job dev-disk-
> by\x2duuid-8ecf60d1\x2d8450\x2d46c7\x2db171\x2db7eb5c4b2ade.device/start timed 
> out.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Timed out waiting for device 
> dev-disk-by\x2duuid-8ecf60d1\x2d8450\x2d46c7\x2db171\x2db7eb5c4b2ade.device.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Dependency failed for 
> /var/backups.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Dependency failed for 
> /var/backups/laptops.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Job dev-disk-by\x2duuid-
> add90682\x2dac74\x2d40cd\x2db541\x2d7d19bc579c77.device/start timed out..
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Timed out waiting for device 
> dev-disk-by\x2duuid-add90682\x2dac74\x2d40cd\x2db541\x2d7d19bc579c77.device.
> Dec 29 02:35:18 mycroft.alunduil.com systemd[1]: Starting Create Volatile 
> Files and Directories...
> 
> Which simply triggers a shutdown of systemd.  I'm guessing that it's either 
> LVM not activating the volume group or that the disks don't come up when they 
> need to.  Is there anyway to resolve these issues by upping a timeout or 
> forcing LVM to enable the volumes?  If not my only strategy will be to go with 
> physical partitions (not a big deal but am very curiuos about this use)..
> 

you need this:
  boot.initrd.kernelModules = [ "usb_storage" ];

to make initrd look into usb!



More information about the nix-dev mailing list