Terry : Btrfs

Btrfs is a new copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone.
Linux has a wealth of filesystems to choose from, but we are facing a number of challenges with scaling to the large storage subsystems that are becoming common in today's data centers. Filesystems need to scale in their ability to address and manage large storage, and also in their ability to detect, repair and tolerate errors in the data stored on disk.

Introduction

Btrfs is a new copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone.

Linux has a wealth of filesystems to choose from, but we are facing a number of challenges with scaling to the large storage subsystems that are becoming common in today's data centers. Filesystems need to scale in their ability to address and manage large storage, and also in their ability to detect, repair and tolerate errors in the data stored on disk.

How to use Btrfs

1. Compile the Linux kernel from source, with Btrfs support. Or compile Btrfs as a kernel module and load it when necessary.

2. Use a distribution that supports Btrfs OOTB, for example Ubuntu 10.10 Maverick Meerkat.

Example:

Ubuntu 10.10 maverick x86_64

Kernel 2.6.35 with pre-compiled Btrfs module

How to load the module

Load the kernel module at runtime

modprobe btrfs

Check loaded modules

lsmod

root@maverick:~# lsmod | grep btrfs
btrfs                 506518  0
zlib_deflate           21866  1 btrfs
libcrc32c               1268  1 btrfs

List module information

modinfo btrfs

terry@maverick:~$ modinfo btrfs
filename:       /lib/modules/2.6.35-22-generic/kernel/fs/btrfs/btrfs.ko
license:        GPL
alias:          devname:btrfs-control
alias:          char-major-10-234
srcversion:     360477C234AEDE224A4EDED
depends:        libcrc32c,zlib_deflate
vermagic:       2.6.35-22-generic SMP mod_unload modversions

Install the Btrfs administration tools

apt-get install btrfs-tools

Tools:

/sbin
/sbin/btrfsctl
/sbin/mkfs.btrfs
/sbin/btrfs-debug-tree
/sbin/btrfs-show
/sbin/btrfs-vol
/sbin/btrfsck
/sbin/btrfs
/sbin/btrfs-map-logical
/sbin/btrfs-convert
/sbin/btrfs-image
/sbin/btrfstune

Create Btrfs file system

mkfs.btrfs /dev/xxx

Load Btrfs module at boot time

Modify /etc/modules

append btrfs at the end of the file

Reference

http://btrfs.wiki.kernel.org