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.
248 questions
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 (...
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 ...
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 ...
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 ...
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,...
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 ...
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 ...
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....
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 /...
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 ...
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 ...
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-...
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 ...
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 :
$: ...
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 ...
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 ...
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 ...
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 ...
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):
...
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&...
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 ...