A copy-on-write (COW) file system developed by Oracle included in the Linux kernel.

learn more… | top users | synonyms

0
votes
0answers
5 views

Cryptsetup boot many devices “timeout”

On my server, the crypttab file has 13 entries for every hard drive connected to it. 2 are for the system partitions, 2 are for the backup system and 9 are for the mediaserver and nfs stuff. ...
2
votes
0answers
11 views

Btrfs: available space not used after migrating from RAID1 to RAID6

I had 8 2TB disks running in a RAID1 setup but it started to get full so I converted it to a RAID6. However, it seems I can't use the space I've gained by switching to RAID6. My filesystem is pretty ...
1
vote
2answers
27 views

resolve bind mounts with a shell tool/script

currently i have a setup with two hardrives, one with xfs, the other one with btrfs on it. The root fs is mounted on the xfs, and the btrfs under /data. For verious reasons, the directory /var/www on ...
4
votes
1answer
14 views

cannot reduce the size of my Btrfs partition

I need to free up 4T on my LVM which is mainly taken by a Btrfs filesystem mounted on /data. I did: # btrfs fi resize -h btrfs filesystem resize: too few arguments usage: btrfs filesystem resize ...
0
votes
0answers
16 views

btrfs - how to list files stored in a block?

I have some troubles with my btrfs file system on Ubuntu (my partition automatically enter in read-only mode after the login screen). I would like to know if one can know which files are included in ...
0
votes
1answer
20 views

How to safely delete a regular directory that contains several btrfs snapshots inside it?

I have a regular directory than contains directly underneath it several btrfs snapshots. Is it safe to do an rm -rf on the parent directory, or do I need to first do a btrfs subvolume delete SUBVOL on ...
1
vote
0answers
11 views

Snapper - how to undo changes, preserving timestamps?

I've damaged modification dates of files on my drive and I wanted to revert them using snapper snapshots but it doesn't seem to work, snapper only reverts content of files not modification dates. ...
3
votes
1answer
40 views

How to find out if a file on btrfs is copy-on-write?

I know that cp has a --reflink option to control full copies vs. copy-on-write "copies". On btrfs, can I use ls (or some other command) to find out whether a file shares (in a copy-on-write senses) ...
0
votes
0answers
11 views

btrfs shrinked after failed balance

I have a btrfs on a 2TB disk. According to btrfs fi show, less than half of the space is used: Label: 'photo' uuid: cccecc10-da2c-4fd6-ae38-31d160dfb6df Total devices 1 FS bytes used 753.21GiB ...
0
votes
1answer
54 views

Does it make sense to put btrfs on lvm?

This is OpenSUSE Leap 42. I have a computer with 2x 500 GB SATA HDD drives and to speed it up I put in a small 30GB SSD drive for the system. During installation HDDs were disconnected as they ...
1
vote
1answer
25 views

How do I mount my problematic (btrfs?) disc?

I have an old harddrive that I want to check the contents of. I think it may previously have been part of a BTRFS raid1 setup, now replaced by a larger drive. When I connect it with a USB-adapter, I ...
3
votes
0answers
49 views

BTRFS has become unmanageable

I'm struggling with a btrfs RAID0 filesystem. It's expanded on 4 disks but i need to remove one of those disks. This is the current status of the filesystem: [root@osgiliath detlev]# btrfs fi show ...
0
votes
1answer
31 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 ...
2
votes
0answers
48 views

Copy remote btrfs incremental snapshot to new drive w/ UUID

Situation: Two machines (A & B, with local drives dA & dB) connected via slow network. Drive dA has initial backup to dB, while locally attached on machine A. btrfs send RO-snapshot-1-dA | ...
3
votes
1answer
56 views

Can I get SSD rw performance while keeing data security if I combine SSD & HDD in btrfs RAID1

I have 2 storage devices; classical slow HDD (750GB, /dev/sda) and faster SSD (128GB, /dev/sdb). Currently I have installed Ubuntu & Mint on same btrfs partition on SSD (/dev/sdb5). My btrfs pool ...
9
votes
1answer
84 views

How to duplicate a file without copying its data with btrfs?

I have no experience with btrfs, but it's advertised to be able to de-duplicate files. In my application, I'd need to duplicate whole directory trees. From what I learned, btrfs only de-duplicates ...
0
votes
0answers
55 views

btrfs balance memory requirements?

I'm trying to rebalance data on my btrfs filesystem to free up some (a lot) of disk space. However, my machine consistently keeps OOMing itself into death. Currently I'm assigning 1.5 GB of RAM but ...
1
vote
0answers
42 views

How many btrfs snapshots is too many? [duplicate]

