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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
25 views

Pooled storage with varying redundancy per file system

I have some files that I want stored mirrored. I have some files that I only need single copies (i.e. scratch data, easily regenerated data, etc). And I have some files that are so critical, I want it ...
David Pfeffer's user avatar
0 votes
0 answers
44 views

AWS EC2 EBS: btrfs partition and FS automatically resized by just increasing the EBS volume size?

I had to expand the size of an EC2 EBS root volume that uses btrfs (Fedora 38 Server), so I did the following: Stopped the EC2 instance Expanded the EBS volume via the EC2 console Started the EC2 ...
3VYZkz7t's user avatar
  • 101
0 votes
1 answer
58 views

To sync before shapshot or not to sync?

There is a Postgres database on BTRFS. I need to make a backup of the database while it is running. Should I do btrfs filesystem sync before the snapshot or btrfs subvolume snapshot does it for me ...
Jonas's user avatar
  • 337
0 votes
0 answers
172 views

RAID + LUKS + LVM + BCACHE + BTRFS

I want build new structure for my data store (NAS - Ubuntu). Data storage will be 4TB at first. Then up to 8TB. My old structure is simple: RAID 1 -> LUKS -> FS I need some wishes to new ...
Jo K's user avatar
  • 101
0 votes
1 answer
140 views

How to combine an SSD with two HDDs in a RAID1-ish hybrid setup?

Coming from Linux SSD as HDD cache, I'd like to set up an SSD (or rather a partition thereon) as cache for basically a RAID1 of two HDDs. But since the data might remain cached on the SSD for while, I ...
Tobias Kienzler's user avatar
2 votes
0 answers
308 views

how to migrate docker to use a different storage driver?

I have a server running docker with btrfs storage driver. How can I migrate it to use a different storage driver? I would like to use overlay2. I've tried to migrate using the instructions here: stop ...
Tomasz Chmielewski's user avatar
0 votes
1 answer
211 views

Setting up resilient single drive NVMe storage for LUKS encryption

I would like to set up resilient encrypted storage with single NVMe drive for my laptop and its (encrypted) backup (with SATA housing and SSD drive). This is what I have at the moment: SSD -> GPT ...
Alojzij Blatnik's user avatar
0 votes
0 answers
184 views

BTRFS error (device sda1): couldn't find block (456420491264) (level 1) in tree (7) with key (5764 84 3725675564) during balance

I have a 2 TB btrfs drive that is pretty full. While running btrfs balance start -musage=90 I got this error: BTRFS error (device sda1): couldn't find block (456420491264) (level 1) in tree (7) with ...
Peter T.'s user avatar
0 votes
0 answers
181 views

btrfs keeps disabling quota upon reboot

I have an arch linux system (6.0.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 16 Nov 2022 17:01:17 +0000 x86_64 GNU/Linux) that has been running with good stability on a BTRFS RAID1 root for several years. ...
n8henrie's user avatar
  • 101
0 votes
1 answer
392 views

btrfs - ERROR: Could not destroy subvolume/snapshot: Operation not permitted

We use btrfs extensively for its wonderful snapshotting capabilities. But recently, and on only one system, while purging old snapshots, I began to receive the following error: btrfs subvolume delete ...
Frobozz's user avatar
  • 173
0 votes
1 answer
294 views

Growing a RAID-10 on Synology NAS?

I was hoping to add two additional disks to my Synology NAS. Currently it is configured as a four disk RAID-10, no SHR, BTRFS, single volume system. Unfortunately extending a RAID-10 is not possible ...
TylerDurden's user avatar
0 votes
0 answers
83 views

Shrink one of the disks in a multi device BTRFS filesystem

My root partition is running out of space and I have no other SATA slots. I have a BTRFS raid0 and I would like to shrink one of the partitions I used for the BTRFS-raid0 and add it to the root ...
berinaniesh's user avatar
2 votes
1 answer
1k views

btrfs check shows checksum verify failed even after scrub

Running btrfs check shows several errors like this (13 in total): checksum verify failed on 369098752 wanted 0x0000000000000000000000000000000000000000000000000000000000000000 found ...
13xforever's user avatar
0 votes
0 answers
457 views

