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

learn more… | top users | synonyms

12
votes
2answers
5k 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 ...
10
votes
2answers
3k 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
3answers
5k 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
2answers
3k 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 ...
8
votes
2answers
2k 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 / ...
8
votes
5answers
4k 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 ...
7
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 ...
5
votes
3answers
7k 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 ...
4
votes
5answers
9k 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 ...
4
votes
2answers
3k 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
1answer
848 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
594 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
0answers
539 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
2answers
468 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
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 ...
3
votes
2answers
391 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, ...
3
votes
2answers
1k 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
510 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 ...
3
votes
1answer
155 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
637 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 ...
3
votes
1answer
41 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 ...
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
356 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
2answers
584 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 ...
2
votes
2answers
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
465 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 ...
2
votes
1answer
1k 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
829 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 ...
2
votes
1answer
96 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
2answers
176 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 ...
2
votes
1answer
2k 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
1answer
343 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?
2
votes
1answer
43 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 ...
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 ...
2
votes
1answer
807 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 ...
2
votes
1answer
252 views

Replace Linux Boot-Drive | ext3 to btrfs

I've got a headless server running Debian Linux currently. Linux vault 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 i686 GNU/Linux The root filesystem is located on an ext3 partition on the ...
2
votes
1answer
174 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 ...
2
votes
1answer
377 views

Btrfs raid level for large NAS (8+ 5tb disks)

I'm planning to build a new NAS to store a large amount of media (20tb+). I would like to use btrfs for both the NAS and the backup (might be a separate system, not sure yet) I want to use raid1 or ...
2
votes
0answers
138 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
0answers
117 views

Btrfs snapshot space and time overhead

Using btrfs-snapshot-rotation, I've setup a system to rotate snapshots so that it always has snapshots of: Each of the the last 24 hours Each of the last 30 days Each of the last 12 months. This ...
2
votes
0answers
96 views

For raid1, does btrfs check which partitions are on the same device?

I have btrfs on two partitions using btrfs's raid1 mode: /dev/sda3 /dev/sdb3 Now I plan to run btrfs device add /dev/sda2 /dev/sdb2, so I'll have four partitions: /dev/sda2 /dev/sda3 /dev/sdb2 ...
2
votes
1answer
192 views

/home “cleaned” during ubuntu 12.10 installation on btrfs

I had a seperate btrfs partition for my home directory in my old ubuntu instalation. I "upgraded" the installation by installing a clean system on my ext4 partition which got formatted and mounted as ...
1
vote
1answer
178 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 ...
1
vote
1answer
196 views

btrfs: one whole device + one partition on another device (no data-mirroring), viable?

Currently, /home claims 880G of a 1TB drive. Photos are eating this up quickly, so I want to add a 1TB drive I have lying around to the computer to expand /home. I figured I could use btrfs (I don't ...
1
vote
1answer
742 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
115 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
1answer
43 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. ...
1
vote
1answer
84 views

Is there a way to show RAID details in a similar way to MDADM?

I find mdadm --detail <device> very useful when I need to know what is going on with the device (/proc/mdadm too). Example: /dev/md0: Version : 1.2 Creation Time : Mon Mar 4 ...