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
20 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 ...
user avatar
  • 121
1 vote
1 answer
53 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 ...
user avatar
  • 111
0 votes
1 answer
66 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 ...
user avatar
  • 135
0 votes
1 answer
66 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 ...
user avatar
0 votes
0 answers
36 views

Implementing mixture of thin- and fully-allocated LVs that change dynamically

Using LVM, I need to have some logical volumes which are fully-allocated (reserved space) and others which are thin-provisioned. My challenge is that the balance between them will shift dynamically. ...
user avatar
  • 1,365
0 votes
0 answers
23 views

Udisks2 rule to ignore BTRFS-in-LUKS array member disks

On Ubuntu 20.04 PC's with a btrfs (in crypto / LUKS) raid-1 disk array, file managers (nautiuls, thunar, etc) show duplicate entries for the [logically] same disk, and repeatedly mount duplicate /...
user avatar
0 votes
1 answer
191 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): ...
user avatar
  • 43
0 votes
1 answer
119 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&...
user avatar
0 votes
0 answers
38 views

Listing btrfs subvolumes not allowed in container

I try to run a btrbk server within a systemd container. Unfortunately, I cannot get btrbk running since the command btrfs subvolume list /srv/backup fails to run from within the container with "...
user avatar
  • 163
0 votes
1 answer
78 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 ...
user avatar
  • 273
0 votes
1 answer
50 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 ...
user avatar
2 votes
2 answers
605 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 ...
user avatar
1 vote
2 answers
693 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 ...
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. ...
user avatar
  • 135
1 vote
1 answer
572 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 ...
user avatar
0 votes
1 answer
78 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 ...
user avatar
0 votes
1 answer
221 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 ...
user avatar
0 votes
0 answers
27 views

Two Data Entries After Converting BTRFS Profile

