Diff for "btrfs"


Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2009-01-14 21:08:02
Size: 310
Editor: 204
Comment: Initial TOC dump. To be revised later.
Revision 10 as of 2009-01-23 03:02:58
Size: 2658
Editor: dsl-67-204-15-246
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Basic description of btrfs. Strengths, weaknesses, why is this important, etc.

== Features: ==
 * Extent based file storage (2^64 max file size)
 * Space efficient packing of small files
 * Space efficient indexed directories
 * Dynamic inode allocation
 * Writable snapshots
 * Subvolumes (separate internal filesystem roots)
 * Object level mirroring and striping
 * Checksums on data and metadata (multiple algorithms available)
 * Compression
 * Integrated multiple device support, with several raid algorithms
 * Online filesystem check
 * Very fast offline filesystem check
 * Efficient incremental backup and FS mirroring
 * Online filesystem defragmentation
Line 7: Line 25:

'''NOT ACTUALLY WORKING YET'''

[[http://btrfs.wiki.kernel.org/index.php/Getting_started | btrfs wiki getting started page]]

=== Kernel Module Dependencies ===
8.10 Kernel 2.6.27-9-generic
 * CONFIG_LIBCRC32C=m
 * CONFIG_ZLIB_INFLATE=y
 * CONFIG_ZLIB_DEFLATE=m


 * build-essential: make, compiler, etc
 * linux-headers-2.6.27-9-generic: latest kernel headers

{{{
sudo apt-get install build-essential linux-headers-2.6.27-9-generic
}}}

Download and compile code:
{{{
wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-0.17.tar.bz2
tar -jxvf btrfs-0.17.tar.bz2
cd btrfs-0.17
make
}}}

'''Currently btrfs does not work with kernel 2.6.27'''

Ensure modules are up and running, and insert btrfs module into kernel.
{{{
sudo modprobe libcrc32c zlib_inflate zlib_deflate
sudo insmod btrfs.ko
}}}

=== btrfs progs dependencies ===
{{{
sudo apt-get install e2fsprogs uuid-dev
}}}

{{{
wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-0.17.tar.bz2
tar -jxvf btrfs-progs-0.17.tar.bz2
make
}}}

'''btrfs-progs compile fine'''

Line 10: Line 77:
 * How to format disk as btrfs
 * How to grow/shrink file system
 * How to create snapshots
 * How to access snapshots
 * How to convert ext2/3(/4?) partitions to btrfs
 * How to create an image of a btrfs file system
 * How to restore from an image of a btrfs file system
 * How to recover from a failed device
 * How to add another device to file system
Line 11: Line 87:
= Trouble shooting = [[http://btrfs.wiki.kernel.org/index.php/Category:Documentation|btrfs wiki documentation category]]
Line 13: Line 89:
= Troubleshooting =
Line 14: Line 91:
= Alternatives =
 * Tux3?
 * ZFS over Fuse?
Line 15: Line 95:
[http://btrfs.wiki.kernel.org/ btrfs home page]
[http://en.wikipedia.org/wiki/Btrfs btrfs wikipedia page]
= Links =
 * [
[http://btrfs.wiki.kernel.org/|btrfs home page]]
 * [[http://en.wikipedia.org/wiki/Btrfs|btrfs wikipedia page]]

Placeholder page for btrfs info and usage instructions.

What is btrfs

Basic description of btrfs. Strengths, weaknesses, why is this important, etc.

Features:

  • Extent based file storage (2^64 max file size)
  • Space efficient packing of small files
  • Space efficient indexed directories
  • Dynamic inode allocation
  • Writable snapshots
  • Subvolumes (separate internal filesystem roots)
  • Object level mirroring and striping
  • Checksums on data and metadata (multiple algorithms available)
  • Compression
  • Integrated multiple device support, with several raid algorithms
  • Online filesystem check
  • Very fast offline filesystem check
  • Efficient incremental backup and FS mirroring
  • Online filesystem defragmentation

How to install

Ubuntu 8.10 Intrepid

NOT ACTUALLY WORKING YET

btrfs wiki getting started page

Kernel Module Dependencies

8.10 Kernel 2.6.27-9-generic

  • CONFIG_LIBCRC32C=m
  • CONFIG_ZLIB_INFLATE=y
  • CONFIG_ZLIB_DEFLATE=m
  • build-essential: make, compiler, etc
  • linux-headers-2.6.27-9-generic: latest kernel headers

sudo apt-get install build-essential linux-headers-2.6.27-9-generic

Download and compile code:

wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-0.17.tar.bz2
tar -jxvf btrfs-0.17.tar.bz2
cd btrfs-0.17
make

Currently btrfs does not work with kernel 2.6.27

Ensure modules are up and running, and insert btrfs module into kernel.

sudo modprobe libcrc32c zlib_inflate zlib_deflate
sudo insmod btrfs.ko

btrfs progs dependencies

sudo apt-get install e2fsprogs uuid-dev

wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-0.17.tar.bz2
tar -jxvf btrfs-progs-0.17.tar.bz2
make

btrfs-progs compile fine

Ubuntu 9.04 Jaunty

How to use

  • How to format disk as btrfs
  • How to grow/shrink file system
  • How to create snapshots
  • How to access snapshots
  • How to convert ext2/3(/4?) partitions to btrfs
  • How to create an image of a btrfs file system
  • How to restore from an image of a btrfs file system
  • How to recover from a failed device
  • How to add another device to file system

btrfs wiki documentation category

Troubleshooting

Alternatives

  • Tux3?
  • ZFS over Fuse?

Links

btrfs (last edited 2013-07-03 18:13:17 by localhost)