I've been doing daily snapshots on a btrfs subvolume for nearly 3 years, resulting in over a thousand snapshots. I am experiencing occasional small stalls (a few seconds) in basic filesystem ...
1
vote
0answers
21 views

BTRFS reports errors, but the drives don't. Do I have failed drives?

I have been using btrfs for over a year, and noticed reports of lots of errors in the logs but no problems. A recent scrub found HUGE numbers of csum errors, by huge I mean 85 MILLION, however scrub ...
3
votes
1answer
39 views

What is the proper way to unlock a root filesystem spanning two LUKS devices by only entering the password once, using systemd?

I have been having a lot of issues getting an encrypted multi-disk root filesystem to boot up reliably under systemd on Debian Jessie while only having to enter the password once. Previously I've ...
2
votes
2answers
74 views

Btrfs subvolume UUID clash

Two file systems with the same UUID on the same computer are problematic, eg. it could lead to data corruption, especially if both are mounted at the same time (like the BTRFS wiki says too). So, ...
1
vote
1answer
104 views

Configure Snapper/snapshots on Fedora 23

I am getting an error while trying to configure snapper on F23. My root partition is btrfs, and I have installed the snapper package. The error is occurring when I initially try to create the default ...
2
votes
1answer
173 views

Btrfs/ZFS Network Replication

Is it possible to replicate a ZFS or Btrfs raid volume in real-time (or as close to as possible, network specs aside) over a network? ZFF and Btrfs are ideal because of their CoW properties. I'm ...
2
votes
1answer
29 views

Can move but can't remove empty /home directory (root, no attr, RW filesystem, not mount point, not busy)

I can move it but rmdir and rm -rf fail even as root (failed to remove '/home': Operation not permitted). lsattr is all ----------. Whenever I mv /home /home.bakN I get directories that are also ...
2
votes
1answer
110 views

