Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [btrfs]

B-tree file system, next-generation Linux file system

0
votes
1answer
19 views

Btrfs read file with broken checksum

After my system crashed, I get an I/O Error when I try to read a specific file. I run btrfs scrub and found a checksum mismatch affecting this file. Now I want to test, if at least parts of this file ...
0
votes
0answers
34 views

Disk Space 6% used but no space left on device in Amazon EC2 Linux BTRFS file system

The output for df -h is: Filesystem Size Used Avail Use% Mounted on /dev/xvda1 196G 12G 184G 6% / The output for df -i is: Filesystem Inodes IUsed IFree IUse% Mounted on ...
1
vote
0answers
11 views

Prevent grub-mkconfig to pull in files from root partition

I recently made the following changes to my USB installation of Manjaro: Set the btrfs compression level for all subvolumes to zstd rebalance -czstd I couldn't boot afterwards, because grub cannot ...
0
votes
1answer
47 views

btrfs: browsing subvolumes

I am new to btrfs, and confused about subvolumes, after reading the documentation and experimenting on a local system. I have a Linux Mint system with a btrfs root partition. Mint conveniently ...
1
vote
1answer
42 views

btrfs: imaging a volume to an external file

I recently built a system with a btrfs root partition. The most compelling reason for adopting btrfs compared to ext4, in my case, was live copy-on-write snapshots, with near-zero latency. Compared ...
1
vote
0answers
95 views

How does the btrfs nodatacow mount option affect the 3 disks in this scenario?

I'm running Arch Linux with BTRFS. This computer has 3 physical HDD's (and no RAID, etc.). I have a disk mounted at /, one at /cow and one at /nocow. Here is the fstab: # /etc/fstab # <file system&...
3
votes
1answer
76 views

How to buffer writes to an External Drive using an Internal SSD

This question is a bit of an odd one, I'll try to be as detailed as I can be. I'm repurposing an old computer to serve as an in home backup solution. The final resting place for the data is an ...
0
votes
1answer
64 views

btrfs cannot mount because device replace operation is ongoing

I was transfering data from and disk to a new one. However the new one an seagate IronWolf 12Tb has trouble (may be too sensible to output voltage). Never the less then replace operation stops on with ...
2
votes
1answer
41 views

Are newer `btrfs-progs` versions safe to use with older kernels?

For example btrfs-progs-4.17 on kernel 4.14 - any issues, or can just upgrade btrfs-progs with no "back-compatibility" concerns?
1
vote
0answers
171 views

BTRFS RAID5 disk failed while balancing

If you clicked on the link to this topic: Thank you! I have the following setup: 6x 500GB HDD-Drives1x 32GB NVME-SSD (Intel Optane) I used bcache to setup up the SSD as caching device and all ...
1
vote
0answers
50 views

Disk full for unknown reason - BTRFS partition filled up with garbage data

On my Debian Linux laptop a couple of days ago I got my 23GB root EXT4 partition full (probably I installed more software than I expected). Since I have plenty of space in my BTRFS home partition, ...
0
votes
1answer
206 views

How to fix btrfs extent issue

I think I have been hit by a known bug in btrfs: https://www.spinics.net/lists/linux-btrfs/msg60984.html Certainly, the error messages seem similar. If it is the same issue, it seems somewhat ...
0
votes
1answer
280 views

Why does Ubuntu 18.04 doesn't create multiple BTRFS subvolumes anymore during installation by default?

During installation of Ubuntu 16.04 LTS Server I could choose manual partitioning and create a /-partition using BTRFS. The installer automatically mapped that to creating one subvolume called @ for / ...
0
votes
0answers
56 views

Adding third disk to BTRFS to RAID-1 did not increase size as expected

Original setup was having BTRFS RAID-1 with 2x3TB disks. I now added a third 4TB disk and did a btrfs balance. I did see the available disk space in df increase, but not to the amount I expected, ...
0
votes
1answer
132 views

After btrfs scrub, how do you get the list of affected files?

I just tried to use btrfs send for a backup but it ended up giving me an io error. I ran btrfs scrub, which reported 32 unrepairable blocks on my raspi's sd card. The obvious way to fix this is to ...
2
votes
0answers
692 views

In-place delta writes from a pipe

I'm looking for a way to only overwrites the parts of a file that differ from what's supposed to be written to it, so that the file is changed with the least amount of writes to disk possible. My ...
0
votes
0answers
118 views

How to use BTRFS for RAID between a SSD and a larger HDD?

