Re: [Nix-dev] USB disks with LVM on boot

2016-01-03 Thread Alex Brandt
On Saturday, January 02, 2016 03:26:29 Joachim Schiele wrote:
> you need this:
>   boot.initrd.kernelModules = [ "usb_storage" ];
> 
> to make initrd look into usb!

I knew I was missing something small.  I'll give that a try.

Thanks!

-- 
Alex Brandt
Software Developer for Rackspace and Developer for Gentoo
http://blog.alunduil.com


signature.asc
Description: This is a digitally signed message part.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] USB disks with LVM on boot

2016-01-01 Thread Joachim Schiele
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!

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] USB disks with LVM on boot

2015-12-29 Thread Alex Brandt
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).

Regards,

-- 
Alex Brandt
Software Developer for Rackspace and Developer for Gentoo
http://blog.alunduil.com


signature.asc
Description: This is a digitally signed message part.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev