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
2
votes
1 answer

btrfs - data usage in 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 section when running btdu. How can I trace…
2
votes
0 answers

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 systems, I'm alerted to the fact that a disk has…
2
votes
0 answers

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 900GB -2 SSD’s, one is 220GB, the other is…
Cedric
  • 21
  • 1
2
votes
1 answer

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 them up with RAID0, with the idea being that the…
dkd6
  • 155
  • 1
  • 9
2
votes
1 answer

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 kernel I believe I will be unable to convert an…
Harry Muscle
  • 243
  • 2
  • 10
1
vote
0 answers

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 thinks it's either because of bad cables or power…
Daniel Holm
  • 131
  • 3
1
vote
1 answer

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.3GB), mounted as /boot/efi /dev/sda2: LVM…
Mike Allen
  • 111
  • 5
1
vote
0 answers

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 trying this, but both times I have tried to wrote like…
1
vote
1 answer

Is rsync slow on btrfs?

I have a large hard disk and a second hard disk, that I use as backup drive (with an USB 3 adapter), using rsync: rsync -ahHPxX --delete --delete-delay Rsync "pauses" a long time during sync, while I can hear both hard disks seeking. I think when I…
allo
  • 1,620
  • 2
  • 22
  • 39
1
vote
0 answers

Why does btrfs filesystem df return larger number than du?

I have a Linux machine (Ubuntu with Btrfs) which runs Docker and 4 cointainers. Docker images # docker images REPOSITORY TAG IMAGE ID CREATED SIZE alpine 3.8 …
Alojzij Blatnik
  • 123
  • 1
  • 9
1
vote
2 answers

BTRFS unmountable after cold reboot (total_rw_bytes is twice too big)

One of my users in research environment invoked out-of-memory on a server which mounts a 52TB btrfs partition. I had to power cycle the server. After the reboot my btrfs partition cannot be mounted in read-write mode. mount /mnt/storage/ mount:…
Met
  • 373
  • 1
  • 8
1
vote
1 answer

btrfs recover: reliable or last-straw?

The chunk tree of a btrfs filesystem corrupted and I could not recreate it after hour-long reconstruction. As a last resort (besides restoring from backup) I could use btrfs restore -S -x -m -v to get all the files back. Does anyone know whether the…
Reiner Rottmann
  • 633
  • 1
  • 7
  • 19
1
vote
1 answer

Btrfs check repair give device busy. How to see what it keeps busy?

I am in a chicken-egg situation for my secondary harddrive (non boot): My BTRFS mount has gone readonly because no space left. btrfs filesystem resize only works on mounted volumes. I needed to umount this ro mount in force mode (because of device…
robert
  • 163
  • 7
1
vote
0 answers

Btrfs minimum free space for raid 5 convert

I have a btrfs array of 7 drives that I just finished building. It's currently in "single" mode and I'd like to convert it to raid5 (I understand the risks and the write hole issue). Per the documentation, The way balance operates, it usually…
NStephenH
  • 11
  • 2
1
vote
1 answer

Btrfs with different sized drives and parity

I want to upgrade my NAS to 8x 4TB + 4x 2TB drives and wonder if Btrfs can deal with drives of different sizes and still provide reduncancy. If one drive fails I do not want to loose my data! So does Btrfs support RAID5 with different sized drives…
Möhre
  • 229
  • 1
  • 11