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

232 questions
5
votes
1 answer

How can I format a BTRFS Raid 1 mount?

I'm using a fairly vanilla Ubuntu 10.04 server installation, and I'm experimenting with BTRFS. How can I create a BTRFS RAID1 mount? I've got two (2) 1Gig drives that I popped in the server and after running the following commands, it appears I've…
Jamie
  • 1,284
  • 7
  • 22
  • 40
5
votes
1 answer

BTRFS checksum cost

BTRFS (or ZFS, which I have no experience of) has checksum functionality "built-in", which seems like a very good feature. My Synology NAS gives me the option of enabling it for any given folder, so it begs the question of: should I enable it for…
4
votes
0 answers

Docker Community Edition for production environment?

I was planning to use docker in a production environment. Now I see Docker Inc. differentiates strongly free and paid versions with the Community and Enterprise Editions. This sentence about CE is kind of scaring me: Get started with Docker and…
4
votes
1 answer

ZFS on single virtual disk

How do companies manage large file servers (e.g. 17 TB) and their related backups on a very tight-budget? Is it ok to use ZFS (or BTRFS) on a single virtual disk for its copy-on-write nature to eliminate the need for fsck? (i.e. not for its RAID,…
user122992
  • 150
  • 1
  • 8
4
votes
1 answer

Should "System" chunks be included in a btrfs RAID1 balance?

The btrfs wiki RAID1 conversion example gives the following command: btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt There is also the option -s which `man btrfs-balance page defines as: act on system chunks (requires -f) So, why not…
Tom Hale
  • 1,105
  • 1
  • 12
  • 24
4
votes
0 answers

Any possibility to use ZFS for Samba4 AD DC share on Ubuntu 16.04?

For a few (~ 5) PCs running Windows 8.1 I have to setup a domain controller using Samba4 on Ubuntu 16.04 Server. Additionally the DC should provide a few shared folders with user-specific access and act as a printer server. To prevent data…
Apollo13
  • 41
  • 2
4
votes
1 answer

BTRFS-RAID and booting from EFI system partition

UEFI requires booting from a ESP which is most of the time formatted as vFAT. If I recall correctly BTRFS could have sub-volumes formatted as ext3/ext4 like the Logical Volume Manager (LVM). However, UEFI doesn't support booting from BTRFS. Most of…
phbi
  • 41
  • 1
  • 3
4
votes
1 answer

BTRFS: "no space left on device", but btrfs command says otherwise

I am using BTRFS to create a RAID0 volume from 2 disks. Both are on an AWS EC2 instance with 30 GB space available each. The command I used to create the filesystem is: btrfs -d raid0 -L MYLABEL /dev/xvdf /dev/xvdg. Now Ubuntu tells me the disk…
flypenguin
  • 203
  • 1
  • 2
  • 12
4
votes
0 answers

btrfs, Force bad checksum recalculation

A large, USB-connected HDD with btrfs contains a 1TB file (a disk image). The first btrfs scrub after writing that file found 3 logical bad blocks developed somewhere in the middle of that file: [ 7702.964265] BTRFS warning (device sdd1): checksum…
liori
  • 767
  • 3
  • 15
4
votes
2 answers

Seeking inside file performance under BTRFS with LZO compression

I am planning to use btrfs on a 50 TB RAID6 array and I want to enable lzo compression. This is for bioinformatics setup where lots of seeking within large (1 TB -- 20 TB) files occur. (The software gets only small chunks of data scattered across…
Met
  • 373
  • 1
  • 8
4
votes
1 answer

Does btrfs share file parts across snapshots?

I know that modern filesystem snapshots take very little space until they start to diverge by changes in files. However, I have been unable to identify at which granularity btrfs manages the changes. In other words, will a small change in a file…
Álex
  • 193
  • 1
  • 6
4
votes
1 answer

Remove a file from a btrfs snapshot and still use btrfs send/receive?

I'm planing to use btrfs send/receive to synchronize two filesystems and keep a few older snapshots (like a time machine) on the backup. Now what happens if a user ask me to remove a file or directory from all the backup snapshots because it…
ascobol
  • 288
  • 2
  • 14
4
votes
2 answers

BTRFS and Luks integration

I would like to build a RAID1/BTRFS/Luks setup. What I found about it so far is: An encrypted Btrfs file system can be created on top of the dm_crypt disk encryption subsystem and Linux Unified Key Setup (LUKS) layer, which supports a variety of…
Doodle
  • 41
  • 1
  • 2
4
votes
1 answer

Redundancy level on a per file basis with BTRFS?

I would like to have one storage pool with multiple disks. Raid5 for metadata of course. But for user-data I would like to set the level of redundancy on a per file or per subvolume level. Can BTRFS do this? In ZFS there is a 'copies' attribute that…
4
votes
2 answers

LVM snapshot of btrfs volume changes mounted device

I have a btrf volume on top of LVM. Now I want to do a snapshot on the lvm level (NOT on the btrfs level). But every time I create the LVM snapshot, btrfs changes the mounted block device to the snapshot like I was using some kind of --bind mount…
Thilo
  • 243
  • 3
  • 11