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

learn more… | top users | synonyms

2
votes
1answer
14 views

Why does “cp -R --reflink=always” perform a standard copy on a btrfs filesystem?

Btrfs support Copy-On-Write. I tried to use that feature to clone a directory: cp -R --reflink=always foo_directory foo_directory.mirror I expected the command to finish almost instantly (like a ...
2
votes
1answer
19 views

Mounting a btrfs image file

I am trying to perform a recovery operation on a btrfs image file that I have extracted using # dd if=/dev/sda1 of=/mnt/sda1.img The file seems to be properly extracted: $ file sda1.img sda1.img: ...
0
votes
1answer
25 views

btrfs on LVM on LUKS - one LUKS container performs WAY better than the other

I have 2 LUKS containers, one with default OpenSUSE installer settings, another one with -h sha512 -s 512 -i 5000 and detached header. On top of each of them there is LVM - one with only 1 OS volume ...
0
votes
0answers
14 views

where to compress=lzo, btrfs with virtual disk images, with their vm's internally using btrfs

I've been using compress=lzo on my btrfs volumes, because I read this fast compression method actually increases drive performance. (Haven't tested myself.) I'm starting to use ...
1
vote
1answer
19 views

Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition [duplicate]

Setting up an array of (3) 5GB drives using btrfs. It will soon grow to (6) 5GB drives. Starting with raid 1, will rebalance once all the drives are installed to either raid5, 6, or 10. I will be ...
0
votes
0answers
13 views

btrfs scrub history disappeared

I had some corruption on a multi-disk RAID1 scrub setup and was running the command: watch -n10 -d ;btrfs file usage -T -g /mnt/b;echo;btrfs scrub status -d /mnt/b' After the scrub finished, I ...
1
vote
1answer
18 views

udisksctl mount a different subvolume of an already mounted btrfs partition

I have a btrfs partition with several subvolumes, one of which is /. I have another subvolume with some other stuff that I also want to mount, but trying to mount it with udisksctl: udisksctl mount ...
0
votes
1answer
21 views

Btrfs RAID1 mismatched sized drives full

I have a 500 GB HDD and a 300 GB HDD. I have formatted them as btrfs raid1 between. The total size is 800 GB. If I copy 50 GB onto the filesystem, it causes 100 GB to be used. If I copy 300 GB onto ...
1
vote
1answer
19 views

Btrfs distribute files equally across multiple devices

I have a btrfs volume across two devices that has metadata RAID1 and data RAID0. In the event one drive would fail, practically all files above the 64KB default stripe size would be corrupted. As this ...
1
vote
1answer
36 views

Using Btrfs to eliminate corrupted archives

I am trying to get my personal filesystem in order I want to tar everything and get it organized into proper directories I have many HDDs and a few SSDs I want to use Btrfs with it's checksum and ...
1
vote
1answer
20 views

Snapper to only take snapshots if something has changed, or at a lower cadence

I'm using snapper for automatic timeline snapshots of my filesystem. The issue I have is that it continues to take hourly snapshots even when nothing on the filesystem has changed, which causes the ...
0
votes
1answer
20 views

btrfs how to move submolume to another disk

I've got 4 drives in my server: sd{a,b,c,d}. All of them are in a raid1 system. 2 of those drives, sd{b,c} are completely empty. RAID1 will only make one copy of a file on a different drive. So it ...
2
votes
1answer
38 views

Is there a simple way to move btrfs subvolumes to a different btrfs filesystem?

I have two separate btrfs filesystems which I would like to consolidate. The subvolume structure looks like this: / filesystemA |- subvolume1 |- subvolume2 |- ... |- subvolumeN / filesystemB |- ...
1
vote
1answer
43 views

btrfs - missing space, what is taking it up?

I have a Netgear NAS device which uses btrfs filesystem. du reports all the files on md device taking up 1.37 TB. btrfs fi df says, that it's taking up 1.53 TB. I cannot figure out where does 0.16 ...
1
vote
0answers
37 views

How should I approach designing my btrfs pool/s? [closed]

I am vaguely familiar with a few COW/modern filesystem concepts, and am nowhere near an expert or even beyond neophyte status when it comes to btrfs. I've just installed Rockstor on a machine I intend ...
0
votes
0answers
24 views

Display btrfs subvolume tree

Is there a way to make a btrfs subvolume tree like what is shown below? (Only subvolumes - no regular directories or files.) # tree /mnt/1 /mnt/1 ├── a ├── snapshot │ ├── a │ └── subv └── subv ...
4
votes
2answers
49 views

