Questions tagged [btrfs]

btrfs is a B-tree based, copy-on-write filesystem for Linux. It's main features include snapshots, checksumming of data and filesystem level RAID support. It's similar to ZFS.

Btrfs tag should be used with all questions referring to usage of features specific to this filesystem:

  • defragmentation
  • resizing and addition and removal of block devices
  • it's RAID implementation
  • snapshot creation and usage

Also see:
for a similar copy-on-write filesystem.
http://btrfs.wiki.kernel.org for detailed information about the filesystem

218 questions
42
votes
5 answers

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS

My use case: I have Ubuntu Server 18.04 installed on an M.2 SSD. I have a 4TB HDD I want to add as storage. Since it's mostly for large media files and backups, it won't be written to very often. Which filesystem do you think is best suited for this…
Alex Shaw
  • 529
  • 1
  • 4
  • 4
34
votes
4 answers

LVM snapshots vs. file system snapshots

As far as I know, LVM makes it possible to take snapshots of a volume. There are also a number of file systems (ZFS, Btrfs, reiserfs, ...) which supports snapshots. However, I've never understood the difference between LVM snapshots and file system…
nip3o
  • 497
  • 1
  • 4
  • 7
32
votes
5 answers

Does btrfs have an efficient way to compare snapshots?

While diffing mounted snapshots would work, it sounds like it could be horribly slow in many cases. Is there btrfs specific functionality for diffing snapshots? (I was unable to find any in the docs)
Catskul
  • 1,839
  • 4
  • 20
  • 23
22
votes
7 answers

How does BTRFS compare to ZFS?

I am considering which OS and filesystem to use on some new servers I have and am considering either Free BSD with ZFS, or Linux with BTRFS. The programs I have run on both systems, so the only issue is reliability of the filesystems and…
yazz.com
  • 6,743
  • 14
  • 37
  • 38
21
votes
7 answers

Which filesystem for large LVM of disks (8 TB)?

I have a Linux server with many 2 TB disks, all currently in a LVM resulting in about 10 TB of space. I use all this space on an ext4 partition, and currently have about 8,8 TB of data. Problem is, I often get errors on my disks, and even if I…
alphatiger
  • 221
  • 2
  • 6
21
votes
6 answers

Verify TRIM support with BtrFS on SSD

We are looking into using BtrFS on an array of SSD disks and I have been asked to verify that BtrFS does in fact perform TRIM operations upon deleting a file. So far I have been unable to verify that the TRIM command is sent to the disks. I know…
Shane Meyers
  • 1,008
  • 1
  • 7
  • 17
20
votes
6 answers

Multi device BTRFS filesystem with disk of different size

I have an existing BTRFS filesystem composed of one 500GB disk and I just bought a 2TB disk to increase the storage capacity of my home server and I want add the new disk to the existing filesystem. From what I read, it seems like no BTRFS setup can…
fokenrute
  • 355
  • 1
  • 3
  • 5
19
votes
8 answers

Do snapshots + RAID count as a good on-site backup solution?

The two main reasons I can think of for taking backups seems to be taken care of when I use both snapshots and RAID together with btrfs. (By RAID here, I mean RAID1 or 10) Accidental deletion of data: Snapshots covers this case Failure of a drive…
小太郎
  • 307
  • 2
  • 7
19
votes
4 answers

"rm: can not remove xxx: No Space left on device" on BTRFS

Running OpenSuse 12.2. Suddenly the root parition seems to be full (99%) but I can no longer remove files manually. "rm: can not remove xxx: No Space left on device" although 450mb are still free according to df. The filesystem is BTRFS. I tried…
Andreas Jung
  • 1
  • 1
  • 1
  • 3
18
votes
8 answers

Is btrfs production ready?

I've seen a lot of information on btrfs lately. I have been considering ext4 for my next filesystem, but am tempted by btrfs instead. How widely used is btrfs? What are the pro's and con's?
mdpc
  • 11,698
  • 28
  • 51
  • 65
16
votes
5 answers

btrfs-enabled backup solution

With btrfs hitting production in Oracle EL 14th this month (together with working fsck and scrubbing from Linux 3.2) I was thinking of redesigning my current backup solution to utilise it. Note that I'm thinking about doing it for small amounts of…
Hubert Kario
  • 6,351
  • 6
  • 33
  • 65
13
votes
2 answers

How can I remove a drive from a BTRFS RAID 1 setup to make it just a single (BTRFS) drive?

I'm using Ubuntu 10.04 and have the /home directory setup as a BTRFS RAID 1 with two 2TB drives. I'd like to make the /home directory just a single drive; how do I safely go about doing this?
Jamie
  • 1,274
  • 7
  • 22
  • 39
12
votes
3 answers

Removing files takes too long

Short version: rm -rf mydir, with mydir (recursively) containing 2.5 million files, takes about 12 hours on a mostly idle machine. More information: Most of the files being deleted are hard links to files in other directories (the directory being…
Antonis Christofides
  • 2,556
  • 2
  • 22
  • 35
12
votes
3 answers

Proper way of handling LXC containers on btrfs

Lets say we have one server with lxc installed, and a lxc container used for as a base img /var/lib/lxc/ubuntu_base. For simplicity let's forget the config changes after copying the base img. some people suggest using subvolumes and snapshots for…
zidarsk8
  • 384
  • 1
  • 3
  • 12
11
votes
1 answer

Increase disk detection timeout at boot with Linux/Systemd

I have a machine with a lot of disks, and an extra SAS controller in HBA mode. This seems to cause Linux to think for at least 8-10 seconds once in initramfs before the disks actually appear. The timeout for disk detection is 10 seconds. This…
Alex
  • 369
  • 5
  • 22
1
2 3
14 15