My PC has a SSD for the root filesystem and the home directory and a large HDD for other data. From time to time I sync the SSD content to the HDD in case the SSD fails. The HDD has a separate backup. ...
1
vote
1answer
170 views

Btrfs copy snapshot with rsync

So I have been searching for this up and down, but must be doing something fundamentally wrong. What I want to do: I have configured my NAS to make snapshots of my home folder, file system is btrfs. ...
1
vote
0answers
31 views

Copy Fedora 28 BTRFS from Single Drive to Motherboard RAID(1) and make bootable

I have a bootable Fedora 28 system running on a single drive (sdc), using BTRFS. I used to have F24 running on my Raid-1 mirror, now I would like to transfer the 28 to the Raid-1 mirror. The RAID-1 ...
1
vote
1answer
76 views

How to be sure that readonly snapshot is not corrupted in BTRFS?

How can we sure that a readonly snapshot is not corrupted due to a disk failure? Is the only way calculating the checksums one on another and store it for further examination, or does BTRFS handle ...
0
votes
0answers
70 views

Verify integrity of a file created with btrfs-send

Is there a way to verify the integrity of a 'btrfs-send', without first reconstructing the whole filesystem with 'btrfs-receive'? I've tried using btrfs receive --dump -f backup.bin for instance, but ...
0
votes
0answers
24 views

How to change the filesystem type of a cryptmount loopback file?

I have a cryptmount volume as a file, not a partition, and I would like to change its filesystem type from ext3 to something else (ext4, btrfs, ...). How would I do that? I could always create a ...
0
votes
0answers
76 views

Does Btrfs verify data while written to disk?

I sometimes have to move large files between machines and (as paranoid as I am) checksum all the data at source and destination and compare those to ensure everything is written correctly to disk ...
2
votes
0answers
63 views

Can I force a BTRFS volume to reside on a specific disk

I have a btrfs filesystem mount as / (root) and /home. I have two drives in my filesystem, Total devices 2 FS bytes used 233.79GiB devid 1 size 922.51GiB used 115.00GiB path /dev/sda3 ...
1
vote
0answers
363 views

SLES12 SP1 broken BTRFS open_ctree failed

We have a SLES12 SP1 System running as VM in a MS HyperV Environment. After a reboot the system won't boot anymore because the vmlinux isn't there anymore. Grub says "you must load the linux kernel ...
0
votes
1answer
273 views

Btrfs transid failure

I can't mount my Btrfs volume any more. It says: mount: wrong fs type, bad option, bad superblock on /dev/md0p1, missing codepage or helper program, or other error In some cases ...
2
votes
0answers
525 views

btrfs partition fails to mount with open_ctree failed

