Skip to content

Month: May 2012

Reduce BTRFS on LVM (quick recipe)

This is a quick recipe on reducing a btrfs FS inside a LMV structure.

First, the will reduce the “content”, then we will operate over the “container”.

This is the algorithm:

  1. umount /path/to/fs
  2. resize2fs /dev/mapper/vol SIZE (see man resize2fs)
  3. deactivate the volume
  4. lvreduce -L nG /dev/mapper/vol
  5. resize2fs /dev/mapper/vol nG

btrfs is actually considered “experimental”, but is included since stable kernel 3.0.0. Btrfs is the answer from the GNU/Linux community to Sun Microsystems ZFS. You will find more info on wikipedia:

Sound on pfSense 2.0.1

pfSense is a free, open source customized distribution of FreeBSD tailored for use as a firewall and router.

I got it running inside an Alix2d2 board.


Sometimes, with the help of a cron daemon and mpg123, I use this device as alarm clock. I attached a USB soundcard and loaded the proper kernel modules to get It working. Then, I installed mpg123 from the PKG repos. As last step, I added the “cron” package with the pfSense package manager.