Questions tagged [btrfs]

Btrfs is an integrated filesystem and volume manager, initially developed by Oracle. Use this tag for all questions related to Btrfs' commands and features, as well as volume and filesystem creation and management.

Btrfs (B-tree FS) is a new copy-on-write filesystem and volume manager for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone.

Btrfs is a next-generation filesystem, with a number of advanced features, such as:

  • Volume and subvolume management
  • Copy-on-write operation
  • Data integrity verification and automatic repair
  • Native handling of standard RAID levels (however RAID5 and RAID6 are not considered production-ready)
  • Native handling of snapshots and backup/replication
  • Native data compression (with userspace option for deduplication)
  • In-place conversion of existing ext2/3/4 and reiserfs file systems
  • Maximum 16 Exabyte file size
  • Maximum 16 Exabyte volume size
382 questions
37
votes
4 answers

How can I resize and shrink a BTRFS partition?

I have my /home on a BTRFS partition and I need to shrink it. Unfortunately, Gparted does not have the resize option for this FS. Can I resize it in any other way without losing my data?
Borsook
  • 2,043
28
votes
2 answers

Filesystem Label Rename

I'm getting a strange error quark 11 on renaming my filesystems on Ubuntu 12.10 64. I'm sure 100% I've already done it in the past without issues using the disk utility. Maybe some recent upgrade or I don't know what, but now I get an error: Don't…
DaniloV
  • 281
18
votes
2 answers

How can I deduplicate my data with BTRFS?

I have installed Lubuntu 15.04 on my EEE PC 701 with the file-system BTRFS. I want to deduplicate my data, but I don't know how.
wb9688
  • 1,437
16
votes
5 answers

Does Btrfs need defragmentation?

I have just installed Ubuntu 11.10 on the Btrfs filesystem. Do I really need to defragment files or the whole system? Defragment # btrfs filesystem defragment /pool1 Defragment Btrfs defragmentation
One Zero
  • 27,153
  • 26
  • 88
  • 109
15
votes
3 answers

Btrfs subvolumes vs folders?

I've read a fair bit about btrfs's subvolumes feature. While it would seem interesting to have subvolumes for the main categories in a data filesystem, such as @films, @pictures, @music... What advantage does this provide over just having…
8
votes
2 answers

Is it safe to delete apt-snapshot-*?

I think I did a mistake when I decided to use Btrfs. I am not using any of its features, but now have troubles with not enough space. I did sudo btrfs balance start / -v as suggested in some sources, but still have little space available: $ sudo…
warvariuc
  • 2,305
8
votes
1 answer

Can't delete a btrfs snapshot

I can not delete the "apt-snapshot-release-upgrade-saucy-2013-10-19_00:52:26" btrfs snapshot. Here are the details: root@cioco:~# btrfs subvolume list -s / ID 261 gen 246 cgen 245 top level 5 otime 2013-10-19 00:52:26 path…
8
votes
4 answers

How stable is BTRFS in Ubuntu?

I see entries describing BTRFS on Ubuntu 12.04 has some concerns due mostly to the maturity of the BTRFS product. Now that we have 13.10 available, is the BTRFS file system reliable?
barrypicker
  • 1,213
  • 1
  • 12
  • 15
7
votes
1 answer

How does apt-btrfs-snapshot work?

I read on the planet that apt-btrfs-snapshot would be available for Natty. The brief description of what it does sounds very nice: it will automatically create filesystem snapshot (of everything but /home) when apt installs/removes/upgrades. With…
Oli
  • 293,335
4
votes
1 answer

Future of Btrfs in Ubuntu - what is the plan?

I just last week deployed Btrfs file system on all my backup servers in production. I love it as it runs without any problems so far; after testing it for two years I decided it's time. But I am reading that Red HAT deprecated it in 7.4 and I am bit…
Mike
  • 5,691
4
votes
1 answer

How to set USER_SUBVOL_RM_ALLOWED capability?

I try to remove btrfs snapshot as a normal user. I've read, that a user needs to have some special capability/right set: USER_SUBVOL_RM_ALLOWED. How to grant such capability to user??
Adam Ryczkowski
  • 4,403
  • 9
  • 40
  • 65
4
votes
2 answers

Exclude hidden directories from subvolume/snapshot

I am using snapshots for backing up data of my @home subvolume. But I would like to backup the real important data (like all my files, which are in @home, but not hidden directories because I am not interested in backing up .cache and other stuff…
Esokrates
  • 920
  • 10
  • 25
3
votes
0 answers

Is there a way to upgrade BTRFS?

Do I need to upgrade a BTRFS filesystem after upgrading Ubuntu, like I would with ZFS?
dmuir
  • 391
2
votes
1 answer

Btrfs: It is safe to delete @home subvolume in this case?

I have an Ubuntu 14.04 server with btrfs (SSD drive) as /, and I have a bind of another drive (SATA) to /home. The SSD drive has reported that is out of free space, so I read this, applied some of the suggestions, and removed some files. This is…
lepe
  • 1,406
2
votes
0 answers

upgrade btrfs without upgrading kernel?

We're running ubuntu 14.04.4 LTS with 3.13.0-38-generic kernel and btrfs v3.12 I've read that a min version for btrfs of 3.14 is desirable. Due to one of our programs integrating with kernel we are unable to upgrade to a later kernel or version of…
riotejas
  • 976
  • 6
  • 10
1
2 3