Questions tagged [btrfs]

B-tree file system, next-generation Linux file system

Btrfs is the next-generation file system, which adds integrated support for

  • checksums
  • subvolumes and snapshots
  • transparent compression and encryption
  • copy-on-write
  • ation
  • mirroring and striping across multiple physical disks
  • transactions

Btrfs is comparable to, and shares many design goals with, Sun's .

306 questions
34
votes
2 answers

How does btrfs scrub work and what does it do?

What exactly does btrfs scrub do? According to the manual page, which is totally unclear, it does some error checking. What kind of error checking? How reliable is it? Is it able to recover some errors? How does it work? Does it work on every btrfs…
Petr
  • 2,331
6
votes
1 answer

How can I delete a apt-btrfs-snapshot when the error is "Directory not empty?"

There is one snapshot created by apt-btrfs-snapshot that won't delete Delete subvolume '/tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX' ERROR: cannot delete '/tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX' - Directory not empty How can I delete it?
user64996
  • 8,407
6
votes
2 answers

How to remove BTRFS subvolumes used by docker?

I was playing with docker and then I found with btrfs list many docker subvolumes like this one: ID 23305 gen 3405505 top level 22147 path var/lib/docker/btrfs/subvolumes/1464e922..... I do not use docker. How to get rid off of these subvolumes?…
Jan
  • 357
5
votes
1 answer

Any drawbacks in using an entire disk (/dev/sda) without partition table for btrfs

The title says it all. Are there drawbacks in using an entire disk (/dev/sda) without any partition table for btrfs? It seems to work, it's quite slow, though that may be because it's running on a RaspberryPi.
4
votes
1 answer

Hierarchical snapshots strange behaviour

I have divided my drive into two btrfs paritions: one is mounted as / (dev/sda1), second one as /home (/dev/sda2). I made my initial snapshot of /home: mkdir -p /home/snapshots/mnt mount -o subvolid=0 /dev/sda2 /home/snapshots/mnt btrfs subvolume…
houen
  • 181
4
votes
1 answer

Change btrfs compression level

I have created a btrfs filesystem with compression, using the compress option in fstab and it seems to be working. I would quite like to try the higher level of compression. I can change this in fstab, but if I understand it this will affect only…
Phil Lord
  • 141
4
votes
0 answers

btrfs partition fails to mount with open_ctree failed

I have a btrfs partition that appears to be failing to mount. Here are the details: (1) When I try to mount the partition, I get the following output in dmesg: [791594.778798] BTRFS info (device sdf1): disk space caching is enabled [791594.778801]…
gsk
  • 41
3
votes
1 answer

What does "Counts for qgroup ... are different" mean and how to fix it?

I've been using btrfs for my primary file system for a Linux Mint 20 install I did a couple of months ago. Today I had reason to want to extend the partition the btrfs filesystem is on, and gparted did a filesystem check beforehand and then refused…
T.J. Crowder
  • 1,149
3
votes
0 answers

Can I force a BTRFS volume to reside on a specific disk

I have a btrfs filesystem mount as / (root) and /home. I have two drives in my filesystem, Total devices 2 FS bytes used 233.79GiB devid 1 size 922.51GiB used 115.00GiB path /dev/sda3 devid 2 size 931.51GiB used 123.03GiB path…
1
vote
1 answer

How do I get the current subvolid of a mounted btrfs?

How do you get the top level subvolid of a mounted btrfs? I want the actual subvolid that is mounted at this moment and not the default subvolid (which could be different.)
1
vote
1 answer

btrfs damaged filesystem - how to continue

My btrfs filesystem is somehow damaged (parent transid, internal errors, ...). I tried with repair options, but I think some of the filesystem is just messed up now. The btrfs volume is used for backups. So loosing some backups is not a big deal.…
Christian
  • 185
1
vote
1 answer

BTRFS transid failure

I can't mount my BTRFS volume anymore. It says: mount: wrong fs type, bad option, bad superblock on /dev/md0p1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail…
hewu
  • 33
1
vote
1 answer

Purpose of first 64KB of Btrfs partition

Does Btrfs use the first 64KB of the partition for data? If not, then what is its significance? I have ran various experiments with it and found that it remains unused even when partition is filled to capacity.
0
votes
1 answer

Is there a difference between writing to a btrfs snapshot or to its original?

After creating a btrfs subvolume produces two directories (one representing the subvolume, the other the writable snapshot). When writing to one of them, the changes are not reflected in the other, so is there any other difference to pay attention…
0
votes
1 answer

btrfs questions about free space overhead and versioning

For the first time I will dare to format an 18TB disk in my NAS, as btrfs. So I have a few questions and fears that I would like our community to answer. The filesystem will be available with smbd on the client computers. Does this miss some…
Chameleon
  • 207
  • 2
  • 9
1
2