btrfs filesystem end offset (image size)

I have a btrfs filesystem of about 7G in a 10G image file img.btrfs (I shrank it using btrfs fi resize -3G /mnt). How can I find the total size (end byte offset) of the filesystem, so that I can ...
1
vote
0answers
19 views

btrfs device add: different mount options than for seed?

I have a btrfs seed device, created with mixed data+metadata (mkfs.btrfs --mixed), and also --metadata single. This device is read-only. When doing btrfs add device /dev/sdc1 /mnt, is it possible to ...
1
vote
0answers
76 views

ssd caching in loop device on btrfs

I have an ssd and 2TB hard disk. The ssd is used for the root filesystem which uses only around 20G of the 120G available. Is there a way to use an image/loop on the root filesystem (btrfs) as a cache ...
2
votes
2answers
32 views

Conceptualizing btrfs - understanding snapshots, and space used

Just starting to learn about btrfs and considering switching. My current thought of btrfs is that operates pretty much like git, with everything tracked, and a commit happening every 30 seconds after ...
3
votes
1answer
24 views

Using btrfs to sandbox programs

First, for this post, I'm using the term sandbox to really mean separation of filesystem changes only. Neither of these methods would: isolate processes in the sandbox from interacting with other ...
1
vote
1answer
61 views

How do you mount a specific btrfs subvolume?

Suppose I start with a non-btrfs system and then add a secondary drive that I format as btrfs. How would I mount /var/log on a subvolume of the new drive instead of on the original drive? Is this even ...
2
votes
1answer
63 views

Is BTRFS saying that my HDD is dead?

I noticed that my HP N54L was laboring and discovered that dmesg was reporting this: [ 81.945530] btrfs read error corrected: ino 1 off 16685977600 (dev /dev/sdb sector 2636776) [ 82.010023] ...
3
votes
1answer
47 views

Are tars deduplicatable at the block level?

Quite simply, when a tar file is made on disk, would the extents be deduplicatable with extents inside and/or outside of the tar? I am asking in the theoretical sense, so if the extents of data are ...
2
votes
1answer
61 views

Is `--reflink=auto` safe to set as default for cp?

I am currently a user of BTRFS and would like to take advantage of the CoW such that when files are copied on the same btrfs filesystem, they are automatically deduplicated by reusing the existing ...
2
votes
1answer
39 views

Show mounted btrfs subvolumes?

Is there a command to show which btrfs subvolumes are mounted on each mountpoint? Alternatively, is there somewhere (e.g. in the /proc or /sys trees) where the information can be read? The output ...
1
vote
0answers
35 views

btrfs - snapshot of a parent subvolume excludes child subvolumes?

Let's say I want to exclude ever-changing logfiles from backups. Parent subvolume / Child subvolume /log I snapshot /. Looking at the snapshot, /.snapshots/today/log will be empty, correct? This is ...
0
votes
0answers
27 views

Whats the right way of Data/Subvolume structure/hierarchy management using btrfs

My intention is to switch my filesystem from ext4 to btrfs. Currently I have 2 space disks with 4 TB each. I allready set them up in raid1 (using mkfs.btrfs -d raid1 /dev/sdx /dev/sdy) Then there ...
0
votes
1answer
68 views

How to mount btrfs partition?

I've installed xbian distro on RPi. I want to edit the files in my SD card using my computer, Ubuntu 14.04. However, when I insert the SD card, the Ubuntu cannot mount the Xbian partition, and gives ...
2
votes
1answer
35 views

Copy BTRFS partition to external harddisk BTRFS partition including snapshots

I have a question about backuping BTRFS partitions. Assume I have a BTRFS partition on /dev/sda1 and an external harddrive with BTRFS on /dev/sdb1. I already found out I can make an initial backup ...
0
votes
1answer
86 views

Filesystems not mounting on boot?

I'm getting this error after rebooting: Scanning for Btrfs filesystems * Stopping Read required files in advance [ OK ] * Starting Mount filesystems on boot ...
2
votes
0answers
90 views

Restore Btrfs snapshot from subdirectory to parent

I have a Btrfs partition which has a single subvolume at the top level (/root). It has subvol=root option in /etc/fstab. Every week, I take a readonly snapshot into /root/snapshots/... using: btrfs ...
0
votes
1answer
155 views

Mounting failed - invalid argument

I've setup a Kali Linux installation on an SD card and created an encrypted LUKS partition with a LVM logical volume inside of it, then created a BTRFS filesystem inside. Almost everything works, but ...
1
vote
1answer
68 views

