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

learn more… | top users | synonyms

15
votes
2answers
7k views

How to rename a BTRFS subvolume?

I have a BTRFS filesystem with a set of subvolumes in it. So far so good. I need to change the name of a subvolume, unfortunately the btrfs program does not allow me to rename a subvolume. Searching ...
11
votes
2answers
3k views

btrfs: HUGE metadata allocated

I have a 256GB SSD disk on which I converted my ext4 root FS to btrfs. I erased the ext4 backup subvolume, enabled compression and defragmented recursively to enable it on all files. btrfs fi df / ...
11
votes
2answers
4k views

Can a failed Btrfs drive in RAID-1 be replaced live?

I am trying to decide on a filesystem and would like to know if it is possible to replace a failed drive in btrfs RAID without downtime. Suppose I create a new btrfs filesystem using the command ...
10
votes
2answers
4k views

Btrfs on top of a mdadm raid10, or btrfs raid10 on bare devices?

I have a RAID10 managed by the mdadm and I have EXT4 filesystem on top of it. However, I like BTRFS and would like to convert the EXT4 filesystem to BTRFS, but I was thinking about performance and ...
10
votes
3answers
8k views

How to undelete files on btrfs partition?

How do I undelete (recover) a deleted file on a btrfs partition? I have not taken a snapshot yet, so I can't use that feature. I know there are some tools for other Linux file systems, but google ...
10
votes
3answers
1k views

How to make a redundant desktop system with daily snapshots? (Is btrfs ready for use?)

I want to configure a desktop system in which the home filesystem would be redundant (e.g. RAID-1), and would have weekly snapshots taken. I've already done this with ZFS, the snapshot system is ...
9
votes
5answers
5k views

should I put my multi-device btrfs filesystem on disk partitions or raw devices?

If I'm going to create a multi-device btrfs filesystem. The official recommendation from the documentation apppears to be to create it on raw devices; i.e. /dev/sdb, /dev/sdc, etc, but this is not ...
8
votes
3answers
2k views

What advantages of btrfs will a normal user notice?

Most of the information that I can find means nothing to users who haven't studied filesystems. What sort of advantages of btrfs are visible to the average user, without knowledge of how filesystems ...
6
votes
5answers
2k views

Is there a stable Linux distro using btrfs?

I'm a big fan of ZFS on FreeBSD (I've been using it on my home server since before it got stable; bleeding edge, baby!) and I'd like to try out btrfs to see how that's evolving. Since it's still ...
6
votes
3answers
12k views

Swapon failed: Invalid argument on a Linux system with Btrfs filesystem

What's wrong with this sequence of operation, running on a Debian Squeeze system with a Btrfs filesystem? $ dd if=/dev/zero of=swapfile2 bs=1024 count=524288 $ sudo mkswap swapfile2 $ sudo chown ...
6
votes
1answer
2k views

How does btrfs scrub work and what does it do?

What exactly does btrfs scrub do? According to the manual page, which is totally unclear, it does some error checking. What kind of error checking? How reliable is it? Is it able to recover some ...
5
votes
7answers
14k views

Does rsync --inplace write to the entire file, or just to the parts that need to be updated? (for btrfs+rsync backups)

I was reading several guides how combine btrfs snapshots with rsync to make an efficient backup solution with history. However it all depends on if rsync --inplace modifies only those portions of ...
5
votes
2answers
4k views

Hardware or Software RAID and Filesystem Type?

I'm looking to build a pretty simple RAID-5 or RAID-6 array and I'm looking into my options. The machine will be a 64bit Ubuntu Linux Server and will essentially be used as a backup/file server. I'll ...
4
votes
3answers
695 views

Is RAID1 or similar needed for btrfs/ZFS to protect against bit rot?

I'm running a file server using Linux software raid, set up as raid6. As filesystem I've chosen btrfs. However, I'm not using btrfs own raid6 implementation as it's not very stable yet. So basically, ...
4
votes
1answer
578 views

Any drawbacks in using an entire disk (/dev/sda) without partition table for btrfs

The title says it all. Are there drawbacks in using an entire disk (/dev/sda) without any partition table for btrfs? It seems to work, it's quite slow, though that may be because it's running on a ...
4
votes
1answer
943 views

What filesystem should I use for a large amount of disk space in Linux (>32TB)?

I am trying to make a large file system in linux, but have run into problems with many of the common file systems. JFS has a bug that does not allow expansion over 32TB. XFS has a bug in the fsck ...
4
votes
1answer
1k views

partitioning and subvol strategy with btrfs

I'm new to btrfs and I'd like some advice on partitioning and subvolume strategy. The system is a light-duty web server, and assume it only has a single disk. With ext filesystems, I've always ...
4
votes
1answer
53 views

Hierarchical snapshots strange behaviour

I have divided my drive into two btrfs paritions: one is mounted as / (dev/sda1), second one as /home (/dev/sda2). I made my initial snapshot of /home: mkdir -p /home/snapshots/mnt mount -o ...
4
votes
1answer
920 views

Can I merge two btrfs without data loss