I ran the following command on a BTRFS volume in order to convert the data profile from single to DUP (I'm looking to provide duplicate data on this volume to be able to repair possible bit rot ...
user avatar
0 votes
0 answers
101 views

Convert single-drive BTRFS with LUKS to raid0 using new drive

I have a single drive with BTRFS in a LUKS container. It contains /boot and all the standard btrfs subvolumes. I have a second drive I would like to add while at the same time combining drive1 and the ...
user avatar
  • 364
0 votes
1 answer
1k 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 ...
user avatar
2 votes
1 answer
271 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 <...
user avatar
0 votes
0 answers
66 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 ...
user avatar
  • 111
0 votes
1 answer
59 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?
user avatar
  • 101
1 vote
0 answers
104 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 ...
user avatar
0 votes
1 answer
164 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....
user avatar
1 vote
0 answers
237 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 ...
user avatar
  • 11
3 votes
1 answer
539 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 ...
user avatar
1 vote
1 answer
778 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: ...
user avatar
  • 11
2 votes
0 answers
288 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 ...
user avatar
  • 21
1 vote
1 answer
154 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 ...
user avatar
  • 233
3 votes
2 answers
381 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 ...
user avatar
  • 376
0 votes
2 answers
1k 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 ...
user avatar
  • 103
0 votes
1 answer
124 views

Is RAID 6 a good choice regarding performance on server used for computation?

We are operating a server for doing computations with large data sets (100GB - 5TB) for a small group of researchers (10-20 people). At the moment we are running 4x8TB spinning drives in a RAID 6 ...
user avatar
  • 234
2 votes
1 answer
184 views

Fastest way to tranfer data over the network between two servers

I have two storage servers at home - one is my workstation, which has a pair of 3TB disks in RAID1. At first, I stored all of my data there. Recently, I received a small SBC with four 1TB disks. I set ...
user avatar
  • 135
1 vote
0 answers
286 views

btrfs compress existing data with snapshots

I'm runninga a btrfs raid1 on 5 8 TB disks, where primarily urbackup stores backups to. Urbackup uses snapshots extensively. compsize produces the following output: Processed 106161732 files, 57335496 ...
user avatar
  • 111
0 votes
1 answer
1k views

How to move a subvolume to a new drive in btrfs?

I am trying to move my /srv, /var/lib/mysql and /home directory to another drive ( a bigger one with RAID1). I did some research on how to go about doing this and I kind of did most of it. However, ...
user avatar
  • 101
1 vote
1 answer
489 views

Recreate BTRFS File System with DUP Profile

Is there a way to find out the exact parameters that were originally used when a BTRFS file system was created? I'm working on a system with an older kernel version (4.4). Because of the older ...
user avatar
0 votes
0 answers
102 views

Linux ext4 incremental backup tool produces individual files not one

I want to backup ext4 files with size (<100MB) as they are, NOT in one single archive file (like with dump or tar). Can you recommend me a tool that keeps the directories/files structure in the ...
user avatar
0 votes
0 answers
93 views

BTRFS: Multiple copies of metadata on different physical drives

I have rather big btrfs volume assembled as a single drive using different physical size drives. The data is single, the metadata is raid1. Still all the (meta)data is within a single volume. I ...
user avatar
  • 31
0 votes
1 answer
104 views

BTRFS Multiple Initiator Access

Can't seem to find this noted anywhere. Is BTRFS capable of being accessed over iSCSI by two hosts at once? (Think how esxi hosts access same datastores)
user avatar
1 vote
2 answers
713 views

Is there a good way to shrink disk usage of sparse file containing luks-encrypted btrfs file system image?

I've created a sparse file filesystem.img, formatted in with cryptsetup luksFormat, created a btrfs filesystem on it. The image file disk usage expanding fine while adding files to the btrfs ...
user avatar
  • 126
1 vote
0 answers
741 views

Linux MD RAID with btrfs stuck and consume 100 % CPU

The issue During last several weeks, I am experiencing annoying issue on my physical server with Linux software RAID 6 (md, mdadm) with btrfs file system on it. Once in several days (irregularly, as ...
user avatar
3 votes
2 answers
652 views

Btrfs says disk is full when there should be plenty of free space

# df -H Filesystem Size Used Avail Use% Mounted on ... /dev/bcache4 8.1T 1.9T 0 100% /mnt/8t4 # btrfs fi df -H /mnt/8t4 Data, single: total=1....
user avatar
0 votes
0 answers
179 views

Recovering a btrfs partition

I'm attempting to recover (what I'm told is) a btrfs partition from a RAID5 array and I'm a bit stuck on the next step... The reason I mention it was RAID5 is because the array way deleted in the ...
user avatar
1 vote
0 answers
1k views

btrfs bad tree block - cant mount filesystem

I'm hoping someone can help me, trying to recover a btrfs pool, that lost 1st drive. I tried to mount the 2nd drive and I've been having fs errors. I got the 1st drive readable again, but it appears ...
user avatar
  • 151
42 votes
5 answers
60k views

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS [closed]

My use case: I have Ubuntu Server 18.04 installed on an M.2 SSD. I have a 4TB HDD I want to add as storage. Since it's mostly for large media files and backups, it won't be written to very often. ...
user avatar
  • 529
1 vote
0 answers
129 views

BTRFS error that keeps remounting as read-only due to previous I/O errors. How to proceed?

I have four drives as RAID-10. I've been having I/O errors on my system due to unknown reasons and been having to redo the volume a couple of times. Each time another drive has the I/O errors. I ...
user avatar
1 vote
1 answer
319 views

BTRFS filesystem configuration

I'm attempting to setup an Ubuntu server with the following disks: /dev/sda is a 2TB disk, which will host much of the OS. It is currently partitioned as follows: /dev/sda1: EFI Boot partition (488....
user avatar
1 vote
0 answers
333 views

BTRFS RAID5 issues with chunk, mount and more

I'm using a RAID5 BTRFS system with three disks on my Ubuntu 18.04.2 server. One of the drives started to give errors and the filesystem remounted as read-only continusly. I tried btrfs scrub but it ...
user avatar
1 vote
0 answers
384 views

Zstd crashing btrfs?

For last two days I have been trying to create 2TB btrfs for my disk dumps. I forced compression zstd. I have it mounted like this: defaults,nofail,compress-force=zstd Now this is my second time ...
user avatar

1
2 3 4 5