Restore disk with btrfs

I need an assistance with restoring HDD where was BTRFS after I tried to install Windows on SSD within the same PC. So, my PC has 3 disks: SSD with Fedora under BTRFS - /dev/sda{x} SSD without any FS ...
Cyril Dragomyr's user avatar
0 votes
0 answers
481 views

How do I mount a BTRFS filesystem where both devices have the CHANGING_FSID flag and one devices has journal errors?

I have a RAID-1 BTRFS setup with two 8 TB hard drives. Due to unclean reboots, I cannot mount them anymore, even with recovery flags: rockpro64:~:# mount -t btrfs -o rootflags=recovery,nospace_cache /...
lenny.myr's user avatar
  • 101
0 votes
1 answer
60 views

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 ...
stev-e's user avatar
  • 101
1 vote
0 answers
68 views

What can make btrfs device replace fail silently?

In a performance-critical system, we run Btrfs RAID0. We have three devices relevant to this question: /dev/sda2, an SSD that is too small and slow, and limits the size and overall performance of the ...
Pianosaurus's user avatar
0 votes
0 answers
84 views

List only writable subvolumes on a btrfs filesystem

Is there any way to list just writable subvolumes in a btrfs filesystem like the way we can list just read-only subvolumes using -r flag in btrfs subvolume list [path] (which gives all subvolumes ...
abexamir's user avatar
0 votes
0 answers
165 views

Remove degraded flag on BTRFS array mount

I have a BTRFS array of 4 drives. One failed recently, so I bought a new one and replaced it. I mounted as degraded, then replaced the disk. Once it was done, the array has been healthy: # btrfs fi ...
Benoit Duffez's user avatar
0 votes
0 answers
151 views

Restore docker btrfs subvolumes from another drive

I use OpenSUSE Tumbleweed with btrfs as root fs. I decided to free up space on root and move docker root directory to my home (XFS filesystem). Problem was, after moving and made symbolic link to /var/...
nintyfan's user avatar
  • 101
0 votes
0 answers
71 views

Can I replace a disk in btrfs raid1 without a reboot?

I am trying to understand how btrfs raid1 mode behaves when you take out one disk and put it back (odroid hc4 is an example device) Here is what I have before the test: Label: none uuid: f85fb0ab-...
Boris Rybalkin's user avatar
1 vote
0 answers
139 views

Re-mount btrfs LXD storage pool to LXD

I have a Linux system with 2 hard disks, one of them carrying the Ubuntu-flavored linux system, and the other a btrfs-formatted disk carrying the LXD containers. It was easy to set up LXD to make use ...
alex k's user avatar
  • 111
0 votes
1 answer
137 views

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 : $: ...
Gwendal's user avatar
0 votes
1 answer
493 views

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 ...
Frobozz's user avatar
  • 173
1 vote
1 answer
396 views

btrfs - remove drive from raid array

I have 4 (3TB) drives used for backups inside my PC case I want to migrate to a NAS bay. I was wondering if the drives could be migrated over one at a time by disabling RAID. Here is the output from ...
Nathan's user avatar
  • 111
1 vote
1 answer
1k views

btrfs - failing disk generated checksum errors, disk replaced, errors remain

I had a pair of 3TB disks in a btrfs raid1 array. One of these disks started failing (smartd shows bad sectors), and so I bought a pair of new 8TB drives to replace both disks in the array. I replaced ...
dkd6's user avatar
  • 155
0 votes
1 answer
504 views

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 ...
Max Görner's user avatar
0 votes
1 answer
754 views

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): ...
PetrK's user avatar
  • 53
0 votes
1 answer
405 views

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&...
Greg Nelson's user avatar
0 votes
1 answer
240 views

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 ...
StFS's user avatar
  • 273
0 votes
1 answer
125 views

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 ...
bioinfornatics's user avatar
3 votes
3 answers
2k views

How to increase speed of RAID 5 with mdadm + luks + lvm

