Fri Apr 17 05:47:12 CEST 2015

Work on hackett (more than planned)

While I was busy reading all those packetfilter man pages, hackett was busy compiling itself (kernel + entire userland). This went all smooth but I ended up with the 376M / root partition being full.

After some emergency rms and back to 4% free space, I identified /var to be a good candidate to be segrageted from /. However, I had no extra LVM space left and needed another 5GB virtual disk first. In the end:

# lvm pvs
PV         VG   Fmt  Attr PSize  PFree
/dev/rld0f vg0  lvm2 a-   12.13g    0
/dev/rld1d vg0  lvm2 a-    4.88g 2.88g

# df -h / /var
Filesystem             Size       Used      Avail %Cap Mounted on
/dev/ld0a              376M        54M       303M  15% /
/dev/mapper/vg0-var    2.0G       283M       1.6G  14% /var

In addition to the seldom used lvm commands, this was also a good opportunity to exercise cpio(1).

Half of the /var space was actually wasted on /var/db/pkgin/cache pkg files. Good riddance!:

# pkgin clean
# df -h /var
Filesystem             Size       Used      Avail %Cap Mounted on
/dev/mapper/vg0-var    2.0G       127M       1.7G   6% /var

NetBSD provides a nice /var/run/rc.log about the entire "init" stage /etc/rc has some nifty trickery to ensure that this file is written late enough, after /var has been mounted, too.


Posted by neitzel | Permanent link | File under: done, marshlabs, bsd