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
1
vote
6 answers

Safe filesystem for Email homedir storage? XFS? JFS? Btrfs? Reiser4?

i'm building an email system and considering some filesystem that support online-resize, safe when power-outage, and does not restrict number of files per directory(or at least can hold some millions file per directory) I want to know which…
Locke
  • 91
  • 4
  • 7
1
vote
3 answers

btrfs: can i create a btrfs file system with data as jbod and metadata mirrored

I am trying to build a server that will be my NAS/Media server as well a the XBMC front end. I am planning on using Ubuntu with btrfs for the NAS part of it. The current setup consists of 1TB hdd for the OS etc and two 2TB hdd's for data. I plan…
Yogi
  • 11
  • 1
  • 2
1
vote
2 answers

How do I improve my incremental-backup performance?

I'm currently using the traditional rsync+cp -al method to create incremental/snapshot backups of our server tree. The backups are going onto a pair of eight-disk towers connected to the backup machine (a Sandy Bridge machine with 16 GB of RAM,…
Alistair Bell
  • 240
  • 2
  • 9
1
vote
0 answers

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 12 netinstall iso, which fully automates the…
youllknow
  • 151
  • 1
  • 5
1
vote
1 answer

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 instance again Then I was ready to play around with…
1
vote
0 answers

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 structure: Save data (RAID 1 or 10). Encryption. Cache SSD +…
Jo K
  • 111
  • 2
1
vote
0 answers

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 system. /dev/sdb, actually multiple drives in a…
Pianosaurus
  • 111
  • 3
1
vote
1 answer

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-e643-4266-9f61-0f6e4980b871 Total devices 2 FS…
1
vote
0 answers

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 of the other (the btrfs) disk for its…
alex k
  • 111
  • 2
1
vote
1 answer

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 btrfs filesystem usage: Overall: Device size: …
Nathan
  • 111
  • 2
1
vote
1 answer

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 both with btrfs replace, and ran a btrfs balance…
dkd6
  • 155
  • 1
  • 9
1
vote
1 answer

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 block storage device. Indeed, most of cloud…
bioinfornatics
  • 166
  • 1
  • 7
1
vote
2 answers

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 module they now will no longer help me with…
1
vote
1 answer

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 present on the BTRFS disks, so copying it all…
catleeball
  • 131
  • 7
1
vote
1 answer

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 configured to run as LXD/LXC containers. For…
sandman85
  • 11
  • 1
  • 3