I have a btrfs partition that appears to be failing to mount. Here are the details: (1) When I try to mount the partition, I get the following output in dmesg: [791594.778798] BTRFS info (device ...
0
votes
1answer
54 views

Btrfs volume missing

I have an Ubuntu 64-bit Server with 7 4TB HDD's in a Btrfs Raid 6. A few days ago I executed the btrfs balance command but forgot that this takes quite a while. 'Cause of an update, I restarted my ...
0
votes
1answer
100 views

btrfs RAID1 - should I create subvolumes which can be mounted separately?

I plan to construct a btrfs RAID1 spanning over 2, or maybe 3 devices. This will mainly be used to hold data for a samba server, but maybe I'd want to add other uses (like mounting /var/snap/ or /...
0
votes
1answer
170 views

btrfs RAID1 - does adding a 3rd HD add data security?

would spanning a btrfs RAID1 over 3 drives allow for 2 drives to fail, before data loss? Or in other words ... "is a btrfs RAID1 on 3 drives more data save then one with 2 drives"? EDIT: or would ...
0
votes
0answers
322 views

Mount BTRFS Partition

I am trying to mount a BTRFS partition in Linux Mint KDE. This is my fdisk -l for the relevant device Device Boot Start End Sectors Size Id Type /dev/sdb1 32 4096031 ...
3
votes
1answer
375 views

Btrfs on SSD, “no space left on device”; catch-22 with `fstrim` and `btrfs balance`; how to recover?

The root filesystem of my Kubuntu (mounted under /) is Btrfs. I don't use -o discard as a mount option. This means I need to run fstrim on demand. In the past I hit this problem: btrfs, no diskspace ...
2
votes
0answers
1k views

btrfs filesystem is read only

for the past few days, I have noticed that my computer will either be in read only mode immediately after boot or shortly there after. Below is the error shown in dmesg. I have posted the entire ouput ...
0
votes
2answers
292 views

Test if btrfs subvolume exists

I have a problem in a bash procedure, which should port my old rsync disk backup (and archive) to my future btrfs snapshot backup. I want to use the line: # btrfs subvolume snapshot /targetdir/@...
0
votes
0answers
141 views

btrfs subvolume differential send

I want to use btrfs snapshots plus send/receive for backing up my Ubuntu to my new RAID1 (mirrored) desktop disks. And the same for my data. Both create and send/receive work for a snapshot of / in /...
1
vote
0answers
2k views

Cannot mount BTRFS disk: “open_ctree failed”

Yesterday, I cannot mount my movable disk formated with btrfs. Kenel message (dmesg output): [38257.314422] BTRFS info (device sdd): disk space caching is enabled [38257.328731] BTRFS critical (...
2
votes
1answer
307 views

btrfs HUGE metadata allocation

This question is almost the same as btrfs: HUGE metadata allocated , except for the magnitude of data size on the partition, and a new version of linux kernel 4.4 . I'm trying to make an full-image ...
0
votes
0answers
71 views

Btrfs errors on boot, can't boot anymore

Fedora 27 user here with btrfs partitioning on a SSD (default scheme choose at installation). All of a sudden my laptop can't boot, tried all kernel entries in GRUB. If I true the rescue we entry it ...
2
votes
2answers
916 views

btrfs, no diskspace left

I have a problem with disk space at btrfs volume. df shows there is plenty of disk space. But when I'm trying to copy 10GB test file system say no disk space on this device. df -h | grep /mnt/ssd: /...
3
votes
1answer
1k views

BTRFS, RAID5 or RAID6 for data storage?

I need to setup a storage for my server. The hardware is a 5 bay enclosure and 5 WD RED 8TB. I have read the statistical probability of a catastrophic failure in RAID5 (= normal RAID) rebuild after ...
2
votes
1answer
813 views

How to get Btrfs verify checksum for one file?

Btrfs offers these commands to verify data integrity/checksums: btrfs scrub start <path>|<device> btrfs check --check-data-csum However, AFAIK those always verify whole filesystems; the ...
1
vote
0answers
50 views

Recover data from replaced btrfs disk?

I had a 500GB disk with BTRFS on it in my NAS. I recently got a 4TB disk and I wanted to use just the new disk, without any downtime. So I ran btrfs replace start 1 /dev/sdb ., waited for it to finish ...
0
votes
1answer
88 views

What is the expected file delete behaviour on a device controlled SMR?

SMR drives seem to be best for writing once, reading several times. I have a significant number of hardlink duplicated directory structures stored on an SMR device, and wished to delete the latest one,...
2
votes
1answer
235 views

ZFS snapshot behaviour handling of file modification, movement and rename

With ZFS being described as more like a database than a filesystem, it seems reasonable to expect it would behave a lot more like a version management system as well, intelligently managing file ...
0
votes
1answer
323 views

BTRFS going readonly with IO errors

I've got a Raspberry Pi 2B with 4 newly purchased 256GB USB flash drives attached. I set up the 4 drives as a RAID10 (data and metadata) btrfs volume. I've been trying to copy a very large (~35GB) ...
0
votes
1answer
110 views

Raid with 4 disk of different size

I have 4 disks, 2 of 500GB, 1 of 1TB e 1 of 2TB capacity. I would like to create a striped array from first 3 disks (500GB + 500GB + 1TB), then mirror the content on 2TB disk. It's possible? I would ...
0
votes
1answer
3k views

Linux mint 18.3, convert ext4 to btrfs

I have upgraded to Linux Mint 18.3, but all are EXT4, but I understand now, that BTRFS is awesome is much better with snapshots then EXT4, but I followed this: How To Convert An ext3/ext4 Root File ...
3
votes
0answers
328 views

btrfs online conversion from directory to subvolume

Is there a way to create a btrfs subvolume from a directory, without interrupting processes using files in that directory. For instance, I want to create a subvolume for /tmp (to exclude it from ...
0
votes
2answers
311 views

Questions about BTRFS data corruption and snapshots?

I am curious what happens when we have a corrupted uncorrectable file in a file system with snapshots—such as BTRFS—and we try to replace the file from backup? I suspect, that the snapshots will still ...
1
vote
2answers
2k views

Tools to recover data from a BtrFS partition whose first sectors were overwritten

The first few GBs of my 300 GB BtrFS partition were overwritten by another file system, so I lost that data. Naturally, now the partition cannot be mounted as BtrFS, so none of the contents which I ...