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
0answers
26 views

opensuse leap 15.2 btrfs keeps turning readonly

One of my opensuse leap 15.2 box's btrfs keeps turning readonly every couple of days. btrfs device stats /dev/sdb1 [/dev/sdb1].write_io_errs 162 [/dev/sdb1].read_io_errs 245 [/dev/sdb1]....
1
vote
0answers
56 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 ...
0
votes
1answer
23 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....
0
votes
0answers
22 views

Btrfs - do I need to run balance operations frequently?

There seem to be reported issues of btrfs users in the past running into underutilized disk space issues if they did not run balance operations frequently to compact chunks and potentially change the ...
1
vote
0answers
66 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 ...
3
votes
1answer
146 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 ...
0
votes
0answers
16 views

How does btrfs distribute chunks of large files when writing

If I have 8 drives in raid1 configuration for a btrfs volume. I know it parities the data by blocks/chunks, so that any one chunk always has 2 copies. But when I copy a large file, say 50GB, does it ...
1
vote
1answer
129 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: ...
2
votes
0answers
119 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 ...
0
votes
0answers
39 views

btrfs find paths deleted between two snapshots

I have somewhat large data array, with periodic snapshots. I'd like to see a ~"diff" between two snapshots as I suspect an errant command has deleted data. Many TB so I can't just mount ...
0
votes
0answers
17 views

Unpartition mdadm /dev/md3p1 btrfs

I have a synology nas with a one single HDD. Synology SW partitioned that "Basic" storage to 3 partitions. 1,2 are raid for SW, and the 3rd is a member of mdadm raid. After my NAS felt to ...
1
vote
1answer
44 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 ...
3
votes
2answers
168 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 ...
0
votes
2answers
359 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 ...
0
votes
1answer
34 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 ...
2
votes
1answer
82 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 ...
1
vote
0answers
105 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 ...
0
votes
1answer
493 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, ...
1
vote
1answer
94 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 ...
0
votes
0answers
45 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 ...
0
votes
0answers
68 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 ...
0
votes
1answer
82 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)
0
votes
1answer
326 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 ...
1
vote
0answers
367 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 ...
0
votes
0answers
16 views

SLES15SP1 system: btrfs df / says 23%, balance with filter works , full balance failes with enospc

I run a server SLES15SP1 which has a btrfs root filesystem. The disk was originally only 32GB in size some time agow I resized it to 44GB. The problem is that a btrfs balance start / (full balance) ...
3
votes
2answers
190 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....
0
votes
0answers
130 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 ...
1
vote
0answers
703 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 ...
35
votes
5answers
43k 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. ...
1
vote
0answers
93 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 ...
1
vote
1answer
180 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....
1
vote
0answers
220 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 ...
1
vote
0answers
250 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 ...
0
votes
1answer
95 views

Listed btrfs mount options are not expected how I did

In my /etc/fstab: UUID=... / btrfs subvol=@,defaults,relatime,space_cache,autodefrag 0 1 UUID=... /media/fs.cave btrfs subvolid=5,defaults,relatime,space_cache,autodefrag 0 0 UUID=... /var/lib/...
3
votes
2answers
1k views

Should I disable btrfs CoW for /var/lib/docker?

I saw that it is not a good idea to use btrfs CoW functionality for big files, such as data directories of a PostgreSQL database. Since I use docker for databases, I now ask myself, if I should ...
1
vote
1answer
677 views

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

While RAID1 is resyncing after create, can i write files to it immediately?

I searched but i just found this. How to interrupt software raid resync? My question is can i write files to my raid1 device while... [root@centos ~]# cat /proc/mdstat Personalities : [raid1] ...
4
votes
1answer
916 views

Btrfs: Remove a large file takes long

I'm running a synology nas DS1817+ with DSM 6.2.2-24922 with a RAID5 volume formatted with BTRFS. Deleting a large file either with DSM FileStation or directly in an ssh session with "rm filename" ...
2
votes
1answer
543 views

Can not delete btrfs subvolume inside Docker

I have a btrfs partition (mounted on /srv) on my host system with a subvolume (old). I would like to manage it from a docker container (I have launched it with -v /srv:/srv). While I'm perfectly able ...
1
vote
0answers
305 views

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

Why doesn't btrfs send | btrfs receive preserve the “no dump” file attribute?

Btrfs supports the "no dump" file attribute and it is preserved when taking snapshots. But after sending such a snapshot to another Btrfs using btrfs send and btrfs receive, all values of the "no ...
7
votes
1answer
947 views

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

I cannot shrink btrfs filesystem although there is still data and metadata space left : $ sudo btrfs filesystem resize -11G /home;echo $? Resize '/home' of '-11G' ERROR: unable to resize '/home': No ...
1
vote
2answers
839 views

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 ...
4
votes
0answers
632 views

How to cancel btrfs defragmentation

How can I cancel a btrfs defragmentation? With btrfs fi balance / you can use btrfs balance cancel /. I can find no option for defragmentation. How can I safely cancel?
0
votes
1answer
621 views

How to recover unrecoverable errors in a btrfs RAID1 volume?

I have a 10TB BTRFS volume made of 7 whole-disk volumes (no partitions) in a JBOD server with each volume being a physical drive mounted as single-drive RAID0*. The BTRFS volume with the 7 drives was ...
2
votes
1answer
2k views

NFS export an overlay of ext4 and btrfs

I have 2 data sources. One is btrfs (raid) and one is a simple ext4 partition. Those should be transparently displayed as one. This is a simple read only example, but the lower/upper/workdir version ...
1
vote
1answer
107 views

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 ...
3
votes
1answer
1k views

Add btrfs devices to raid1 array, increasing total size

I have a btrfs array comprising of two 2TB disks in raid 1. I am running out of space, and I want to add two 3TB disks that I have lying around. The final setup will be 2x2TB+2x3TB drives. One drive ...
2
votes
1answer
522 views

BTRFS, out of space, but there is plenty of space

I am facing No space left on BTRFS. What I already tried myself: After remount RW: btrfs filesystem resize max /mnt/hdd I ran balance (for weeks ;-) ) with different parameters btrfs balance start /...
1
vote
1answer
1k views

How to reduce size of mounted lvm volume with btrfs file system

My State: $: lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home myvg -wi-ao---- 100.00g $: btrfs filesystem resize -20g /home $: lvreduce -L-20G /...