Questions tagged [btrfs]

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 ZFS.

Filter by
Sorted by
Tagged with
9 votes
2 answers
1k 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. ...
zJay's user avatar
  • 191
5 votes
2 answers
5k 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 ...
tim's user avatar
  • 1,217
2 votes
1 answer
974 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 -...
defiler's user avatar
  • 171
2 votes
2 answers
4k 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 ...
pleasedesktop's user avatar
2 votes
2 answers
230 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 ...
Diagon's user avatar
  • 246
11 votes
4 answers
5k 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 and ...
user192749's user avatar
2 votes
0 answers
2k 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 ...
KaP's user avatar
  • 123
3 votes
0 answers
2k 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 ...
the-wabbit's user avatar
1 vote
2 answers
328 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 ...
Reid's user avatar
  • 322
6 votes
3 answers
10k 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 ...
Dave's user avatar
  • 61
1 vote
0 answers
404 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 ...
x86fantini's user avatar
2 votes
0 answers
480 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 ...
piotrek's user avatar
  • 127
-1 votes
1 answer
832 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 ...
IMTheNachoMan's user avatar
6 votes
2 answers
2k 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 ...
BayerSe's user avatar
  • 245
3 votes
1 answer
2k 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 ...
Steve's user avatar
  • 590
1 vote
1 answer
506 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 ...
feicipet's user avatar
  • 575
3 votes
2 answers
1k 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, ...
Dori White's user avatar
3 votes
1 answer
2k 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 ...
jl6's user avatar
  • 2,635
2 votes
1 answer
105 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 ...
Tesla43's user avatar
  • 31
0 votes
1 answer
916 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 ...
Ron Gejman's user avatar
1 vote
1 answer
277 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. ...
narnie's user avatar
  • 111
5 votes
1 answer
538 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. ...
Álex's user avatar
  • 203
1 vote
1 answer
2k 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?
Seamus Abshere's user avatar
13 votes
3 answers
17k 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 ...
Antonis Christofides's user avatar
2 votes
2 answers
3k 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 ...
packoman's user avatar
  • 185
3 votes
1 answer
866 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 ...
Waleed Lotfy's user avatar
2 votes
1 answer
265 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-...
user1295450's user avatar
1 vote
0 answers
310 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 /dev/...
Stephan Richter's user avatar
1 vote
1 answer
2k 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: root@...
loopbackbee's user avatar
  • 1,405
1 vote
1 answer
751 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 ...
langle's user avatar
  • 11
3 votes
1 answer
1k 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 ...
hookenz's user avatar
  • 14.6k
2 votes
1 answer
4k 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). ...
Tomer Cohen's user avatar
5 votes
2 answers
3k 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 ...
Joe's user avatar
  • 514
1 vote
1 answer
1k 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. ...
Jacob Stoner's user avatar
-1 votes
1 answer
612 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 ...
lievendp's user avatar
8 votes
2 answers
23k 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 ...
mlissner's user avatar
  • 1,090
12 votes
3 answers
10k 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 ...
zidarsk8's user avatar
  • 394
2 votes
1 answer
583 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 ...
Finwood's user avatar
  • 131
4 votes
1 answer
620 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 ...
ascobol's user avatar
  • 288
4 votes
2 answers
8k 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 ...
Doodle's user avatar
  • 41
12 votes
4 answers
18k 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 ...
limaunion's user avatar
  • 121
8 votes
1 answer
21k 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 ...
Perseids's user avatar
  • 233
5 votes
1 answer
629 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 ...
tylerl's user avatar
  • 15.2k
4 votes
1 answer
1k 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 ...
TilmanBaumann's user avatar
4 votes
2 answers
2k 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 ...
Thilo's user avatar
  • 263
21 votes
8 answers
5k 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 data:...
小太郎's user avatar
  • 347
0 votes
2 answers
5k 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 ...
Lee Begg's user avatar
3 votes
1 answer
2k 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) ...
kei1aeh5quahQu4U's user avatar
2 votes
0 answers
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 ...
artfulrobot's user avatar
  • 3,129
0 votes
1 answer
117 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 ...
Bastian Ebeling's user avatar