Stack Exchange Network

Stack Exchange network consists of 175 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]

A copy-on-write (COW) file system developed by Oracle included in the Linux kernel.

0
votes
1answer
12 views

Change where Snapper creates snapshots

I have a BTRFS filesystem, running Arch Linux x86_64. On that filesystem, I have the top level subvolume (id=5), then inside that I have @root, @home, @snapshots, @swapfile. I want to be able to ...
1
vote
1answer
29 views

BTRFS - Subvolumes for / & /home, and being able to snapshot and restore from the snapshots?

OS: Arch Linux x86_64 I have one BTRFS filesystem, both containing / & /home, how do I create subvolumes for both / & /home, and create a snapshot for each and restore from their snapshots (...
3
votes
1answer
159 views

Unrecoverable Btrfs filesystem after a power failure?

I've been writing to a 3TB USB external hard drive (WD MyBook) with a Btrfs filesystem, when accidentally I've switched the power off to the drive's power brick. What is strange - the write ...
1
vote
0answers
33 views

Disk utilization on mdadm raid 5 is 100% even though none of the member disks is at 100%

I am currently confused about the disk utilisation of one of my machines. The setup: I have a machine containing 4 2TB HDDs. For those HDDs I used mdadm to configure a RAID 5 (called md2) On MD2, I ...
1
vote
1answer
43 views

Are btrfs advantages negated with over-the-top encryption?

Are the benefits of btrfs lost if one uses encryptFS on top? What advantages (over ext4) of btrfs remain intact with encryptFS? If I want to have the full benefits of btrfs with encryption, is LUKS ...
0
votes
1answer
28 views

btrfs subvolumes not auto mounted after set-default

I'm using btrfs-sxbackup to create local snapshots. It creates a technical subvolume in /.sxbackup and creates readonly snapshots in its subfolder. All subvolumes are automatically mounted when OS ...
0
votes
1answer
35 views

How to resolve btrfs errors? copying from btrfs to another partition?

I had a working system that was running out of space. So I added space to the end of the disk. Boot from gparted ISO launched gparted moved partition 3 of 3 to the right. Went to resize partition ...
2
votes
0answers
99 views

Why does BTRFS filesystem mount automatically?

So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that: sata\ md1--\ sata/ \ btrfs called "Storage" usb-------...
1
vote
0answers
21 views

Why is convert=soft not default in btrfs balance?

Enabling soft when seems to be all upside with no downside: balance will skip chunks which are already in the right place. man btrfs-balance says: soft Takes no parameters. Only has meaning ...
1
vote
2answers
102 views

btrfs replace on RAID1 is super slow with failed disk present

I'm trying to replace a failed disk in a RAID1 btrfs filesystem. I can still mount the partition rw (after about 5 minute delay and lots of I/O kernel errors). I started replace with -r in an ...
0
votes
2answers
45 views

btrfs replace “ERROR: target device smaller than source device”

Why am I seeing: btrfs replace "ERROR: target device smaller than source device" when I have already shrunk the source device filesystem to be smaller than the target via: btrfs filesystem resize &...
0
votes
0answers
88 views

Can’t write to btrfs volume (forced readonly)

Since today, when I try to write moderate amounts of data (MB range) to the btrfs volume on my external hard drive, the volume switches to read-only, interrupting the operation. The volume is very ...
2
votes
0answers
245 views

Cannot delete a btrfs subvolume

I have an Arch Linux Installation on a btrfs filesystem partition "/dev/sda1": [root@larch ~]# mount | grep sda /dev/sda1 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/subvol_root)...
2
votes
1answer
51 views

How to copy multiple snapshots at once without duplicating data?

I have a live btrfs filesystem of 3.7TiB that's >90% full including old snapshots and a fresh 4TB backup harddisk. How to copy all existing snapshots to the backup harddisk? I tried # btrfs send ...
2
votes
0answers
33 views

meaning of @ in (btrfs?) pathnames

I have noticed that Synology NAS devices preface many system-relevant links or directory names with the @ character. I've just noticed that the standard partitioning in openSUSE does the same when ...
1
vote
1answer
98 views

What's the difference between “parent” and “clone source” with “btrfs send”?

I regularly use btrfs send and btrfs receive to copy read-only snapshots from my live system to a backup drive. On the backup drive there are already multiple snapshots. Today I wondered: Can I copy ...
0
votes
1answer
33 views

How to sync after a 'snapper delete'

I have started a snapper delete command, only to find out five minutes later that it is running in the background and seems to take a longer time. Is there a command can I use to get notified when the ...
1
vote
1answer
70 views

How to find the creation date/time of btrfs snapshots

Is there a general way to find the creation date of btrfs snapshots, or is it necessary to encode the date in the snapshot name, as it is e.g. done by Timeshift?
1
vote
0answers
61 views

tar takes a long time before passing data to gzip

What I want to know, is what is tar doing at the start, before it starts passing data on to gzip? Can I make it skip that step? I'm writing a script to run on my Synology NAS box (running DSM 6.2.1-...
2
votes
1answer
97 views

how to set NOCOMPRESS flag on a file in btrfs?

according to https://btrfs.wiki.kernel.org/index.php/Compression#How_do_I_enable_compression.3F there exist a "NOCOMPRESS" flag, how do i set the NOCOMPRESS flag on a file?
1
vote
1answer
76 views

Span BTRFS over multiple partitions to increase disk space

I have recently moved from a 2TB HDD with Windows 7 Enterprise (R) and several ext4 and XFS data partitions to a 4TB HDD by dd 'ing Windows to the new HDD. When I wanted to create an extended ...
1
vote
1answer
93 views

How to make snapper-boot.service create snapshots for all configs?

I have a btrfs setup with multiple subvolumes mounted to different places of the file system. Each subvolume has a configuration for snapper: cat /etc/conf.d/snapper [...] SNAPPER_CONFIGS="root ...
3
votes
3answers
794 views

BTRFS Raid 1 vs. MDADM Raid 1

I'm currently in the process of setting up a NAS system mainly for backing up my computer and probably also for streaming media files to my devices. For these purposes, I decided to use ...
0
votes
1answer
34 views

Find physical block device of root filesystem on an encrypted filesystem?

I'm running Arch Linux (systemd) on several systems. Some have SSD storage, others have nvme storage devices and some use rotational HDD's. Some systems use dm-crypt to encrypt the filesystem. All ...
2
votes
1answer
185 views

Restore single files from a btrfs snapshot without doing a full copy

Background I maintain a series of hourly snapshots on my btrfs filesystem using btrbk. The subvolume and snapshots are stored like this (names shortened to make it easier to follow): /@vol ...
0
votes
1answer
40 views

What FS can reclaim unused blocks to VirtualBox when dynamically allocated image is used?

I like to use dynamically allocated images in VirtualBox. It is preferred way if you like to distribute you image (remember Vagrant?). What Linux FS can reclaim unused blocks to VirtualBox when ...
0
votes
1answer
58 views

Detect btrfs reflinked files

It's clear, with cp --reflink foo bar I can copy a file on btrfs without wasting space? But how can I detect that the two files (foo and bar here) are using the same "space unit"? If they were ...
1
vote
0answers
148 views

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

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, ...
9
votes
2answers
739 views

How does write cache work with a filesystem spanning disks with different speeds?

On a modern Linux system with multiple disks and a software RAID spanning both slow (HDD) and fast (SSD) drives, how are writes to the filesystem cached? For md-raid RAID1 the array can be configured ...
0
votes
1answer
44 views

Hiding btrfs drives (part of raid0 array) in Gnome Nautilus?

I have a raid 0 array consisted of sdb to sdf devices. My issue is that all 5 devices show up in Nautilus. I've tried other distro like deepin and I had the same issue. Mdadm and ZFS, this issue is ...
1
vote
1answer
82 views

btrfs subvolume delete /old/opt taking a lot of time and CPU resources, why? what do it about it?

The command: btrfs subvolume delete /old/opt Has been running over night. Currently 980 minutes and counting, and it is pegging 1 CPU core at 100%. I also initiated a second delete, and it too is ...
0
votes
1answer
98 views

Cannot set compress flag on a file in btrfs

I have the following btrfs filesystem on CentOS 7: mount | grep btrfs /dev/sdc on /everything type btrfs (rw,relatime,compress=zlib,space_cache,subvolid=5,subvol=/) When I try to set the compress ...
1
vote
1answer
291 views

Is it OK to use Btrfs for a logical volume under encryption?

I want to use the Btrfs partition type for my main ("/") logical volume which is under encryption. The encrypted LVM will occupy my entire device aside from the two small "EFI-system" and "Boot" ...
0
votes
1answer
257 views

btrfs check /dev/loop0 -> ERROR: cannot open file system

I have a file formatted as a btrfs filesystem. I can loop mount it and use it normally. I'd like to run btrfs check on this file, but an error is generated. First I tried with just the file: $ ...
0
votes
1answer
27 views

Report directories with contents that exist elsewhere even if scattered

I want to generate a report of directories that I know I can safely delete (even if requiring a quick manual verification), because I know that the full contents all the way down, exist elsewhere--...
4
votes
0answers
87 views

btrfs scrub status no_csum

I used two disks to create a btrfs raid 1 mirror, and after adding a bunch of files I ran a scrub. The command btrfs scrub status <dir> reports that it finished with 0 errors. However, btrfs ...
7
votes
3answers
534 views

How can I make btrfs pretend to be ext4?

Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ...
0
votes
1answer
60 views

Anyway to apply filter while btrfs subvolume snapshotting?

btrfs sub snap foo bar creates an exact same contents of subvolume foo as subvolume bar, except the subvolumes in foo, which are excluded in bar. What I want is excluding some regular folders too ...
0
votes
0answers
247 views

Manually synchronizing two BTRFS snapshots with RSYNC

Question Is there a way to synchronize two BTRFS snapshots manually on different disks and mark them as identical (set the parent/child relationship) reliably? Problem I was synchronizing my ...
0
votes
1answer
124 views

BTRFS RAID1 on partitions instead of drive? (different size drives)

I would like to have a Btrfs RAID1 setup using two different size drives without wasting any space. Let sda be a 5TB drive and sdb a new 3TB drive. Would it be possible to set this up as RAID1=[sda1=...
-4
votes
1answer
236 views

Btrfs How do I replace a failing/failed hard drive on a RAID1 setup with no available SATA ports

I'm running ubuntu server 16.04.05 LTS My motherboard only has 6 SATA port. Port 1 has a hard drive that contains the OS, SWAP, and home partition. Port 2, 3, 4 and 5 each have a WD red 2TB hard ...
0
votes
0answers
94 views

Formatting a 1GB (loop-) block device with btrfs. Will this present a balancing issue in the future?

Use case Since I can't find a service that exposes part of their server's storage space as a block device, I've decided to make a loop device and then put those on Google Drive, Dropbox, or the like. ...
2
votes
0answers
74 views

Find all blocks on device not used by the filesystem

How can I list all blocks on a device that are currently not being used by the filesystem? The filesystem in question is a btrfs RAID1 with two LUKS encrypted harddrives an Arch Linux. I have tried ...
0
votes
1answer
208 views

Convert btrfs RAID10 to RAID0

So, I started getting filesystem errors on my 4-drive btrfs RAID10 array, and btrfsck is unsuccessful in repairing them (goes into an infinite loop producing the same output for days on end). The ...
1
vote
1answer
314 views

mdadm raid 1 how to remove raid and remove data offset to mount normally?

I have a disk that was in a mdadm raid1 with a btrfs partition. Now I want to use this partition without the raid stuff and mount it normally. I already zeroed the mdadm superblock, but now the ...
4
votes
1answer
5k views

Which Linux Mint Timeshift method is more space efficient

Some questions about Timeshift backup in Linux Mint: can I expect a difference in drive space used for backups between the btrfs option and the rsync option? As I understand it btrfs uses diff-based ...
4
votes
0answers
67 views

no such file or directory trying to list or remove file in btrfs

I have a file system mounted btrfs. I have one directory in particular, that I can't remove, because it's listed as non-empty. In that directory, there's one file, which I can see the name of, but ...
1
vote
1answer
68 views

BTRFS: resolve bytenr to file path

I have several errors on my BTRFS partition (SSD -> luks -> BTRFS): btrfs check --check-data-csum -p --force /dev/mapper/sda3_crypt ... mirror 0 bytenr 1337316519936 csum 850178701 expected csum ...
1
vote
1answer
508 views

How to replace btrfs root subvolume with received snapshot?

I want to convert my existing full-disk btrfs (unpartitioned) filesystems to bcache. To do so, I need to move data around and reformat the drives. I have enough hdd space to do it in a couple steps. ...
1
vote
0answers
271 views

systemd btrfs mount times out

I am on OpenSuSE Tumbleweed and have the following disks: /dev/sda1: /home (btrfs) /dev/sdb1: /boot /dev/sdb2: swap /dev/sdb3: / (btrfs) When I start my computer, systemd tries to mount my disks but ...