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

2
votes
2answers
40 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, ...
0
votes
0answers
34 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 ...
1
vote
0answers
27 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 ...
-1
votes
1answer
90 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 ...
0
votes
0answers
34 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
36 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. ...
0
votes
1answer
104 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?
0
votes
0answers
52 views

Btrfs data single mode behaviour when on of devices fail

I want store non critical data on more HDDs (one 2 TB and two 500 GB devices) using Btrfs filesystem with distributed metadata but single data. As I have said, data will not be critical, so if one ...
1
vote
0answers
96 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 ...
0
votes
1answer
280 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 ...
3
votes
1answer
208 views

Directories inside /var are on root partition not /var partition

Few weeks ago I installed Opensuse 13.2. I partitioned the disk so that root '/', /var, /tmp and /home are on different partitions. Today I noticed that although /var is on partition sda8, all ...
2
votes
1answer
62 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 ...
1
vote
0answers
84 views

Snapshot of BTRFS Device on top of luks Volume

I have the following problem: I can't figure out, how to create a snapshot of a btrfs volume residing on a crypted disk. This is the setup: /dev/sdb is a 1TB USB 3 disk. it has a partition ...
0
votes
1answer
132 views

Can't delete a btrfs snapshot

I have a system that creates periodic btrfs snapshots and deletes old ones. Today, I've started receiving warnings that the system can't delete some old snapshots. This is the output I get: ...
1
vote
1answer
69 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
248 views

Can I mount a read-only btrfs volume across multiple machines?

Is it possible to have a single btrfs mounted volume read-only mounted across multiple machines? Can one of the hosts mount it read/write to provide updates to the others? The reason I'm asking this ...
1
vote
1answer
177 views

Mounting compressed filesystem using FUSE

I'd like to move some folders on my computer to a compressed read/write images, so I could get it to take less disk space on my machine (the folders contain some Mercurial and Git repositories). ...
5
votes
2answers
2k views

btrfs Integrity and Stress Testing

A DevOps colleague is recommending that we begin transitioning our production environment to using btrfs. We have primarily ext4 filesystems, though some low-usage servers using ZFS (on Linux). As ...
1
vote
1answer
580 views

recovering a corrupt degraded btrfs RAID6, need to manually clear an inode

I have a btrfs RAID 6. I have lousy hard drives, one failed, and another failed during recovery. Now I am without parity and cannot rebuild--a third drive is throwing read errors on a few sectors. ...
-1
votes
1answer
146 views

btrfs formatted partion not mounting from fstab

I have this new mageia 4 setup with some btrfs partitions. My root "/" is on btrfs, working fine. from fstab: UUID=b2b0263e-a04a-4bd7-86d7-d2ec19a90b84 / btrfs relatime 0 0 then I have a different ...
4
votes
2answers
3k views

How to delete a btrfs snapshot?

I'm new to btrfs and I am trying to delete some snapshots I made a few months ago. They're taking up about 20GB of space, and I need that space back. This seems to list the snapshots: ↪ sudo btrfs ...
9
votes
3answers
2k 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 ...
0
votes
1answer
80 views

Multi-Volume data storage without striping

I have a network storage server running Debian, containing multiple hard drives. These drives are all mounted into subdirectories of a samba-shared folder. All members of the network have full read ...
2
votes
0answers
57 views

Remove a file from a btrfs snapshot and still use btrfs send/receive?

I'm planing to use btrfs send/receive to synchronize two filesystems and keep a few older snapshots (like a time machine) on the backup. Now what happens if a user ask me to remove a file or ...
3
votes
2answers
655 views

BTRFS and Luks integration

I would like to build a RAID1/BTRFS/Luks setup. What I found about it so far is: An encrypted Btrfs file system can be created on top of the dm_crypt disk encryption subsystem and Linux Unified Key ...
6
votes
1answer
340 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 ...
2
votes
1answer
1k views

How do I get the size of a btrfs subvolume (compressed vs. uncompressed)

Is there a command to get the on-disk size of a btrfs subvolume? The file system was mounted with -o compressed and the subvolume contains a lot of files that should compress rather well. I could use ...
4
votes
1answer
397 views

Btrfs vs ext4 — Where's the safety break-even point?

Btrfs is still in heavy development and still considered "unstable" by Chris Mason, and many important features are still being added, but the dire warnings of data loss are calamity are long since ...
2
votes
1answer
359 views

Redundancy level on a per file basis with BTRFS?

I would like to have one storage pool with multiple disks. Raid5 for metadata of course. But for user-data I would like to set the level of redundancy on a per file or per subvolume level. Can BTRFS ...
4
votes
2answers
416 views

LVM snapshot of btrfs volume changes mounted device

I have a btrf volume on top of LVM. Now I want to do a snapshot on the lvm level (NOT on the btrfs level). But every time I create the LVM snapshot, btrfs changes the mounted block device to the ...
15
votes
8answers
2k views

