Skip to main content

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

Does btrfs RAID5 or RAID6 have benefits over btrfs on RAID10? [closed]

From what I understand, btrfs is implementing RAID 5 and 6 support after having had RAID 0, 1 and 10 support stable for quite a while now. btrfs already has check-summing and background scrubbing. ...
A. Bear's user avatar
  • 11
2 votes
0 answers
49 views

Slow Borg backup, excessive wall time (not CPU)

I am perplexed by why Borg backup is requiring such a large amount of real time. I thought this might be related to the source files being stored in the btrfs filesystem, but creating a tar archive of ...
nigel222's user avatar
  • 121
0 votes
1 answer
76 views

btrfs mirror only important directories

I have 2 HDD disk, each with 2TB capacity, and want to create one btrfs on these two disks. we know btrfs support RAID. But what I want is: I only need RAID1 on important directories, etc photo, all ...
yuanjianpeng's user avatar
1 vote
1 answer
144 views

COW filesystems (BTRFS, ZFS, bcachefs) scrubbing and RAID1 with mdadm on Linux

Suppose I create a two disks RAID1 volume with mdadm and then create a BTRFS/ZFS/bcachefs partition on it. Than data on one of the two disks gets corrupted. If I perform a scrub, there's no way for ...
Karl S.'s user avatar
  • 113
1 vote
2 answers
91 views

I need advise about repairing BTRFS volume

I need advise about repairing (or not repairing) somewhat corrupted BTRFS volume. I have a fairly big BTRFS RAID1 volume, currently consisting of 6 physical devices (HDDs). The volume survived many ...
Dmitriy Stepanenko's user avatar
1 vote
2 answers
110 views

Reduce LVM LVs Used for a BTrFS raid0 Array

Abstract I have a BTrFS raid0 on top of multiple LVM LVs. Reducing the BTrFS devices works but the LVs fails as BTrFS reports entire array size instead of per-device allocated space, resulting in LVM ...
bossi's user avatar
  • 113
0 votes
1 answer
134 views

Reassemble BTRFS RAID1 array (was created by mkfs.btrfs)

I've got RAID1 array (4 HDD) from old dead system. Need to reassemble that RAID1 array on a new system. Old and dead linux system was installed to one separate HDD (which is unrecoverable dead) and ...
sinoptic's user avatar
  • 101
0 votes
2 answers
2k views

btrfs mount error "can't read superblock"

I have a synology nas drive in raid6 that had a drive failed. I replaced the drive and had two other drives kicked off the raid after a power failure crashing the storage pool. I was able to move all ...
L. Pinkston's user avatar
0 votes
0 answers
369 views

btrfs mount error "can't read superblock"

I have a synology nas drive in raid6 that had a drive failed. I replaced the drive and had two other drives kicked off the raid after a power failure crashing the storage pool. I was able to move all ...
L. Pinkston's user avatar
0 votes
0 answers
93 views

Is it safe to mount same btrfs subvolume multiple times at same time?

I know that it is safe to mount multiple volumes from the same btrfs volume at the same time. But what about the same subvolume? The subvolume would be mounted from the same Linux kernel instance. ...
Jacob Brown's user avatar
0 votes
1 answer
168 views

everything deleted out of btrfs volume, but disk usage is still 95%

I have a btrfs volume that formally had a bunch of read-only subvolumes stored on it. I deleted them all. There's no files and no subvolumes, but still no free space. I tried syncing, still no free ...
Lawrence D'Anna's user avatar
0 votes
0 answers
1k views

"Can't read superblock" when trying to boot . Failed to mount /dev/mapper/xxxxxxx on real root

I finished setting up my new Arch system about a month ago. Since I had two nvme drives to use for the system I did some research on how I could use both of them to utilize the full capacity of both ...
VassilisA's user avatar
0 votes
1 answer
39 views

Formula or rule of thumb to estimate filesystem planning with BtrFS snapshots (SLES or similar)

