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

learn more… | top users | synonyms

3
votes
0answers
46 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
33 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
21 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
16 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
18 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
0answers
35 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
139 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
31 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
16 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
27 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
22 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
42 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, ...
3
votes
0answers
34 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
116 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
62 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
49 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
44 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 ...
2
votes
1answer
74 views

systemd mount 'rootfs' according to '/proc/cmdline'

SETUP Im running Debian 8 (jessie/testing) amd64 with systemd. On my system partition containing a btrfs filesystem, I do have the following layout: /dev/sda1 |-root |-root_snapshots/ ...
1
vote
1answer
29 views

How to delete btrfs subvolume?

I have a snapshot that I'd like to delete: 04:03:21::mlissner@pounamu::~ ↪ sudo btrfs subvolume list / ID 257 gen 267078 top level 5 path @badroot ID 258 gen 267151 top level 5 path @home ID 422 gen ...
1
vote
1answer
59 views

Creating a btrfs subvolume mounted under another file system

At the moment I have a / partition with btrfs and /home partition with xfs. I would like to take advantage of btrfs snapshots for certain directories under /home, e.g. /home/robert/.wines . Apparently ...
4
votes
1answer
41 views

How to check (simulate), how much space will be freed after I remove a btrfs subvolume?

The question is not trivial. BTRFS is COW file system and one object stored on hard disk can be referenced by many files. I use BTRFS snapshots as a part of a backup solution on my production ...
2
votes
1answer
76 views

Can BTRFS stripe RAID arrays?

I've been using an Ext3/4+lvm2+mdadm file system setup for about 5 years on a file server. This has grown (and moved processors a couple of times) and I've moved disks between systems ...
1
vote
1answer
45 views

Can you do a btrfs snapshot of a live system?

I am planning on giving btrfs a try soon, and what I want to know, and can't seem to find online is this: Can you do a btrfs snapshot on a running system if the snapshot is not just of some small ...
1
vote
0answers
34 views

When using btrfs, why “Size”, “Used” and “Avail” values from df do not match?

I have similar problem like unix.stackexchange.com/questions/37489/ btrfs filesystem show Label: none uuid: 3fdeaf6d-ca88-4cc8-8405-f882f02693f7 Total devices 3 FS bytes used 1.53MB devid ...
2
votes
0answers
37 views

How do I layer compression on top of encryption on top of BtrFS, per-file?

BtrFS should support this really, but it doesn't. So ECryptFS looks like it will fill the gap. The only thing is, how would I layer compression on top of this? Reasons for compression on top of ...
2
votes
0answers
19 views

Configure where GRUB2 environment block is located

I have Arch, Ubuntu, and GRUB2 installed on a BTRFS filesystem. I'm aware that GRUB cannot write to BTRFS for a variety of good reasons, and therefore cannot save environment variables to ...
2
votes
0answers
45 views

On which disk is a file located in a btrfs RAID-1 array/filesystem?

I have a btrfs array with 5 disks in RAID-1 mounted on /mnt/array: # btrfs filesystem show /mnt/array Label: 'nicefilesystem' uuid: censored Total devices 5 FS bytes used 4.95TiB ...
1
vote
2answers
247 views

Clear all Snapper snapshots

OpenSUSE (among other distributions) uses snapper to take snapshots of btrfs partitions. Some people think the default snapshot intervals take up too much space too quickly, but whether or not you ...
3
votes
1answer
105 views

Mount options for BTRFS on an external USB drive

I've formatted my external HD with BTRFS (aware of the risks). What are options I should use to increase failure tolerance on sudden power loss to the drive?
0
votes
2answers
58 views

Defrag range ioctl not supported in this kernel, please try without any options

I'm trying to compress my BTRFS filesystem for all the files I added before adding compress=lzo to /etc/fstab. I've booted into a live CD and run the following: sudo mount /dev/mapper/root /mnt sudo ...
1
vote
1answer
179 views

install with BTRFS: subvolume/partition scheme?

I'm fairly new to both GNU/Linux and btrfs, but I've decided I want to make my next computer (a desktop with one HDD) use Linux with btrfs as the filesystem. However, I've seen some advice online that ...
6
votes
2answers
515 views

Slow access to btrfs on LVM/

We have this setup on our server: Ubuntu 14.04 (used to be 12.04) 10TB RAID-6 system LVM (one VG, two LV) ext4 partition ( ~2TB) Btrfs partition ( ~8TB) After a reboot last month the system was ...
4
votes
1answer
99 views

ideal btrfs storage scheme to incorporate external USB HDD as backup media

