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

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 btrfs check but that didnot appear to fix the…
stdcerr
  • 246
  • 3
  • 11
0
votes
1 answer

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.2.0-26-generic btrbk version: 0.32.5 $ cat…
crackpot
  • 103
  • 2
0
votes
0 answers

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 went read-only. I unmounted the partition. It…
Met
  • 373
  • 1
  • 8
0
votes
0 answers

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) The boot process stops with: Waiting for Job of…
0
votes
1 answer

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/data Is it possible to move the subvolume…
crackpot
  • 103
  • 2
0
votes
1 answer

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 = /mnt/pool1/backup comment = Share for…
0
votes
1 answer

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 automatically?
Jonas
  • 337
  • 2
  • 10
0
votes
1 answer

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 was wondering it is possible to set up the HDDs…
Tobias Kienzler
  • 388
  • 1
  • 9
  • 28
0
votes
1 answer

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 partitions (unencrypted /boot, EFI, and LUKS) -> LVM…
Alojzij Blatnik
  • 123
  • 1
  • 9
0
votes
0 answers

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 key (5764 84 3725675564) Log: Dez 10 12:33:19…
Peter T.
  • 97
  • 2
0
votes
1 answer

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 ... ERROR: Could not destroy subvolume/snapshot:…
Frobozz
  • 173
  • 8
0
votes
1 answer

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 via GUI but it is possible according to the…
TylerDurden
  • 191
  • 1
  • 3
  • 14
0
votes
0 answers

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 partition (make it raid0). How can I do that? The…
0
votes
0 answers

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 - /dev/sdb HDD as a file storage under BTRFS -…
0
votes
0 answers

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 /dev/sda…
lenny.myr
  • 101
  • 1