btrfs is a B-tree based, copy-on-write filesystem for Linux. It's main features include snapshots, checksumming of data and filesystem level RAID support. It's similar to [tag:ZFS].

learn more… | top users | synonyms

9
votes
2answers
2k views

BTRFS: deleting a volume

A week ago, I created a BTRFS pool using two flash drives (32GB each) with this command: /sbin/mkfs.btrfs -d single /dev/sda /dev/sdb. Then I realized that I should have used the partitions /dev/sda1 ...
0
votes
0answers
25 views

BTRFS: “no space left on device”, but btrfs command says otherwise

I am using BTRFS to create a RAID0 volume from 2 disks. Both are on an AWS EC2 instance with 30 GB space available each. The command I used to create the filesystem is: btrfs -d raid0 -L MYLABEL /dev/...
0
votes
0answers
23 views

btrfs, Force bad checksum recalculation

A large, USB-connected HDD with btrfs contains a 1TB file (a disk image). The first btrfs scrub after writing that file found 3 logical bad blocks developed somewhere in the middle of that file: [ ...
4
votes
1answer
29 views

Linux no modify time (nomtime)

Is there a way to disable the mtime of an filesystem? There is an Filesystem independend noatime Option, but no "nomtime". Also in the Filesystem specific documentation for ext4 and/or btrfs i couldn'...
1
vote
1answer
29 views

Seeking inside file performance under BTRFS with LZO compression

I am planning to use btrfs on a 50 TB RAID6 array and I want to enable lzo compression. This is for bioinformatics setup where lots of seeking within large (1 TB -- 20 TB) files occur. (The software ...
1
vote
2answers
2k views

NFS on Btrfs on multi-devices .vs. Glusterfs on distributed-volume?

I considering a storage for Email. This storage system run on my own private cloud (already replicated), then i does not care about replication. I'm thinking about 2 options: 1- I will create few "...
15
votes
7answers
4k views

Is btrfs production ready?

I've seen a lot of information on btrfs lately. I have been considering ext4 for my next filesystem, but am tempted by btrfs instead. How widely used is btrfs? What are the pro's and con's?
0
votes
0answers
58 views

btrfs will not delete device although there is enough unallocated space

I have a btrfs filesystem set up with 2 partitions - each 2,7 TB. Btrfs version is 4.4 btrfs version --> btrfs-progs v4.4 on Ubuntu 16.04 This is the current status and the result of a previous ...
2
votes
0answers
42 views

btrfs increase raid capacity by replacing disks (and not adding disks!)

I'm very excited about the new features of btrfs and would like to start tesing it. Before I get started, I would like to ask if btrfs supports increasing raid capacity by replacing disks by bigger ...
0
votes
1answer
20 views

Add menu entry in grub2 for os on btrfs partition

How can I add a menu entry in grub 2 for an os on a btrfs partition? Currently update-grub does not detect an os on a btrfs partition.
2
votes
2answers
358 views

rsnapshot vs zfs / btrfs snapshots

Currently I'm using rsnapshot to implement a daily / weekly / monthly backup scheme on an external disk. Lately I've been reading alot about copy-on-write file systems like zfs and btrfs. I quite like ...
0
votes
0answers
15 views

Fixing smartd errors on btrfs raid 10

I had some errors during smartd test May 5 10:08:05 c3po smartd[856]: Device: /dev/sdb [SAT], 236 Currently unreadable (pending) sectors May 5 10:08:05 c3po smartd[856]: Device: /dev/sdb [...
18
votes
7answers
4k views

Which filesystem for large LVM of disks (8 TB)?

I have a Linux server with many 2 TB disks, all currently in a LVM resulting in about 10 TB of space. I use all this space on an ext4 partition, and currently have about 8,8 TB of data. Problem is, I ...
7
votes
3answers
2k views

Which filesystems offer snapshot functionality for users to recover data?

I'm working on a project that will teach linux to youth. Knowing they will have a tendency to delete or corrupt items in their home directories we are looking for a good snapshot option. We will not ...
4
votes
0answers
58 views

Can Btrfs use SSD for metadata and leave bulk data on HDD?

is it possible for Btrfs to use SSD for metadata only & leave bulk data on less costly storage such as HDD? I refered to this page Using_Btrfs_with_Multiple_Devices and can not find a solution. ...
0
votes
0answers
59 views

Merge btrfs subvolumes of lxc container

Problem: I've made some snapshots of an lxc container in the past. When I tried to make one earlier using the command lxc-snapshot -n base -c commentfile it echo'd Container is not defined. I ran that ...
2
votes
1answer
104 views

Is this btrfs snapshot removal performance normal?

I have several boxes running Debian 8, dovecot and btrfs. I'm using btrfs snapshots for short term backup. For this purpose I keep 14 snapshots of the mail subvolume. Performance is OK until it comes ...
2
votes
2answers
162 views

How to find the file at a certain btrfs inode

I have a corrupt file according to btrfs BTRFS info (device sdb1): csum failed ino 367 off 310013952 csum 1601485211 expected csum 3692975992 I assumed ino 367 means inode 367, so I can use find ...
0
votes
1answer
17 views

BTRFS remove directory from snapshot

There is the: btrfs subvolume delete <subvolume> command for deleting snapshots, but is there any solution if you need to delete a single directory from 60 snapshots? Not possible with rm -...
0
votes
1answer
312 views

Why is zfs/btrfs recommended for an lxd host?

Note that for maximum performance, it's recommended to have /var/lib/lxd on a btrfs filesystem or setup ZFS or LVM and configure LXD to use a ZFS pool or LVM VG. Source Why is that? I.e. How ...
0
votes
0answers
100 views

Cannot remove stale file on btrfs

I have a btrfs filesystem which in one directory has the following entry: -????????? ? ? ? ? ? 1448367601.M899489P12992.mst19,S=8958,W=9072:2,S I cannot remove this file, every operation ...
0
votes
0answers
107 views

Btrfs multiple devices with dm-cache

Unlike md-raid, when you create a btrfs file system with multiple devices, there is no special block device exposed (ex. /dev/md0). With the lack of built in cache support (ex. L2ARC), can one set up ...
1
vote
2answers
31 views

Copying between lzo compressed BtrFS's: de/re-compressing?

I'm copying a large number of files between two lzo compressed BtrFS filesystems on different drives mounted on the same machine. It appears that the files are being de/re-compressed. Is there a way ...
2
votes
0answers
118 views

btrfs write operations hang when appending to files

When writing sequentially to files on my large-ish (70 TiB) btrfs filesystem, I am noticing that something is causing prolonged write blocks (seconds to several minutes). This is inconvenient at best ...
1
vote
0answers
133 views

Can't mount BTRFS with write permissions. Btrfs check crashes (Core dumped)

I was using btrfs filesystem for some time on one of my external drives mainly to test deduplication and everything was working just fine. Unfortunately yesterday when I mounted the partition I ...
1
vote
2answers
62 views

Do I need btrfs scrub if a lower layer also scrubs?

I have a multi-TB btrfs made up of virtual disk images that live on NetApp NFS filers. The data are redundant at the NetApp level, so the btrfs is RAID-0. In addition to providing redundancy, the ...
1
vote
1answer
132 views

How much usable space will a 2TB+2TB+3TB+3TB btrfs filesystem have with data in RAID-1 mode?

I have a pair of 3TB drives in a btrfs filesystem, and I wish to expand this filesystem by adding two more 2TB drives, using the btrfs device add command. Data in the current filesystem is mirrored in ...
0
votes
0answers
143 views

I'm unable to mount a btrfs partition

I had a raid 5 array of 3 disks using btrfs (raid provided by btrfs) one of the disks was damaged and I replaced the disk via: btrfs device add /dev/sdc /media/raid/ btrfs device delete missing /...
3
votes
2answers
411 views

Removing files takes too long

Short version: rm -rf mydir, with mydir (recursively) containing 2.5 million files, takes about 12 hours on a mostly idle machine. More information: Most of the files being deleted are hard links to ...
1
vote
1answer
211 views

How to btrfs check a root partition

I'm sure the reason I'm having a brain fart is because it's late, but how can I go about performing a btrfs check on the root partition? The device needs to be unmounted, which can't happen because ...
0
votes
0answers
29 views

btrfs - how list/find snapshots by age

I've been using a simple shell script to manage my snapshots and I'm happy with it -- so please don't suggest that I start using snapper or something else -- but I'm now looking to increase the ...
11
votes
3answers
4k views

Proper way of handling LXC containers on btrfs

Lets say we have one server with lxc installed, and a lxc container used for as a base img /var/lib/lxc/ubuntu_base. For simplicity let's forget the config changes after copying the base img. some ...
1
vote
0answers
182 views

LXC Snapshotting on Ubuntu 15 and BTRFS file backend

i have a dedicated server with Ubuntu 15 Wily and i want to play/study with LXC. My main goal is to snapshot and clone containers without stopping them, and for so i have formatted a partition with ...
1
vote
1answer
218 views

More available space than expected using btrfs RAID10?

I had just created a btrfs RAID10 array in my Ubuntu 14.04 box for the first time by using the command: mkfs.btrfs -d raid10 -m raid10 /dev/sda /dev/sdb /dev/sdc /dev/sdd My 4 hard drives are each ...
0
votes
1answer
150 views

Multiple btrfs volumes with different RAID levels on the same devices

I have two disks - one xGB and one (2x)GB. I would like to have one mountpoint from these disks under raid0 and one under raid1, spread over the total available space. Is that possible with btrfs ...
1
vote
0answers
112 views

Why is ReFS not appropriate for Work Folders

I'm looking to setup a NAS for a small team. Two main requirements are using it as an archive and a folder syncing. Because I want to make sure that the archive is not prone to bit rot, I've came to ...
-1
votes
1answer
373 views

Ubuntu + ZFS vs Rockstor [closed]

I have a personal fileserver at home with 6 HDs: 1 500 GB one for the OS 1 4 TB one for temporary data four 2 TB ones that we want to configure in some sort of RAID 5 fashion It looks like I have ...
2
votes
1answer
46 views

BTRFS new device cannot be added

I have a raid10 setup with btrfs with 5 disk currently: Total devices 5 FS bytes used 6.89TiB devid 1 size 3.64TiB used 2.83TiB path /dev/sde devid 2 size 3.64TiB used 2.83TiB path /dev/sdd ...
5
votes
4answers
2k views

Backup/Clone a btrfs partition

Is it possible to backup a btrfs partition verbatim (including all the shared structures which save space by marking snapshot trees as COW) to another one? For instance, I'd like to backup my root ...
2
votes
2answers
224 views

ext. 2-bay USB-Drive with RAID: btrfs RAID vs built-in RAID

For backups I want to use an external USB3 Drive: two HDD with RAID 1 (mirror) in one 2-bay enclosure. As filesystem I'll use btrfs because of subvolumes and checksums. Performance isn't important, ...
2
votes
1answer
87 views

Using grml with btrfs

I'm trying to boot an ISO using grml and grub on a BTRFS root. However, after selecting the boot option from the menu grub (or some subsequent loader) fails to find the iso /@/boot/grml/ubuntu-14.10-...
6
votes
1answer
894 views

What are my prospects of recovering old version of file on BTRFS

I've accidentally overwritten an important file on BTRFS. Knowing that this filesystem is COW, it should be in theory possible to recover an old version of the file. Unfortunately googling didn't ...
-1
votes
1answer
182 views

Balanced btrfs filesystem using different amounts of space on each disk

I recently upgraded a desktop server with 2 drives (1TB+3TB) drive to one with 1x1TB and 3x3TB drives. In the process, I installed btrfs and raided the 3TB drives together, leaving the 1TB drive as a ...
13
votes
5answers
6k views

btrfs-enabled backup solution

With btrfs hitting production in Oracle EL 14th this month (together with working fsck and scrubbing from Linux 3.2) I was thinking of redesigning my current backup solution to utilise it. Note that I'...
1
vote
0answers
113 views

btrfs send from a 3tb drive ti btrfs-receive on a 1tb drive

I have question about the nature of a subvolume Snapshot sent and received. I have 2 3tb raid1 drives with only about 300gbs on them. I have a spare 1tb drive I placed in an enclosure for backups. ...
3
votes
1answer
72 views

Does btrfs share file parts across snapshots?

I know that modern filesystem snapshots take very little space until they start to diverge by changes in files. However, I have been unable to identify at which granularity btrfs manages the changes. ...
2
votes
2answers
4k views

Linux-on-Linux KVM: Which filesystem should I use for guest and host?

I'm in the process on playing around with KVM and setting up a linux on a linux-server, so I can reboot the (guest)server encrypt the rootFS of the guest without having to do initramfs-tricks to get ...
0
votes
1answer
407 views

How do I use 2 disks for CoreOS?

I've got a bare metal server with 2x 480gb SSD disks. I will run a CI server with docker on CoreOS. Do I have to add another small disk to hold CoreOS and mount the 2x SSDs as /var/lib/docker?
1
vote
1answer
114 views

BTRFS raid with odd number of devices

I used to have RAID10 btrfs setup with 4 disks. Now I added sdf a new disk (its doing the balancing): Total devices 5 FS bytes used 5.73TiB devid 1 size 3.64TiB used 2.78TiB path /dev/sdd devid ...
2
votes
1answer
686 views

BTRFS, sector alignment and Advance Format Disks

I want to set up a BTRFS RAID1 setup with two WD Red 4TB disks, which possess 4K sectors. Since I am keen to get it right the first time before copying data to it (yes it will be backed up), my ...