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
9 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
50 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
35 views

How to get rid of a faulty drive in a BTRFS array

I have a HP MicroServer G8 running Debian 10. It has an embedded pseudo-hardware array management called B120i but that's mostly irrelevant. It had 2x2TB drives and one 4TB drive set up as a BTRFS ...
0
votes
0answers
47 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 ...
0
votes
0answers
214 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 ...
23
votes
5answers
14k 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. ...
0
votes
0answers
19 views

Layout of btrfs snapshots - single common parent vs each snapshot as parent of the next one

Let's say that I want to make a daily snapshot of /mnt/storage in /mnt/backup/. /mnt/storage/ is ext4, /mnt/backup/ is btrfs. For this purpose I will be using rsync. After a while, /mnt/backup should ...
0
votes
0answers
83 views

mount vmfs datastore on synology raid1 array disk in ubuntu

I have a disk from a RAID 1 array connected to an Ubuntu 18.04 PC. It contains an md array, with a btrfs partition which contains a lun on which there is a vmfs datastore. How would I go about ...
1
vote
0answers
64 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
127 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
106 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
126 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
60 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/...
2
votes
1answer
240 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
234 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
63 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] ...
2
votes
1answer
370 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
297 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
148 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
96 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
739 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
468 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 ...
3
votes
0answers
377 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
418 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
1k 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
77 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
504 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
313 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
692 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 /...
3
votes
1answer
193 views

Btrfs Raid10 Two drives have failed. What are my options?

Here's my story: I noticed read errors on one of my four RAID10 Btrfs drives (/dev/sde). This occurred when I was attempting a backup using btrfs send/receive. I bought a new hard drive of the same ...
11
votes
1answer
1k views

Increase disk detection timeout at boot with Linux/Systemd

I have a machine with a lot of disks, and an extra SAS controller in HBA mode. This seems to cause Linux to think for at least 8-10 seconds once in initramfs before the disks actually appear. The ...
0
votes
1answer
820 views

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 ...
1
vote
2answers
857 views

How do I generate a regex to restore a specific folder for “btrfs restore”?

I am trying to recover files after a crash of a btrfs filesystem using: btrfs restore --path-regex 'regex' -sv -D /dev/sdXX /mnt/destination for example, to retrieve all files in /snapshots/@_2018-...
1
vote
0answers
73 views

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

zombie file under linux

When trying to unininstall cups from a linux machine some kind of "schrödingers file" was left behind: ls shows it, but otherwise its not there. System is ubuntu 17.10 / kernel 4.13, filesystem is ...
1
vote
1answer
772 views

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 ...
0
votes
3answers
163 views

Why can't systemd find service files within a BTRFS subvolume within a BTRFS root file system?

I've installed Ubuntu 16.04 LTS Server using BTRFS and got the following setup according /etc/fstab: # <file system> <mount point> <type> <options> <dump> <pass&...
1
vote
2answers
846 views

Move LXD container to other storage

I have an issue with my current storage.img file (btrfs). I had 2TB data inside a container and so the storage.img got 2TB large. After this I deleted everything, leaving me with 100GB of real data. ...
0
votes
0answers
2k views

Synology: How to restore data from an accidentally deleted volumeX (BTRFS)?

The Synology in question has a RAID6 configured via mdadm which features a BTRFS filesystem mounted to /volume1. This path was mounted into a Debian chroot. The unmount was configured in the chroot ...
1
vote
1answer
3k views

Possible to see btrfs defrag progress?

If I do btrfs fi defrag -rv /home then I get a long list of files which needs to be defragmented. It seams as if it doesn't actually do anything. Is it possible to see how far in the defrag ...
1
vote
0answers
336 views

Is it possible to partially recover files from a btrfs raid-0 filesystem with a missing disk?

I've got a bit of a quite terrible situation on my hands and I'm just looking for a bit of insight before calling this a lost cause. To put things into context, I'll just give you my partitioning ...
3
votes
1answer
1k views

BTRFS single data FS still striped?

UPDATE So after a long time of research in the official documentation, I found out that btrfs allocates space in chunks each 1Gb and when using single mode, these chunks are allocated on the disk ...
0
votes
0answers
392 views

Are SSD/HDD hybrid drives a good choice as drives in either BRTFS or md raid?

I'm currently planning to revamp a "computer". Using the term "computer" because I'm not sure what it's role exactly is... It runs Ubuntu (17.10 / artful), it's being used as multi-seat desktop for ...
0
votes
1answer
224 views

Is it safe to continue working during btrfs balance operation?

I have a rocks cluster system with a NAS using a btrfs file system in a RAID 10 configuration. Recently we have been facing "no space left on device" errors that I have finally tracked down to ...
0
votes
0answers
245 views

Why is mounted nas showing 0 inodes on users partition?

I am using a NetGear ReadyNAS machine as a NAS for our server. The server is a linux CentOS 6.6. The server is run using Rocks cluster, with all our users' home directories located on the NAS. My ...
2
votes
1answer
614 views

How to shrink btrfs image file used by LXD storage?

I have btrfs image file set as backend for LXD (2.18) but I would like to shrink it's size. What I did: mounted image to loop device losetup /dev/loop1 /home/btrfs.img mounted device to /mnt dir ...
2
votes
0answers
376 views

btrfs: subvolume/snapshot tree

How do I list all subvolumes / snapshots on a btrfs filesystem in parent / child hierarchy? I want something like the tree command for directories/files, but for parent/child subvolumes with ...
1
vote
1answer
1k views

Does BTRFS self-healing work only by software RAID?

Afaik. there are 3 types of RAID: hardware - e.g. an expensive PCIE RAID card / or rarely onboard RAID which have a dedicated CPU, probably with write cache and BBU software - e.g. ZFS, MD, BTRFS ...
0
votes
1answer
1k views

Does ZFS without RAID make any sense?

Is it possible to use ZFS without RAID? Does it have any advantage to do so compared to using BTRFS instead?
1
vote
2answers
2k views

Postgresql 9.6 over BTRFS. Good or bad idea?

I'm just preparing a VM machine (running onver Proxmox) to run a postgresql 9.6 over a Ubuntu 16.04 LTS. This postgres would be used to handle Jira/FisheEye/Confluence databases for a small company. ...