Difference between revisions of "Btrfs"
From wiki
(Install) |
(btrfs-tools => btrfs-progs) |
||
Line 3: | Line 3: | ||
== Install == | == Install == | ||
To create and manipulate Btrfs volumes, you will need to install<syntaxhighlight lang="console"> | To create and manipulate Btrfs volumes, you will need to install<syntaxhighlight lang="console"> | ||
− | # apt install btrfs- | + | # apt install btrfs-progs |
</syntaxhighlight> | </syntaxhighlight> | ||
=== Debian Jessie === | === Debian Jessie === | ||
− | Btrfs being still very young, it is recommended to use recent version of the kernel and btrfs- | + | Btrfs being still very young, it is recommended to use recent version of the kernel and btrfs-progs |
* [[Kernel from Jessie Backports]] | * [[Kernel from Jessie Backports]] | ||
* <syntaxhighlight lang="console"> | * <syntaxhighlight lang="console"> | ||
− | # apt install btrfs- | + | # apt install btrfs-progs/jessie-backports |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 05:54, 9 May 2016
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. |
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
- Kernel from Jessie Backports
# apt install btrfs-progs/jessie-backports
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>