I have a btrfs device mounted, it is composed of 2 partitions and it is in single mode (the partitions does not have the same size so I can't use raid 0 ). I have another disk formatted in ext4, I ...
4
votes
2answers
874 views

How to copy a btrfs filesystem

How can make a full copy of the contents of a btrfs filesystem? By full copy I mean not only the current data, but also different subvolumes with their snapshots, ideally preserving their CoW ...
4
votes
1answer
1k views

How do I find out the compressed / uncompressed file sizes on btrfs?

I am using btrfs on one of my hard drives. I would like to know the actual file size and the compressed file size on btrfs. I am interested in seeing the compression ratios per file . For example ntfs ...
4
votes
0answers
268 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 ...
4
votes
0answers
667 views

Is it safe to resize a BTRFS partition that is part of a multi-device volume?

I have a multi-device BTRFS volume and I would like to re-size one of the partitions. To be more precise: My /home is spread across two separate BTRFS partitions. I shrunk down another partition to ...
3
votes
1answer
506 views

Accidently put BtrFS on plain device - how to revert?

On a fresh hard disk, I created a GPT partition table with three partitions: /dev/sdd1 256M for /boot /dev/sdd2 8G for swap /dev/sdd3 ~1T for / Then, I accidently formatted the raw device ...
3
votes
2answers
1k 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"?
3
votes
2answers
3k views

Reasoning behind hosting virtual disk images on BTRFS Filesystem

I have been reading about BTRFS and ZFS for a while and while I do appreciate the benefits of CoW when hosting important files I am currently puzzled by the following dilemma: Given that both ZFS and ...
3
votes
1answer
1k views

How can I delete a apt-btrfs-snapshot when the error is “Directory not empty?”

There is one snapshot created by apt-btrfs-snapshot that won't delete Delete subvolume '/tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX' ERROR: cannot delete ...
3
votes
2answers
700 views

Is it possible to have subvolumes with different replication modes in btrfs?

I am setting up a system with two 3TB hard drives as storage backing. As it's a desktop station, I thougth about the following disk setup: sda + /boot with 500MB + btrfs for the remaining GBytes sdb ...
3
votes
2answers
533 views

Is Btrfs vulnerable to RAID write hole effect?

If not, does it mean that Btrfs in RAID mode is fully resistant to power failure?
3
votes
1answer
267 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 ...
3
votes
2answers
443 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 ...
3
votes
1answer
3k 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 ...
3
votes
1answer
159 views

Is there a way to list supported BTRFS compression algorithms?

Or, perhaps a better question would be - is it possible to list all available Btrfs options on the current system? The only way for a Btrfs user to find this out is to check the kernel version, and go ...
3
votes
1answer
2k 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 ...
3
votes
1answer
2k 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 ...
3
votes
3answers
1k 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 ...
3
votes
1answer
2k views

btrfs shrink partition

After shrinking a BTRFS file system using "btrfs filesystem resize /mnt -20g", this space doesn't show up as free for allocation in GParted. It doesn't seem like GParted can resize the btrfs partition ...
3
votes
1answer
371 views

Rsync backups on btrfs very slow

My environment is Ubuntu 15.04 with kernel 3.19.0-28-generic and Btrfs v3.17. I have two identical external USB hard disks that I use with my backup script. One of them is formatted with btrfs and ...
3
votes
1answer
92 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 ...
3
votes
1answer
440 views

Is it currently stable to use, and boot to, a btrfs RAID 0 on SSDs?

As of the current (3.10+) Linux kernels, is it supported to make a btrfs RAID 0 out of SSDs the root mount and boot to it? This comprises several issues: Does the RAID 0 with SSDs support ...
3
votes
1answer
205 views

btrfs does not show drive as missing

I am trying out btrfs and I noticed some funny behaviour: I have two drives in a raid 1 configuration. sudo btrfs fi show Label: none uuid: 52b9c6f6-ce5c-4727-861e-e2fd012e475f Total devices 2 ...
2
votes
3answers
3k views

How can I use the Btrfs compression option when installing Linux?

I've been trying out the Btrfs with an SSD drive and like the compress option which is set in the fstab. However this only applies to the files created after I have installed the operating system and ...
2
votes
1answer
2k views

GRUB broken after conversion to btrfs

First off, yes, I did, in fact, suspect that changing my filesystem from ext4 to btrfs would break GRUB and fstab. Now, here's what happened. I converted the filesystem seamlessly to btrfs and that ...
2
votes
1answer
5k views

Btrfs Undelete File

I would like to undelete a large file I deleted using the rm -r command on the directory it was located in. The file was on a 1TB usb external harddisk. Nothing was written to the disk after the file ...
2
votes
1answer
879 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 ...
2
votes
1answer
3k views

How to recover this btrfs error?

I have a btrfs file system that cannot be mounted anymore. I resetted the computer and after boot a Java process crashed, showing a core dump with much btrfs stuff on the stack. After that happened, ...
2
votes
2answers
109 views

What easy to manage file system to choose on Linux for homeserver?

I have a homeserver running on a HP Proliant Microserver Gen7 with 10GB of ECC Memory running Debian 8 (jessie). Right now i have one small system disk (backed up using rsnapshot) and 2x 3TB storage ...
2
votes
1answer
26 views

What should happen in Btrfs if I unplug a HDD while reading?

I'm quite new to Linux (Debian) and Btrfs. Started to test it on my DIY Nas at home. Setup: - Medium-level hardware with 2 WD RED 3TB disks - Debian (latest stable) - Btrfs-tools (latest stable) - ...
2
votes
1answer
98 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 ...
2
votes
1answer
100 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 ...