I think I am kinda lost with my current server setup. It is an HP Proliant dl160 gen 6, and I put 4 spinning disks with a setup that has mdmadm + luks + lvm and on top of it btrfs (maybe I went too ...
Jayson Reis's user avatar
1 vote
2 answers
2k views

Recover BTRFS? bad magic on superblock on /dev/md2

so after a recent power outage my DS718+ RAID crashed. After investigation with Syno Support we also identified that my RAM was broken (already removed) and as it was not a officially supported RAM ...
UnrealSlimShady's user avatar
7 votes
2 answers
1k views

SMART shows unreadble sectors, btrfs scrubs are clean - which is correct?

I have a pair of disks in RAID1 formatted with btrfs. The disks go through periodic scrubbing and I get notified with the results. They've been running great for about 2-3 years with no issues. ...
dkd6's user avatar
  • 155
1 vote
1 answer
2k views

BTRFS on RHEL8 - compiling kernel module or making userspace tools work

Context I recently installed RHEL 8 without realizing that it no longer supports BTRFS. Unfortunately, I have 4 disks in BTRFS RAID10. I don't have enough space on my other disks to hold the data ...
catleeball's user avatar
0 votes
1 answer
126 views

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 ...
xogoxec344's user avatar
1 vote
1 answer
734 views

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 ...
sandman85's user avatar
0 votes
1 answer
2k views

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 ...
Matteo Italia's user avatar
2 votes
1 answer
623 views

btrfs - data usage in <ERROR> with inappropriate ioctl for device

I'm attempting to trace down what's using some of the space on my btrfs filesystem. There is a large difference between btrfs fi du -s / and btrfs fi usage / and the difference seems to be in the <...
Kyle Fransham's user avatar
0 votes
0 answers
307 views

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 ...
warbaque's user avatar
  • 111
0 votes
1 answer
163 views

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's user avatar
  • 101
2 votes
0 answers
246 views

BTRFS and coping with disk failure

I'm finding the information for this quite difficult to come by, but it seems like an important feature of a RAID system: what happens immediately after a disk fails for BTRFS? For my hardware RAID ...
Christopher Causer's user avatar
0 votes
1 answer
342 views

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....
lgaudino's user avatar
1 vote
0 answers
369 views

Convert ext4/xfs file system to btrfs with minimal application impact

I'm trying to find a way to convert the file system of app servers (some of which run ext4 and some xfs) to btrfs. Preferably, I'd like to do this without needing to turn off the services. So far I've ...
numX412's user avatar
  • 11
3 votes
1 answer
1k views

how to triage linux disk IO system-wide "hang"

I have a box that is periodically "going out to lunch". Symptoms are anything requiring actual disk IO hang for 30+ seconds, and it appears anything already paged in is unaffected. The ...
some bits flipped's user avatar
1 vote
1 answer
1k views

BTRFS slow - maybe partially "full"?

My BTRFS file system has plenty of space free, but the "SINGLE" section seems to be almost full. Please see the output of btrfs fi usage here: btrfs fi usage / Overall: Device size: ...
Andi's user avatar
  • 11
2 votes
0 answers
382 views

preventing big HDD's to spinup by using (small) SSD's as cache

I want to build a NAS that is as quiet, efficient and cool as possible. In this scenario, I have the following parts: -4 SATA connections to the motherboard. -2 Hard drives, one is 1TB, the other is ...
Cedric's user avatar
  • 21
1 vote
1 answer
485 views

Can I remove a BTRFS device online if that device is the one that is mounted?

As described here, BTRFS devices can be removed from an array using: btrfs device delete /dev/sdc /mnt I have a BTRFS RAID 1 array made up of 3 devices. One of devices is failing and I want to ...
dippynark's user avatar
  • 233
3 votes
2 answers
630 views

What is the overhead of ZFS RAIDz1/2 in HPC SSD Environment?

Example hardware / host: Modern 64 Core CPU, 128GB Memory 8 x Micron Pro 15.36TB u.2 SSDs SSDs connected by dedicated Oculink per device (no backplane or PCIe sharing) Ubuntu 20.04 Use case: A ...
elliotp's user avatar
  • 396
0 votes
2 answers
3k views

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 ...
Marius's user avatar
  • 103

1
2 3 4 5