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
0
votes
0 answers

Implementing mixture of thin- and fully-allocated LVs that change dynamically

Using LVM, I need to have some logical volumes which are fully-allocated (reserved space) and others which are thin-provisioned. My challenge is that the balance between them will shift dynamically. How can this be achieved? For example, I might…
tater
  • 1,395
  • 2
  • 9
  • 12
0
votes
0 answers

Udisks2 rule to ignore BTRFS-in-LUKS array member disks

On Ubuntu 20.04 PC's with a btrfs (in crypto / LUKS) raid-1 disk array, file managers (nautiuls, thunar, etc) show duplicate entries for the [logically] same disk, and repeatedly mount duplicate /media/User/DiskLabel-N. Request: I'd like to prevent…
0
votes
1 answer

BTRFS resize - free space not available to use

I'm trying to shrink BTRFS partition and create new EXT4 partition with that free space. I did btrfs filesystem resize -5g / Now I have this (notice Device slack equals what I shrinked): orangepiplus2e:~:# btrfs device usage / /dev/mmcblk2p2, ID: 1 …
PetrK
  • 53
  • 1
  • 1
  • 4
0
votes
1 answer

Novice btrfs user: checksum failures and input/output errors galore

A housemate suggested to me that I ought to use btrfs instead of what I've been doing up until now, which is using mdadm with cloned drives, and adding an extra drive into the array to "clone" a backup. The system has three drives, all physically…
0
votes
0 answers

Listing btrfs subvolumes not allowed in container

I try to run a btrbk server within a systemd container. Unfortunately, I cannot get btrbk running since the command btrfs subvolume list /srv/backup fails to run from within the container with "Operation not permitted". I already tried adding…
steiny
  • 163
  • 2
  • 8
0
votes
1 answer

Is it possible to reconstruct a BTRFS RAID from disk images?

I had a server running a 6 disk BTRFS RAID configuration. Now my server refuses to start because of (likely) PSU issues. I have a new NAS box that I want to use for this purpose but I would like to get my data off the old setup. So while I could go…
StFS
  • 273
  • 2
  • 9
0
votes
1 answer

Factually Btrfs is it suitable for block storage usage?

It exists various storage device, file, block and object based. Some filesystem are dedicated to a kind of device. what about Btrfs ? Here I would like to get some technical facts about Btrfs over a block storage device. Indeed, most of cloud…
bioinfornatics
  • 156
  • 1
  • 7
0
votes
1 answer

linux system slowdown debugging, high sys usage

I have a remote linux system that became super slow yesterday. Since the remote luks unlocking I've setup doesn't seem to work reliable and I won't be able to physically access the machine within the next 10 days I'm trying to debug this instead of…
xogoxec344
  • 36
  • 5
0
votes
1 answer

What is an appropriate backup strategy for LXD with BTRFS storage backends

I'm about to re-configure my home server from scratch and am wondering what would be the best strategy to backup my LXD containers. Meanwhile I am running Ubuntu 20.04 LTS and have some services configured to run as LXD/LXC containers. For…
sandman85
  • 1
  • 3
0
votes
1 answer

grub rescue on Ubuntu 18.04 with btrfs partition

I have a small server (HP ProLiant MicroServer Gen8) running Ubuntu 18.04 64 bit with the latest HWE generic kernel (5.4.0.74.83~18.04.67); it has two SATA drives, GPT partitioned but booting in legacy BIOS mode. Both drives are partitioned as…
Matteo Italia
  • 385
  • 3
  • 15
0
votes
0 answers

Recover mdadm array

I had a raid5 array built with mdadm and btrfs filesystem on top of it. My sata card failed and all my drives dropped at the same time. What should I do if I wanted to rebuild the array or restore some data? ❯ mdadm --assemble /dev/md1…
warbaque
  • 111
  • 2
  • 5
0
votes
1 answer

BTRFS RAID 0 and Linux reinstallation

In case I add two drives (non-system drives) in RAID 0 using btrfs, what would happen if I need to re-install the operating system, would this RAID 0 be gone and data lost?
Rui Lima
  • 101
  • 4
0
votes
1 answer

btrfs send/receive: is it possible to bootstrap a subvolume clone using already existing data?

I have two hard disks on two machines, connected remotely. I would like to start using the promising btrfs send/receive feature to speed up the incremental backup I take over the net, instead of rsync. On the backup side I already have a backup copy…
lgaudino
  • 3
  • 2
0
votes
2 answers

See btrfs subvolume df (used & free space)

While installing Fedora 33, I chose btrfs, with 32gb for / and the rest for /home I see these are used as 'subvolumes': # cat /etc/fstab # # /etc/fstab # Created by anaconda on Mon Oct 19 13:43:25 2020 # UUID=f1483466-114c-4ef4-b268-85095d4c4aa8 /…
Marius
  • 103
  • 3
0
votes
1 answer

Is RAID 6 a good choice regarding performance on server used for computation?

We are operating a server for doing computations with large data sets (100GB - 5TB) for a small group of researchers (10-20 people). At the moment we are running 4x8TB spinning drives in a RAID 6 using mdadm and Btrfs on top of that (no Btrfs RAID).…
lumbric
  • 234
  • 2
  • 9
1 2 3
14
15