Do snapshots + RAID count as a good on-site backup solution?

The two main reasons I can think of for taking backups seems to be taken care of when I use both snapshots and RAID together with btrfs. (By RAID here, I mean RAID1 or 10) Accidental deletion of ...
0
votes
2answers
802 views

LXC container starts with readonly root filesystem

I am running LXC on Debain Wheezy using BTRFS, and have created a container using lxc-create using the "debian" template (yesterday). When starting the container, the root filesystem in the container ...
0
votes
1answer
659 views

btrfs: Looking for experience on btrfs error modes on bad sectors / read errors / medium erros

While running a Hadoop cluster that uses HDFS (so data is already replicated 3x) we experience often issues with ext4 because some bad sectors (the filesystem is unable to read or write to them) ...
2
votes
0answers
1k views

Preparing to use BTRFS in Debian 7 Wheezy

Kernel According to the BTRFS wiki support is green-lit for the 3.12 kernel, and neutral for the Wheezy kernel. I have installed the 3.12 kernel from wheezy-backports, so that I'm using a recommended ...
0
votes
1answer
48 views

debian stable raid autogrow filesystem database

I need to setup a debian stable system meeting the following needs: Hard disks should be mirroring : Raid 1 Filesystem(s) should autogrow if possible (just in case we replace one hdd with a bigger ...
6
votes
1answer
622 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 ...
2
votes
1answer
355 views

XenServer Linux guest booting off iSCSI SAN (ZFS storage): Will a non-checksumming guest file system still be at risk?

We are storing files on FreeNAS 9.2 using ZFS. I love the data integrity claims made by ZFS, having randomly lost data in the past on servers using ext3, XFS, and ReiserFS that were not mistreated ...
0
votes
2answers
1k 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 ...
1
vote
1answer
71 views

Can I mount a BTRFS snapshot of a live filesystem?

I wonder if it is possible to mount one or more snapshots of the same BTRFS filesystem for analytical purposes.
2
votes
1answer
245 views

What kind of “volume/storage management” has the largest support/feature set these days? [closed]

(DISCLAIMER: This is "time bound" as probably every other question, I just point it out now instead of implicating it) part of reviewing a few basic decisions for our infrastructure is once again the ...
0
votes
2answers
162 views

RAID / FS choice for 12 hard drive machine?

I'm going to purchase a 14 bay HP 2U server with ECC memory and bunch of 3TB enterprise SATA drives. I would prefer to make 2 x RAID6 with 6 drive each. This will be used for local office storage and ...
3
votes
2answers
1k views

Can I run a KVM guest with a btrfs subvolume as file system?

I want to run a virtualized Debian stable KVM guest on a Debian stable host (to run untrusted stuff like Skype, Flash or eclipse with third-party plugins). Naturally host and guest will have many ...
4
votes
4answers
3k views

Does btrfs balance also defragment files?

When I run btrfs filesystem balance, does this implicitly defragment files? I could imagine that balance simply reallocates each file extent separately, preserving the existing fragmentation. There ...
0
votes
1answer
530 views

Grub2 w/ RAID5 and btrfs “error: unknown filesystem”

I have a Virtual Machine (in ESXi 5.1) running Ubuntu Server 12.04. When I try to boot my system I grub2 tells me "error: unknown filesystem". I've tried booting a Live CD then reinstalling grub from ...
2
votes
3answers
102 views

How to forbid non-UTF-8 filenames?

Is it possible to enforce, at filesystem level, that all created file entries will have valid UTF-8 names? I am using Btrfs.
3
votes
1answer
2k views

Converting BTRFS filesystem to RAID1 fails with “Inappropriate ioctl for device”

I had a ~1.6TB BTRFS volume on a single partition, to which successfully I added another freshly created and formatted partition (on another device) of exact same size with the intent of mirroring ...
0
votes
1answer
258 views

btrfs balance kernel bug? [closed]

After getting a little annoyed with no space left errors when deleting files I started a btrfs balance process and 2-3 times the following appeared. Is this serious for my data or can I just ignore it ...
4
votes
1answer
2k views

“rm: can not remove xxx: No Space left on device” on BTRFS

Running OpenSuse 12.2. Suddenly the root parition seems to be full (99%) but I can no longer remove files manually. "rm: can not remove xxx: No Space left on device" although 450mb are still free ...
2
votes
1answer
585 views

How can I remove a drive from a BTRFS RAID 1 setup to make it just a single (BTRFS) drive?

I'm using Ubuntu 10.04 and have the /home directory setup as a BTRFS RAID 1 with two 2TB drives. I'd like to make the /home directory just a single drive; how do I safely go about doing this?
2
votes
1answer
242 views

SLES 11 recommended filesystem

We are upgrading some servers from SLES 10 to SLES 11 and I just saw that ext4 is not supported. Should I move to XFS or keep ext3? I will be moving the programs and databases to a new VM so ...