Docunext


Let s Try out a new Linux Filesystem BTRFS

February 7th, 2009

This looks like a major step forward for linux file systems: BTRFS. Its not ready yet, but I'm going to try it out. Here's what I'm doing:

  • Downloaded kernel source
  • Downloaded btrfs source (0.16 worked for me, 0.17 did not)
  • Build btrfs
  • Downloaded and built btrgs-progs
# dd if=/dev/zero of=btrfs.img bs=1024k count=400
# losetup /dev/loop0 /home/albertlash/btrfs.img
# fdisk /dev/loop0
# ./mkfs.btrfs /dev/loop0
fs created label (null) on /dev/loop0	nodesize 4096 leafsize 4096 sectorsize 4096 size 400.00MB
Btrfs Btrfs v0.16
# mount /dev/loop0 /mnt/0/
# mount/dev/loop0 on /mnt/0 type btrfs (rw)

Cool!

btrfsctl defrag

# ./btrfsctl -d /mnt/0/
operation complete
Btrfs Btrfs v0.16

btrfsctl resize

# df/dev/loop0            399M   98M  302M  25% /mnt/0
# ./btrfsctl -r -1M /mnt/0/
operation complete
Btrfs Btrfs v0.16
# df/dev/loop0            398M   98M  301M  25% /mnt/0

I can create a snap, but then I can't find it, or figure out what to do with it. I should really figure out how to use snapshots with LVM too!

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022