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

learn more… | top users | synonyms

0
votes
0answers
13 views

BTRFS, Files on a single drive in array but keep 2-parity?

Is it possible to setup a BTRFS array of disk but tell it to keep files on individual disks instead of stripping them and still keep a 2-parity? The idea is that if three drives die, the files on the ...
0
votes
1answer
44 views

how to fix bit rot / back up strategy

I'm planning to backup my personal file on a NAS (which will use the btrfs filesystem). It's a cheap nas so unfortunately no ECC ram in it. In my backup strategy the will be other copies of the files ...
1
vote
0answers
16 views

How do I get the current subvolid of a mounted btrfs?

How do you get the top level subvolid of a mounted btrfs? I want the actual subvolid that is mounted at this moment and not the default subvolid (which could be different.)
0
votes
0answers
33 views

Install Ubuntu on USB within VirtualBox

In order to test the stability of Btrfs-RAID1 I wanted to install Ubuntu on two USB sticks from within Virtualbox. What I would like to achieve: Having a btrfs-based RAID1-System that boots on ...
2
votes
0answers
45 views

Why is moving files between btrfs subvolumes an expensive operation?

From what I understand, btrfs subvolumes share the same file system "storage", so I was surprised to know that moving files between different subvolumes is an expensive operation, like moving between ...
0
votes
1answer
13 views

Documentation for BTRFS shorthand?

I came across this post where the answerer wrote btrfs sub snap -r fs snapshot among other things, where subvolume and snapshot were substituted for sub and snap. Sure enough, those commands work, ...
0
votes
0answers
20 views

BTRFS delete missing drive, ignoring I/O errors

