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
0
votes
1 answer

Do BTRFS self-healing mechanisms apply when a folder of the host with BTRFS enabled storage is remotely mounted by a different host?

the file system BTRFS comes with some useful features regarding data consistency/error detection and correction (let's call them self healing mechanisms). Given the following situation, will these mechanisms apply? Server with BTRFS storage <-->…
stev-e
  • 101
  • 1
0
votes
1 answer

Convert Ext4 partition to an exsisting Btrfs volume

I recently installed Fedora on my laptop and I have my old /home ext4 partition (/dev/sdb2). I would like to convert then merge this partition with the btrfs filesystem. Here is my current setup : $: btrfs filesystem show Label: 'fedora' uuid:…
Gwendal
  • 3
  • 1
0
votes
1 answer

What capabilities do you lose when turning off COW on a qcow2 file?

I run a small internal cloud utilizing 3 redundant, live migration capable Ubuntu/Qemu/KVM hosts with ~30 mixed OS VMs. The Pool volumes are BTRFS and before any of you give me crap about it: this is small shop, utility is more important than…
Frobozz
  • 173
  • 8
0
votes
1 answer

How to resize unmountable BTRFS filesystem

I have a disk with LVM with two logical volumes media and root. The former is almost empty the latter is almost full, so I wanted to resize both. The logical volume media is dm-crypt + BtrFS. In order to resize the filesystem, the LUKS container and…
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
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

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

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
  • 1
  • 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
0
votes
1 answer

How to move a subvolume to a new drive in btrfs?

I am trying to move my /srv, /var/lib/mysql and /home directory to another drive ( a bigger one with RAID1). I did some research on how to go about doing this and I kind of did most of it. However, after all the content is copied over, I am unable…
FlowRaja
  • 101
  • 2
1 2 3
15
16