[Nix-dev] nixops virtualbox disk size

Richard Wallace rwallace at atlassian.com
Mon Jun 15 21:26:26 CEST 2015


I'm trying to use nixops to deploy a service to VirtualBox (and eventually
ec2). This service requires a very large /nix/store - it depends on a very
large number of Haskell packages. During the deploy, I eventually see

hiplambda> exporting path
‘/nix/store/5a1flswypn2dsgdb4kcjv5f64811yshz-gnutls-3.3.15’
hiplambda> exporting path
‘/nix/store/qa0sig9jnf0hp3n79z0n41xq6jdliszy-haskell-wl-pprint-extras-3.5.0.5’
hiplambda> exporting path
‘/nix/store/5gpy13mqaqwfm13fbrbp1g6i52hhwidv-haskell-HaTeX-3.16.1.1’
hiplambda> exporting path
‘/nix/store/cl2hziivsfs4sikbgigi29wzf1b4ydjb-haskell-hmatrix-0.16.1.5’
hiplambda> error: preallocating file of 143861 bytes: No space left on
device
hiplambda> exporting path
‘/nix/store/68j53bfhqja7pbwmxwjrl85244i3lsn3-haskell-hmatrix-repa-0.1.2.1’
hiplambda> copying 120 missing paths (756.15 MiB) to ‘root at 192.168.56.102
’...
hiplambda> writing to file: Broken pipe at
/nix/store/xf667rba4zrg3iwfl7hn8caf2kjjwn4a-nix-1.9pre4153_b64988b/lib/perl5/site_perl/5.20.2/x86_64-linux-thread-multi/Nix/CopyClosure.pm
line 44.
error: command ‘['nix-copy-closure', '--to', 'root at 192.168.56.102',
u'/nix/store/l3khfds5fdmflfrxbk65np5qdy3q0xsd-nixos-15.06pre-git']’ failed
on machine ‘hiplambda’ (exit code 32)

Sure enough, the root partition is filled up

$ nixops ssh hiplambda -d hiplambda
connecting to 192.168.56.102...
Last login: Mon Jun 15 05:25:55 2015 from 192.168.56.1

[root at hiplambda:~]# df
Filesystem               1K-blocks     Used Available Use% Mounted on
/dev/disk/by-label/nixos  10189112 10152408         0 100% /
devtmpfs                    202712        0    202712   0% /dev
tmpfs                      1013544     3028   1010516   1% /run
tmpfs                      2027088        0   2027088   0% /dev/shm
tmpfs                      2027088      340   2026748   1%
/var/setuid-wrappers
tmpfs                      2027088        0   2027088   0% /sys/fs/cgroup
tmpfs                       405420        0    405420   0% /run/user/0

Is there a way I can have nixops use a larger sized disk for the root
partition? I'm assuming that the 10GB size is from the NixOS vdi. I can use
the deployment.virtualbox.disks to create another disk, but I don't see a
way to use that for /nix/store.  Am I going to have to resort to doing it
manually after the initial creation fails?

Thanks,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150615/85f7bc14/attachment.html 


More information about the nix-dev mailing list