Can you uncompress a btrfs filesystem?

I found out that you can compress the whole of a Btrfs filesystem by defragmenting it with -clzo or -czlib, but is it possible to uncompress it again? I'm asking because I managed to stop my system ...
1
vote
0answers
27 views

BTRFS - removing drive by devid instead of path

I recently lost a 5 TB drive using btrfs. I had a system freeze (unsure why) while a balance was running. My SMR drive got corrupted. I was able to mount my array degraded and balance my data. ...
4
votes
1answer
139 views

Abysmal general dm-crypt (LUKS) write performance

I am investigating a problem where encrypting a block device imposes a huge performance penalty when writing to it. Hours of Internet reading and experiments did not provide me with a proper ...
3
votes
0answers
34 views

How to find the amount of shared extents on btrfs?

What command can I use to see the amount of shared extents on a btrfs volume. Or better yet, what command gives me the logical size used along with the on-disk size of all extents together?
4
votes
2answers
305 views

Can't boot, task btrfs-transacti blocked for more than 120 seconds, how to fix this?

My computer was set up to boot Ubuntu 15.04 via UEFI. I have two disks. My first disk /dev/sda is a 128 GB ssd formatted as GPT, containing an EFI partition and a btrfs partiton with subvolume @ ...
1
vote
1answer
32 views

Deduplication semantics with btrfs - meta-data differs, file data identical

So I read this Wiki article on deduplication with btrfs. However, it doesn't describe the semantics followed by btrfs deduplication. Assume you have a dozen files. They all contain identical data, ...
0
votes
2answers
31 views

use git to update my local copy with latest btrfs-progs

This is hopefully a very simple git question but I haven't been able to find the answer, most info about git assumes you want to upload and merge changes and my situation is much simpler than this. I ...
3
votes
1answer
61 views

How to get error detection and correction on a single hard drive on linux (with btrfs or other methods)

One of the cool things about btrfs on linux is that it can correct bit rot if it has redundant data because of its per-block checksumming. I can get redundant data by setting up a raid1 with two ...
3
votes
1answer
260 views

Why does btrfs refuse to convert metadata to RAID1

I created a single-device btrfs filesystem. According to the btrfs wiki article on using multiple devices, I should be able to convert that to RAID1 using: btrfs balance start -dconvert=raid1 ...
3
votes
0answers
150 views

Running a btrfs RAID 5 array on Arch Linux

For two weeks, I've been trying to run my Raspberry Pi (model B) as root from a btrfs RAID 5 without success. The RAID runs on three 1TB disks /dev/sda, /dev/sdb and /dev/sdc. The three disks were ...
2
votes
1answer
48 views

Will send & receive also defragment data?

I have heavily fragmented (and 90% full) btrfs partition on my laptop. I'd like to perform defragmentation with the help of identical spare hard drive. I already re-created partition table (GPT) and ...
1
vote
1answer
91 views

How to list files part of a BTRFS block?

On my BTRFS filesystem, I have a problem with block id #43231330304. BTRFS critical (device sda2): corrupt leaf, slot offset bad: block=43231330304,root=1, slot=47 I want to know which files are ...
2
votes
0answers
42 views

What can I do with btrfs “profiles”?

Reading through the btrfs (sub) command documentation, it can "balance only block groups with the given replication profiles", and "convert selected blocks to a given profile", and apparently it ...
0
votes
1answer
55 views

Create subvolume on non-mounted filesystem

I'm working on automating creation of BTRFS filesystems for my purposes in the cloud. The process is a little annoying to be honest, and I'd like to cut out a few steps in the process. My process ...
1
vote
1answer
97 views

How to repair a BTRFS block?

For some unknown reasons, my BTRFS filesystem is corrupted. dmesg prints BTRFS critical (device sda2): corrupt leaf, slot offset bad: block=43231330304,root=1, slot=47 (more than 1000x in the dmesg ...
5
votes
1answer
297 views

How do I figure out what's freezing up my machine?

I am running Arch on this machine: 3.40GHz i7 hexacore (4930K) 16GB DDR3 1600MHz RAM 2xSamsung 840 EVO SSDs in Raid0 (using BTRFS raid) When I run VMware on my Arch with a few VMs (2 ...
0
votes
2answers
40 views

Matching btrfs documentation for the version I have?

I want to see if the formatting details I specified are doing what I thought, and generally inspect things after a huge amount of copying to the btrfs file system. Looking through docs, I see btrfs ...