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
1
vote
1 answer

Does ZFS without RAID make any sense?

Is it possible to use ZFS without RAID? Does it have any advantage to do so compared to using BTRFS instead?
inf3rno
  • 408
  • 2
  • 5
  • 17
1
vote
0 answers

System hang when mounting btrfs

I have a btrfs filesystem that includes 3 disks in raid0: # btrfs fi show /dev/sdb1 Label: 'disco_backup' uuid: 10726648-202c-4792-82d4-5d0911cce762 Total devices 3 FS bytes used 8.05TiB devid 1 size 3.64TiB used 3.64TiB…
1
vote
2 answers

KVM/Libvirt/Btrfs Filesystem speed improvements

i wanted to install a windows terminal server on a kvm hypervisor. On the host i am using btrfs, i have read that there are some speed problems if i use btrfs whit libvirt. I wanted to use the btrfs rootfs on the same 4 hdd software raid 10 as the…
user325772
1
vote
2 answers

Why is zfs/btrfs recommended for an lxd host?

Note that for maximum performance, it's recommended to have /var/lib/lxd on a btrfs filesystem or setup ZFS or LVM and configure LXD to use a ZFS pool or LVM VG. Source Why is that? I.e. How will those file systems (on the host) equate to…
pleasedesktop
  • 201
  • 1
  • 4
  • 9
1
vote
2 answers

Do I need btrfs scrub if a lower layer also scrubs?

I have a multi-TB btrfs made up of virtual disk images that live on NetApp NFS filers. The data are redundant at the NetApp level, so the btrfs is RAID-0. In addition to providing redundancy, the NetApps do their own scrubbing for data…
Reid
  • 302
  • 3
  • 14
1
vote
0 answers

LXC Snapshotting on Ubuntu 15 and BTRFS file backend

i have a dedicated server with Ubuntu 15 Wily and i want to play/study with LXC. My main goal is to snapshot and clone containers without stopping them, and for so i have formatted a partition with BTRFS file…
x86fantini
  • 13
  • 3
1
vote
1 answer

More available space than expected using btrfs RAID10?

I had just created a btrfs RAID10 array in my Ubuntu 14.04 box for the first time by using the command: mkfs.btrfs -d raid10 -m raid10 /dev/sda /dev/sdb /dev/sdc /dev/sdd My 4 hard drives are each 2TB drives. Under RAID10, I had expected to see…
feicipet
  • 565
  • 1
  • 6
  • 13
1
vote
1 answer

btrfs send from a 3tb drive ti btrfs-receive on a 1tb drive

I have question about the nature of a subvolume Snapshot sent and received. I have 2 3tb raid1 drives with only about 300gbs on them. I have a spare 1tb drive I placed in an enclosure for backups. Succinctly, does the receive mountpoint have to be…
narnie
  • 111
  • 3
1
vote
1 answer

How do I use 2 disks for CoreOS?

I've got a bare metal server with 2x 480gb SSD disks. I will run a CI server with docker on CoreOS. Do I have to add another small disk to hold CoreOS and mount the 2x SSDs as /var/lib/docker?
Seamus Abshere
  • 673
  • 1
  • 6
  • 10
1
vote
0 answers

Snapshot of BTRFS Device on top of luks Volume

I have the following problem: I can't figure out, how to create a snapshot of a btrfs volume residing on a crypted disk. This is the setup: /dev/sdb is a 1TB USB 3 disk. it has a partition /dev/sdb1, which fills the whole space. This partition was…
1
vote
1 answer

Can't delete a btrfs snapshot

I have a system that creates periodic btrfs snapshots and deletes old ones. Today, I've started receiving warnings that the system can't delete some old snapshots. This is the output I get: root@machine:/path# btrfs sub del…
loopbackbee
  • 1,395
  • 1
  • 10
  • 21
1
vote
1 answer

BTRFS raid with odd number of devices

I used to have RAID10 btrfs setup with 4 disks. Now I added sdf a new disk (its doing the balancing): Total devices 5 FS bytes used 5.73TiB devid 1 size 3.64TiB used 2.78TiB path /dev/sdd devid 2 size 3.64TiB used 2.78TiB path /dev/sdc devid …
langle
  • 11
  • 1
1
vote
1 answer

recovering a corrupt degraded btrfs RAID6, need to manually clear an inode

I have a btrfs RAID 6. I have lousy hard drives, one failed, and another failed during recovery. Now I am without parity and cannot rebuild--a third drive is throwing read errors on a few sectors. Since I can't remove it, I overwrote the bad…
Jacob Stoner
  • 163
  • 1
  • 7
1
vote
1 answer

Can I mount a BTRFS snapshot of a live filesystem?

I wonder if it is possible to mount one or more snapshots of the same BTRFS filesystem for analytical purposes.
DejanLekic
  • 304
  • 3
  • 16
1
vote
0 answers

Multiple groups of RAID devices in btrfs

In btrfs, is it possible to have multiple groups of devices, and each group is in different btrfs RAID? For example, 2 devices in raid0 and 4 in raid1?