Is there a way to leverage btrfs's advanced features (COW, snapshots, etc.) to continuously backup/mirror my main storage volume to an external USB HDD?
2
votes
1answer
499 views

Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting

Whenever I try updating grub, I get this error: # grub-install /dev/sda Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting. and # grub-mkconfig -o ...
3
votes
1answer
633 views

Resize a btrfs partition inside a logical LVM volume

Following derobert's trick to resize the underlying filesystem when resizing a LVM volume: lvm> lvextend -r -l +100%FREE /dev/VolGroup00/lvolhome fsck from util-linux 2.25.2 /sbin/fsck.btrfs: ...
3
votes
0answers
240 views

Is btrfs suitable as backup filesystem?

Right now I have a pretty traditional backup filesystem structure on top of ext4. Every time a backup is made, a new folder backup-DATE is created to which files are rsync'ed (with hardlinks made ...
0
votes
1answer
46 views

CROSS compilation of BTRFS file system

We are developing Beaglebone black based custom board, We are planing to use eMMC for storage. To decide the file system on the eMMC we want to cross compile Btrfs user space utility, Does anyone know ...
2
votes
1answer
617 views

btrfs ERROR: error during balancing - No space left on device

My Kubuntu 12.04 system ran out of space on on the root partition and will not boot. The command df -h shows a lot of space available (with only 37% used): /dev/sda2 45G 17G 29G 37% ...
2
votes
0answers
47 views

BTRFS - Raid incomplete after balancing

I have two 3TB drive that are formated as btrfs and mounted on /media/andy/btrfs as one drive. I run btrfs balance start -dconvert=raid1 -mconvert=raid1 /media/andy/btrfs/ which takes forever. It ...
4
votes
4answers
221 views

BTRFS data integrity (CRC32c) and HDD data integrity (sector ECC)

I'm new to BTRFS and I'm trying to understand why BTRFS use CRC32c while HDD already have sector level data integrity ECC. Is it because BTRFS don't relay on media to have data integrity protection? ...
1
vote
1answer
120 views

run btrfs balance with cron

Since I run today in a problem with a full disk, which turns out is not unbalanced. Which you can fix with btrfs balance. So my question is: Is there any risk by ruining this by a cron job? (in ...
0
votes
1answer
730 views

Is partition table type “loop” a good or bad idea on BTRFS?

I have started to convert my disks to btrfs and following tutorials, most of them created the filesystem directly on the device instead on a partition. The file system is working and stores data but ...
1
vote
1answer
63 views

fs synchronization among desktops

I have several workstations (laptops and desktops). I'd like to synchronize files among them such that each one is a mirror of the other. I used to run an NFS server and share files out, but that ...
0
votes
0answers
151 views

BTRFS Raid1 on SD card and HDD

I have the / partition on a btrfs SD card /dev/mmcblk0p2. /boot is on vfat /dev/mmcblk0p1). It's a Raspberry Pi running Arch Linux and its fstab looks like so: /dev/mmcblk0p2 / btrfs ...
2
votes
0answers
84 views

How do I align my new btrfs default subvolume with the real root of my filesystem?

I rolled back my system by using snapper rollback Unfortunately this caused my current default volume to not be at the root of my filesystem anymore. As you can see in this screenshot: The ...
1
vote
1answer
122 views

Why does ZFS large file not instantly like btrfs?

Copying a 1TB disk image on a btrfs partition with cp takes less than a second on my Ubuntu 14.10 amd64 with Linux 3.16.0. Why does it take at least 5 minutes and requires > 1 GB to be read on a ZFS ...
2
votes
1answer
40 views

Is it possible and how to merge identical files between different snapshots in a btrfs file system?

I regularly use btrfs's snapshot to backup the whole system, but it's redundant to have identical files between different snapshots. Commonly, for example, I took a snapshot of @ as ...
2
votes
1answer
34 views

How to free up space on non-responsive full btrfs system?

I copied files to a btrfs raid-1, which turned out not to fit. When the drives became full, they also became unresponsive. ls [directory], never finishes. I tried rm ...
1
vote
0answers
233 views

btrfs balance fails due to enospc error

[taken over from stackoverflow since I figured that was probably the wrong place] I am currently testing btrfs as a possible replacement for my NAS running ZFS. I created 4 devices, 20GB each, and ...
2
votes
0answers
268 views

“cache and super generation don't match, space cache will be invalidated” what does this means and how to repair it?

I'm having a little problem trying to grow a btrfs partition in my system, namely: sudo btrfsck /dev/sdb9 [sudo] password for braiam: Checking filesystem on /dev/sdb9 UUID: ...