Btrfs

From wiki
Revision as of 19:54, 31 March 2016 by Vincent (talk | contribs) (Created page with "{{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 us...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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>