SLES features BtrFS for the root filesystem, combined with automatic ("numbered") snapshots performed before and after updates. If your system fails, you can boot from an older snapshot (...
U. Windl's user avatar
  • 427
0 votes
0 answers
248 views

BTRFS after multiple power outages bad checksum

After multiple power outages, btrfs have bad checksums, is it possible to recover it? Outages were on Dell R740xd with PERC H730P Adapter looks like the cache was unwritten. now trying to recover in ...
Aleksandrs's user avatar
1 vote
1 answer
6k views

Cannot "apt upgrade" due initramfs error - "update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1."

I have a Ubuntu 22.04 VM with CloudInit on a Proxmox Host which worked well, but recently I got often the issue after some time (some days, even after reinstalling) that I can't upgrade packages due ...
Jonathan's user avatar
1 vote
1 answer
2k views

Enable BTRFS in kernel (running Rocky Linux 9.2)

I am trying to read an encrypted filesystem pulled from a Fedora 38 installation on Rocky Linux 9.2. When I plug the SSD in, it shows the following error: I suppose that this means (1) the default ...
Lucky's user avatar
  • 113
2 votes
1 answer
738 views

Does "btrfs filesystem defrag -c" (compress option) force compression?

BTRFS with compression enabled uses a heuristic not to compress files that are not well compressible. Does compressing existing files with "btrfs filesystem defrag -c" also use the heuristic,...
allo's user avatar
  • 1,783
1 vote
1 answer
934 views

Show quota limit of user's home directory

What I am trying to do is to get quota limit of current system user's home directory, which is btrfs quota-enabled, using the following command: /usr/sbin/btrfs qgroup show-reF ~/ The above command ...
Keram Yasin's user avatar
0 votes
1 answer
118 views

BTRFS partition auto mounts ro

i have my /home/ on a btrfs partition and it appears like after loggingf in to Plasma with my default userm, it becomes mounted ro (rw after boot before login). I booted a USB live system asnd ran ...
stdcerr's user avatar
  • 246
0 votes
1 answer
152 views

btrbk not taking hourly snapshots

I have installed btrbk and I would like hourly snapshots to be taken. However, only daily snapshots are done. I wonder what goes wrong. Pleas help me out. Environment: OS: Ubuntu 23.04 64bit / Linux 6....
crackpot's user avatar
  • 101
5 votes
1 answer
1k views

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 ...
Johan Sonesson's user avatar
0 votes
1 answer
866 views

Is it possible to relocate the mount point of a btrfs subvolume within the same root?

I have created a btrfs subvolume in the path of /docker/nc/data. As shown below: $ sudo btrfs subvolume list / ID 256 gen 13908 top level 5 path docker ID 257 gen 13877 top level 256 path docker/nc/...
crackpot's user avatar
  • 101
1 vote
1 answer
594 views

Samba shadow_copy2 and snapshots don't appear in windows

I'm setting up Ubuntu server with Samba. The file system is BTRFS and I can't seem to get Windows to see the previous versions from the snapshots. My smb.conf has this for the share: [Backup] path ...
Arthur Mitchell's user avatar
1 vote
0 answers
463 views

How to run script after partitioning step in a automated debian install (preseed.cfg)?

I am trying to configure an automated Debian 12 installation using the BTRFS filesytem, which should support timeshift for snapshots. So far, I have a complete preseed.cfg, integrated into the Debian ...
youllknow's user avatar
  • 151
3 votes
1 answer
184 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
1 vote
1 answer
643 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
  • 111
0 votes
1 answer
339 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
  • 347
1 vote
0 answers
395 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
  • 111
0 votes
1 answer
850 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
1 answer
2k 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
459 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
1 vote
0 answers
491 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
  • 107
3 votes
1 answer
2k 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
  • 255
1 vote
1 answer
1k 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
207 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
3 votes
1 answer
4k 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
1k 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
1k 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
160 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
188 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
2 votes
1 answer
422 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
257 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
247 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
1k 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
  • 255
1 vote
1 answer
668 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
2k 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
  • 165
1 vote
1 answer
888 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
1k 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
784 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
515 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

1
2 3 4 5