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

learn more… | top users | synonyms

1
vote
1answer
6 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
11 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
13 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
23 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
36 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
28 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
22 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
39 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
15 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
34 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
21 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
19 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
23 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
41 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
45 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
39 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
29 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
27 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
18 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
49 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 ...
1
vote
1answer
23 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
56 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 ...
1
vote
0answers
58 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
105 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
52 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
22 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
99 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
32 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
250 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
31 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
28 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 ...
2
votes
0answers
44 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
188 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
146 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
75 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
34 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
41 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
75 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
273 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
39 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 ...
1
vote
0answers
25 views

Formatting btrfs for robust metadata

If I make three partitions on a HDD, it appears that the default (which is -m raid1) will only store two copies of each metadata block. Is there a way to store multiple copies, e.g. one on each ...
0
votes
0answers
75 views

Mount BTRFS on Android (usb OTG)

I am using btrFS as a filesystem for my external harddrive. I'd like to use it under Android. Is there any painless way to do so?
1
vote
0answers
31 views

Btrfs: Is there an easy way to find a file by block numbers it occupies?

Say, you have filesystem Btrfs formatted, then you, all of the sudden as it happens, wonder — what files occupy blocks #356 and #789, how you gonna answer this question?
2
votes
0answers
60 views

List all btrfs filesystems and subvolumes in shell

Is there a convenient way to get information on all btrfs filesystems subvolumes without resorting to C, i.e. in POSIX shell ? /sys/fs/btrfs contains info only on filesystems, nothing on subvolumes, ...
4
votes
0answers
60 views

How do I view the btrfs checksum of a file?

Btrfs calculates a crc32c checksum for each file. Is there a way I can view what checksum is stored (as opposed to just reading the file and recalculating it)?
1
vote
1answer
193 views

btrfs RAID1 array shows as two disks

I mounted 2 drives as a RAID1 btrfs array (btrfs v3.12, Ubuntu 14.04). Everything's working fine except nautilus and other GUI-based apps see two disks, both labeled "Raid1". One is mounted (the ...
0
votes
1answer
131 views

btrfs: mounting a subvolume in a different path does not work - No such file or directory

I want to mount the subvolume in a different directory on the @ subvolume... should be possible or did I miss something? # btrfs subvolume create /foo # mkdir -p /mnt/storage1/foo # mount -t btrfs ...
1
vote
0answers
122 views

How does enabling btrfs quotas impact the system?

I use btrfs snapshots quite a bit, and one of the things that interests me is how much space a given snapshot takes up - or to be more specific - how much exclusive data a btrfs snapshot is taking up, ...
0
votes
0answers
118 views

encrypted btrfs RAID1 array fails to mount at boot - open_ctree_failed

I have an encrypted btrfs RAID1 array set up as my /home directory on a fresh install of Linux Mint 17.1. At the Plymouth screen during boot, I enter my password for the two drives, and then receive ...