I have a BTRFS file system, distributed on 3 drives (no raid). One of my drives died yesterday. I can still mount the file system using sudo mount $path -o degraded,ro About 120k files (out of ...
0
votes
0answers
24 views

Btrfs I/O errors - crappy disks or btrfs fault?

I'm using btrfs for quite a long time, but I wasn't using any more advanced features before. Recently I've moved to btrfs on all drives, on all machines, turned on snapshots, raid and all the cool ...
0
votes
0answers
18 views

BTRFS RAID10 improperly handling broken device

Today my personal hypervisor experienced a harddrive failure. Plain and simple, one drive completely stopped responding and any attempts to access it resulted in I/O errors: [root@Helium ~]# ...
0
votes
0answers
69 views

Repair btrfs RAID? Error: Inappropriate ioctl for device

I have a RAID5 btrfs with 8 disks and a hard disk died and just disappeared from the list. Now I tried removing it but got an error: ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl ...
1
vote
1answer
55 views

expose Btrfs snapshots with samba4 and vfs_shadow2

I'm trying to implement the vfs_shadow2 module with samba 4.2 running on Fedora 22 to get windows explorer feature "previous versions" on clients to work. The shared "folder" is an Btrfs subvolume in ...
0
votes
0answers
12 views

How to apply a snapshot of root filesystem which is BTRFS?

I have a snapshot of the root filesystem. The following is the output of my btrfs subvolume list / command : ID 257 gen 90 top level 5 path root ID 258 gen 91 top level 5 path home ID 263 gen 44 top ...
0
votes
0answers
60 views

partclone.btrfs thousands of correctable csum errors

I just cloned a btrfs file system from one disk to another using partclone.btrfs --dev-to-dev. Afterwards, I mounted the cloned file system and started a scrub to see if everything is in order. After ...
0
votes
1answer
208 views

GRUB2: /boot as BTRFS subvolume

Aside from /boot, all my partitions (including root, /) are BTRFS subvolumes. I'm switching to BTRFS RAID1, and for the sake of integrity, want to include /boot within the BTRFS partition. Preferably ...
1
vote
0answers
19 views

btrfs not distributing data to smaller disks in 4-disk RAID1 array

I have a btrfs filesystem composed of four disks of sizes 3TB, 3TB, 1TB, and 1TB, configured in a RAID1 (data and metadata). I've noticed that btrfs doesn't seem to want to use the smaller disks at ...
0
votes
2answers
66 views

Cannot remove directory on btrfs

There is an object on btrfs file system called "????????? ??????" which probably some improperly deleted or copied temporary file or directory. And which can't be removed with common commands: rm, rm ...
1
vote
1answer
51 views

BTRFS size on disk 200x larger than actual size

Why is BTRFS so grossly misquoting the size of small files on my filesystem? [pi@rpi scipy]% cat __init__.py | wc -c # literal byte count 4729 [pi@rpi scipy]% du --apparent-size -h ...
0
votes
1answer
87 views

Why does BTRFS seem to have comically large allocations for metadata? [duplicate]

I've recently discovered the marvel of a modern filesystem, btrfs. After playing with it for a few hours, I decided to dive straight in and converted my entire /home partition using the btrfs-convert ...
1
vote
1answer
181 views

How does btrfs scrub work and what it does

What exactly btrfs scrub does? According to the manual page which is totally unclear it does some error checking? What kind of error checking? How much reliable it is? Is it able to recover some ...
0
votes
2answers
337 views

btrfs convert from raid1 to raid5

Is it possible to easily convert a btrfs raid1 to a raid5. I mean at the end of the day. Its really just two mirrored drives. So I would think this should be easy to do. I want to now have 3 3TB ...
0
votes
0answers
34 views

Is a btrfs RAID1 mountable if the added device isn't available/offline/failed/degraded?

Assume I created a RAID1 with btrfs's functions (btrfs device and btrfs balance subcommands instead of mdadm) like so: btrfs device add /dev/sdxZ /dev/sdxY btrfs balance start -dconvert=raid1 ...
0
votes
1answer
18 views

Is there a difference between writing to a btrfs snapshot or to its original?

After creating a btrfs subvolume produces two directories (one representing the subvolume, the other the writable snapshot). When writing to one of them, the changes are not reflected in the other, so ...
0
votes
0answers
81 views

After a crash computer will not boot with btrfs drive

So since I started using btrfs, when my computer crashes (mainly because battery ran out but on any crashe i had up until now) it does not boot anymore (the issue seems that the kernel cannot mount ...
2
votes
1answer
125 views

btrfs restore specific directory

I have a damaged btrfs filesystem, and I am using btrfs restore to restore it. It seems to work. The problem is that the damaged filesystem is quite huge, and I need only to restore just one ...
2
votes
1answer
49 views

Understanding metadata usage behavior in a newly converted btrfs filesystem

I have a 5 TB hard drive with 3.3 TiB (as reported by du) of media files in 119k files and directories; the average file size was about 28 MiB. I converted the ext4 partition into btrfs with ...
0
votes
2answers
224 views

What would be the correct mount options for a seperated btrfs /home partition in /etc/fstab?

After I read a bit about Btrfs I figured out it has many features I would like to use in the future, like snapshots, compression, defrag, enhancemence for SSD drives and so on. So I decided to ...
1
vote
1answer
94 views

Btrfs volume management for normal home user

Btrfs is by design for enterprise use, but that doesn't stop normal home users from using it. By normal home user, I mean those people who don't use complicated setup like mirroring, or any level of ...
2
votes
2answers
209 views

Btrfs RAID1 SSD + non-SSD

My laptop has two disks, a SSD and a traditional magnetic disk. I plan to make a partition on the mag disk equal in size the SSD and set up BTRFS RAID1. This I know how to do. The only reason I'm ...
0
votes
0answers
29 views

Error when installing BURG on BTRFS

I can't seem to install BURG on BTRFS. I get the error: /usr/bin/burg-probe: error: cannot find a device for /boot/burg (is /dev mounted?)
2
votes
1answer
906 views

Btrfs: RAID 1 on 3+ devices

I currently have a Btrfs partition with four devices: three 3 TB drives and a 4 TB drive. Data and metadata are RAID 10, so I have 6 TB of usable space, which is almost full. I'd anticipated that RAID ...
1
vote
1answer
45 views

How to rsync the / folder properly?

I have a btrfs snapshot of / and I want to rsync it with my current / folder. As form of "rollback" if you want. My question is what folder should I avoid for instance I should use -x option to ...
0
votes
0answers
59 views

How many volumes should I add in my btrfs?

How much overhead does a single physical partition add to a btrfs volume? ps aux | grep btrfs | wc -l results in 102. I have 4TBx4 in my NAS and 16GB RAM and Core i3 processor. The NAS also hosts a ...
1
vote
1answer
236 views

How to delete a file in all snapshots on a btrfs system?

I've set up a sophisticated backup scheme with hourly, daily, weekly, monthly backups that take up (thanks to the glory of the btrfs cow-filesystem) almost no extra space on the device. But ...
2
votes
1answer
127 views

Ubuntu btrfs snapshot cannot mv into /home

I want to be able to take a snapshot and restore it in real time. This works in Fedora and does a live "rollback" : btrfs subvolume snapshot /home /home/snapshot mv /home/snapshot /home But in ...
3
votes
1answer
1k views

Why shouldn't I use btrfs for /home?

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 ...
0
votes
0answers
30 views

Files in $HOME losing executable bit

On my laptop running Arch, I have a bunch of git repositories cloned under ~/git. My problem is that from time to time (maybe once in a month or so), all the executable files inside the clones will ...
0
votes
1answer
201 views

btrfs check: “Couldn't open file system”

When I run btrfs check /dev/sda1, it returns "Couldn't open file system," whether /dev/sda1 is mounted or not. Why? (cf. this)
2
votes
1answer
585 views

Finding files with BTRFS Uncorrectable Errors

I have a question concerning unrecoverable errors on a BTRFS file system. Specifically, I've run a BTRFS Scrub recently after experiencing a problem with one of my RAM sticks and it seems to have ...
0
votes
1answer
141 views

BTRFS filesystem, compression and copy on write

I'm planning about moving from etx4 to BTRFS filesystem on my pc and backup server. I'm very interested in the BTRFS snapshot feature (I have understood it uses the copy on write feature) and the ...
0
votes
0answers
48 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 ...
1
vote
2answers
565 views

What is Btrfs's disk space caching?

I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?
0
votes
0answers
24 views

BTRFS & F2FS userspace utilites cross compilation

Is there any weblink/document which describes the steps to cross-compile btrfs & F2fs user space utilities ? Any steps ? special tuning suggestion for arm based board.(AM335x) ?
0
votes
0answers
33 views

What are btrfs snapshot and subvolume restrictions speaking in terms of read/write access instead of access and data sharing?

The btrfs subvolume manpage tries to explain which type of access is granted to btrfs subvolumes and snapshots. Unfortunately it exclusively uses terms like "access", "use just like a directory" and ...
1
vote
1answer
175 views

how to delete btrfs snapshot?

sudo btrfs subvolume show / outputs / Name: @ uuid: 1f0da442-cdf3-144c-a4ce-f6c06248cfde Parent uuid: - Creation time: 2014-08-16 19:06:51 Object ...
1
vote
0answers
115 views

Online Drive Replacement: BTRFS with RAID 6

on a testing machine I installed four HDDs and they are configured as RAID6. For a test I removed one of the drives (/dev/sdk) while the volume was mounted and data was written to it. This worked ...
1
vote
1answer
45 views

How come system snapshots are so small in size?

So let’s say a have a file called bob with the size of 10GB in /home. I make a snapshot of /home and delete the original bob file. However I can still access the bob file because I have a snapshot it. ...
2
votes
1answer
193 views

Mirror / backup laptop btrfs drive to sometimes connected external USB disk

I have a laptop with an internal drive using Btrfs. There are several subvolumes and snapshots on here. I want a copy of this drive to be made periodically to an external USB disk of approximately the ...
-1
votes
1answer
175 views

BTRFS or LVM heterogeneous RAID

I'm entertaining creating a largish (3.5TB+) backup server for my family. I already own enough hardware, and I don't want to buy any more right now. The config I envision look like this: Two 1TB ...
0
votes
0answers
22 views

How to figure out which partition number an entry in the list has in the Fedora 20 installation routine?

I started the Fedora 20 installation image which I dded onto an USB stick. During the installation I started wondering whether it really is impossible to determine the parition number or UUID of ...
0
votes
0answers
116 views

It is possible to minimize size of a btrfs sparse file with btrfs filesystem resize and truncate?

Motivation: Assume I have created an oversize sparse file with truncate -s 4T test.img, mounted it over a loop device and put inside 1M files with 100 GB size together. One can assume that btrfs put ...