Difference between revisions of "Btrfs"

From wiki
(btrfs-tools => btrfs-progs)
(Link to status page on Btrfs wiki)
Line 1: Line 1:
{{Warning|msg = Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups.}}
+
{{Warning|msg = Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups.<br/>
 +
See [https://btrfs.wiki.kernel.org/index.php/Status status page] on Btrfs wiki for up-to-date info.}}
  
 
== Install ==
 
== Install ==

Revision as of 21:47, 12 September 2016

Warning Warning: Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups.
See status page on Btrfs wiki for up-to-date info.

Install

To create and manipulate Btrfs volumes, you will need to install

# apt install btrfs-progs

Debian Jessie

Btrfs being still very young, it is recommended to use recent version of the kernel and btrfs-progs

Create a filesystem

Single Disk

# mkfs.btrfs /dev/sdb

Raid 1

# mkfs.btrfs -mraid1 -draid1 /dev/sdb /dev/sdc

Raid 0

# mkfs.btrfs -mraid1 -draid0 /dev/sdb /dev/sdc

Subvolumes

To create a subvolume just use the command

# btrfs subvolume create /<path>