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
0 votes
0 answers
31 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
112 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
119 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
1 vote
1 answer
79 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,663
1 vote
1 answer
145 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
37 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
50 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
  • 103
5 votes
1 answer
358 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
0 answers
37 views

BTRFS filled to 100% and does not mount anymore

I have a 50 TB BTRFS filesystem on a hardware RAID array in an HPC cluster I manage. Users have filled up this partition to 100% and complained about I/O errors while reading old files. The filesystem ...
Met's user avatar
  • 373
0 votes
0 answers
20 views

Bootprocess stops after detaching raid member

I run following Setup in my Testlabor before migrating into production: Dm-crypt/luks Raid1 / btrfs EFI dracut / fedora Server GRUB2 Systemd I simulated a drive failure (the one without boot partition)...
marcelfoss's user avatar
0 votes
1 answer
73 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
  • 103
0 votes
1 answer
93 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
211 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
64 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
241 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
124 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
1 vote
0 answers
245 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
432 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
606 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
310 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
333 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
0 votes
1 answer
763 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
1 vote
1 answer
643 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
124 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
2k 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
707 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
768 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
87 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
120 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
1 vote
1 answer
192 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
182 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
187 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
707 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
510 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
625 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
987 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
501 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
310 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 vote
1 answer
167 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
3k 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
3k 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
2k 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
170 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
892 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
763 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
428 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
201 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

1
2 3 4 5