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
11
votes
4 answers

How to find the file at a certain btrfs inode

I have a corrupt file according to btrfs BTRFS info (device sdb1): csum failed ino 367 off 310013952 csum 1601485211 expected csum 3692975992 I assumed ino 367 means inode 367, so I can use find and try to restore the file. However find /path -inum…
user192749
  • 361
  • 4
  • 10
11
votes
4 answers

BTRFS: deleting a volume

A week ago, I created a BTRFS pool using two flash drives (32GB each) with this command: /sbin/mkfs.btrfs -d single /dev/sda /dev/sdb. Then I realized that I should have used the partitions /dev/sda1 and /dev/sdb1, instead of the disks /dev/sda and…
limaunion
  • 111
  • 1
  • 1
  • 3
11
votes
5 answers

Does btrfs balance also defragment files?

When I run btrfs filesystem balance, does this implicitly defragment files? I could imagine that balance simply reallocates each file extent separately, preserving the existing fragmentation. There is an FAQ entry, 'What does "balance" do?', which…
pauldoo
  • 319
  • 2
  • 3
  • 14
9
votes
1 answer

How to obtain read speeds of two disks using mdadm/btrfs raid1 or zfs mirror?

Given that RAID1 writes two copies of the data, my understanding is that reads should be close to twice that of a single disk. I have tested read performance of different technologies (mdadm, zfs, btrfs) with little success. From my…
Greg
  • 1,557
  • 5
  • 24
  • 35
9
votes
4 answers

Which filesystems offer snapshot functionality for users to recover data?

I'm working on a project that will teach linux to youth. Knowing they will have a tendency to delete or corrupt items in their home directories we are looking for a good snapshot option. We will not have access to fancy tools available from major…
Gray Race
  • 833
  • 2
  • 10
  • 20
9
votes
5 answers

Backup/Clone a btrfs partition

Is it possible to backup a btrfs partition verbatim (including all the shared structures which save space by marking snapshot trees as COW) to another one? For instance, I'd like to backup my root partition which has couple of btrfs subvolumes…
Mansour
  • 499
  • 2
  • 7
  • 14
8
votes
1 answer

Can Btrfs use SSD for metadata and leave bulk data on HDD?

is it possible for Btrfs to use SSD for metadata only & leave bulk data on less costly storage such as HDD? I refered to this page Using_Btrfs_with_Multiple_Devices and can not find a solution. Thanks!
zJay
  • 181
  • 2
8
votes
2 answers

How to delete a btrfs snapshot?

I'm new to btrfs and I am trying to delete some snapshots I made a few months ago. They're taking up about 20GB of space, and I need that space back. This seems to list the snapshots: ↪ sudo btrfs subvolume list / ID 257 gen 82021 top level 5 path…
mlissner
  • 990
  • 3
  • 8
  • 17
8
votes
5 answers

Does Windows have a checksumming filesystem like ZFS or BtrFS?

I use ZFS and love it. I know that BtrFS also supports checksumming. I've been told that checksumming is available in Windows 2008, but I've been unable to verify this. Are there checksumming filesystems besides ZFS and BtrFS on any platform,…
royco
  • 513
  • 1
  • 8
  • 15
7
votes
1 answer

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

I cannot shrink btrfs filesystem although there is still data and metadata space left : $ sudo btrfs filesystem resize -11G /home;echo $? Resize '/home' of '-11G' ERROR: unable to resize '/home': No space left on device 1 Here are some btrfs…
SebMa
  • 275
  • 1
  • 9
7
votes
2 answers

Can I run a KVM guest with a btrfs subvolume as file system?

I want to run a virtualized Debian stable KVM guest on a Debian stable host (to run untrusted stuff like Skype, Flash or eclipse with third-party plugins). Naturally host and guest will have many files in common and it would be nice to make us of…
Thomas Koch
  • 221
  • 3
  • 6
7
votes
2 answers

SMART shows unreadble sectors, btrfs scrubs are clean - which is correct?

I have a pair of disks in RAID1 formatted with btrfs. The disks go through periodic scrubbing and I get notified with the results. They've been running great for about 2-3 years with no issues. However, I've recently added smartd to my installation,…
dkd6
  • 155
  • 8
6
votes
1 answer

BTRFS single data FS still striped?

UPDATE So after a long time of research in the official documentation, I found out that btrfs allocates space in chunks each 1Gb and when using single mode, these chunks are allocated on the disk with currently the most unallocated space. Therefore…
cranckstorm
  • 161
  • 1
  • 3
6
votes
4 answers

Linux KVM Client filesystem (BTRFS?)

in our company we have a lot of kvm clients on multiple server, most of the clients are running ubuntu 16.04 as well as their host systems. The filesystem of choice became EXT4, for clients and hosts. Recently I used some of the awesome snapshot…
chrstnwhlrt
  • 325
  • 6
  • 15
6
votes
4 answers

How to display quota limit on btrfs subvolume?

I cannot determine how to get the quota limit which is currently set on a btrfs subvolume. The btrfs wiki on quota doesn't seem to show this. This is what I think I know: set a quota: btrfs qgroup limit 21G /path check used space: btrfs qgroup show…
lickdragon
  • 151
  • 2
  • 9
1
2
3
14 15