How to fix BTRFS superblock error after resize/shrink (BTRFS: couldn't get super buffer head for bytenr 274877906944)

BTRFS RAID1 array with 2 500 GB hdds, no errors. This is the root filesystem, so there are 3 partitions on each drive: 1 = /boot (ext4), 2 = / (btrfs), 3 (swap) /boot is ext4 because upgrading the ...
0
votes
1answer
156 views

Filesystem is reporting a write error on a specific sector even after the partition is moved further

I am facing the following problem: btrfs reports write errors for sector 128 on device /dev/sdd: sd 6:0:0:0: [sdd] Invalid command failure sd 6:0:0:0: [sdd] Result: hostbyte=DID_OK ...
5
votes
0answers
77 views

How to delete a directory with multiple btrfs subvolumes?

My root file system is on a btrfs partition. My /chroot directory has a number of btrfs subvolumes in it which prevent me from deleting it with rm -rf /chroot. In an attempt to delete all the ...
1
vote
0answers
34 views

Udisks2, LUKS and btrfs

I just bought a portable USB HDD,on which i put 2 partitions : a LUKS one, which contains a btrfs fs and a fat32 one, in case I'd have to use a system which doesn't support LUKS or btrfs I use ...
5
votes
1answer
88 views

How do I 'upgrade' existing BTRFs to be fully redundant

How would I convert an existing BTRFs pool, within Debian Jessie (4.2 Kernel) that I created with... sudo mkfs.btrfs /dev/sdb /dev/sdc /dev/sdd ...into being fully redundant, or as redundant as it ...
4
votes
1answer
215 views

Can `btrfs scrub` remember the bad blocks/sectors?

I have a USB thumb drive formatted in btrfs format. But I found if I copy a 1 GB file onto this disk, the file is corrupted. And btrfs scrub reports there're many uncorrectable errors. But if I keep ...
2
votes
1answer
31 views

Secure deletion on BTRFS in LVM

I have a BTRFS filesystem in an LVM logical volume, which exists inside of a LUKS disk. For reference's sake, let's call the LV lvm-root, and the LUKS disk crypt-root, and the BTRFS filesystem ...
3
votes
0answers
119 views

BTRFS: too many missing devices, writeable mount is not allowed

Environment $ btrfs --version btrfs-progs v4.2.1 $ uname -a Linux [REDACTED] 4.2.1-040201-generic #201509211431 SMP Mon Sep 21 18:34:44 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Problem Today the ...
2
votes
1answer
59 views

Directly mount btrfs subvolume or bind mount if already visible

If /dev/sda1 is a btrfs filesystem with subvol's root and persistent And I've set the default subvol to root And I've mounted /dev/sda1 (again root is default) to / And I've mounted /dev/sda1 ...
3
votes
0answers
28 views

Can I determine the exclusive space usage of groups of btrfs subvolumes?

I want to free up some space in my btrfs filesystem by deleting some snapshots. But I cannot work out which ones would be effective to delete. This question's answer explains how to show the amount of ...
5
votes
1answer
497 views

How to replace a device in BTRFS RAID-1 filesystem?

I have a BTRFS RAID-1 filesystem with 2 legs. One disk needs to be replaced because of re-occuring read errors. Thus, the plan is: add a 3rd leg -> result should be: 3 way mirror remove the faulty ...
2
votes
0answers
23 views

List reflink filenames to a file on btrfs

Given a path/filename on a btrfs filesystem, how can you see the other reflinked path/filenames to the same file?
2
votes
0answers
21 views

Modifying a file “pointed” to by a lot of snapshots

I'm using btrfs and snapper. So, I have many periodic btrfs snapshots, which are marked read-only (can of course be changed by btrfs to r/w and changed back.) Let's say during my initial install I ...
1
vote
0answers
218 views

BTRFS RAID6 array is broken, how do I fix it?

I have a server running a btrfs raid 6 array which seems to have broken. When try to mount it I get the following error message. I don't know how or why it broke maybe a power outage or something (it ...
1
vote
1answer
158 views

Does this bug indicate an error in my btrfs filesystem of simply a bug in the 4.2.0-RC5 kernel?

I'm not sure this is the right place to ask this... I have been running a pre-release kernel (4.2.0-rc5) and yesterday had a possible disk error on my 6-disk raid-1 btrfs filesysystem. While trying ...
0
votes
1answer
67 views

How to know perfect filesystem parameters for flash drive format

I have a flash drive and using btrfs on it with default parameters. And now I'm going to slightly improve read/write speed. I see that "play the game" with page and sector size can helps me. But ...
0
votes
0answers
62 views

Will btrfs snapshots ever share page cache?

It's common to run multiple container images based on the same parent. In theory you should be able to share page cache between these containers automatically. E.g. some of the code in shared ...
0
votes
0answers
52 views

How to throttle system resources during transfer from btrfs on file image on cifs mount?

I have a btrfs on a sparse file image (4TB) on a cifs mount of a remote NAS (Synology DS214) with zlib compression enabled. Transferring file from and onto the btrfs causes freezes of Linux (where it ...
6
votes
1answer
405 views

Why does “cp -R --reflink=always” perform a standard copy on a btrfs filesystem?

Btrfs support Copy-On-Write. I tried to use that feature to clone a directory: cp -R --reflink=always foo_directory foo_directory.mirror I expected the command to finish almost instantly (like a ...
2
votes
1answer
138 views

Mounting a btrfs image file

I am trying to perform a recovery operation on a btrfs image file that I have extracted using # dd if=/dev/sda1 of=/mnt/sda1.img The file seems to be properly extracted: $ file sda1.img sda1.img: ...
1
vote
1answer
164 views

btrfs on LVM on LUKS - one LUKS container performs WAY better than the other

I have 2 LUKS containers, one with default OpenSUSE installer settings, another one with -h sha512 -s 512 -i 5000 and detached header. On top of each of them there is LVM - one with only 1 OS volume ...
0
votes
0answers
191 views

where to compress=lzo, btrfs with virtual disk images, with their vm's internally using btrfs

I've been using compress=lzo on my btrfs volumes, because I read this fast compression method actually increases drive performance. (Haven't tested myself.) I'm starting to use ...
1
vote
1answer
152 views

Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition [duplicate]

Setting up an array of (3) 5GB drives using btrfs. It will soon grow to (6) 5GB drives. Starting with raid 1, will rebalance once all the drives are installed to either raid5, 6, or 10. I will be ...
0
votes
0answers
37 views

btrfs scrub history disappeared

I had some corruption on a multi-disk RAID1 scrub setup and was running the command: watch -n10 -d ;btrfs file usage -T -g /mnt/b;echo;btrfs scrub status -d /mnt/b' After the scrub finished, I ...
1
vote
1answer
92 views

udisksctl mount a different subvolume of an already mounted btrfs partition

I have a btrfs partition with several subvolumes, one of which is /. I have another subvolume with some other stuff that I also want to mount, but trying to mount it with udisksctl: udisksctl mount ...
0
votes
1answer
54 views

Btrfs RAID1 mismatched sized drives full

I have a 500 GB HDD and a 300 GB HDD. I have formatted them as btrfs raid1 between. The total size is 800 GB. If I copy 50 GB onto the filesystem, it causes 100 GB to be used. If I copy 300 GB onto ...