Skip to main content

Questions tagged [btrfs]

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

41 votes
3 answers
9k views

Does Git prevent data degradation

I read that ZFS and Btrfs use checksums to prevent data degradation and I read that Git has integrity through hashing essentially everything with each commit. I was going to use a Git server on a ...
MADforFUNandHappy's user avatar
40 votes
7 answers
67k 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 ...
Petr's user avatar
  • 3,173
34 votes
2 answers
36k 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 ...
Petr's user avatar
  • 2,381
34 votes
3 answers
39k 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 ...
hochl's user avatar
  • 811
30 votes
7 answers
19k 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 ...
RedHack's user avatar
  • 490
28 votes
7 answers
78k 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 root:...
malat's user avatar
  • 1,309
23 votes
4 answers
44k 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 ...
MountainX's user avatar
  • 2,144
21 votes
6 answers
26k 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 ...
loopbackbee's user avatar
  • 1,441
20 votes
7 answers
27k views

How to create swapfile on ssd disk with btrfs

I have SSD with btrfs, I tried creating a swapfile like: dd if=/dev/zero of=swapfile01 bs=1M count=10240 mkswap swapfile01 chmod 600 swapfile01 swapon swapfile01 In dmesg I see [238434.731654] ...
Petr's user avatar
  • 2,381
20 votes
5 answers
38k views

How to monitor BTRFS filesystem raid for errors?

I saw some documentation on a daemon that can execute a program/script for various BTRFS events, but I cannot find it anymore. How can I have a script/program be executed on a drive failure for a ...
Ioan's user avatar
  • 561
20 votes
2 answers
9k 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 / ...
Gnurou's user avatar
  • 443
18 votes
2 answers
48k 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 ...
David S.'s user avatar
  • 946
17 votes
4 answers
15k 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 ...
Glyph's user avatar
  • 547
16 votes
2 answers
14k views

Linux BTRFS - convert to single with failed drive

A small amount of backstory: I have a small media filesystem, on which I store various movies and TV shows that are used for my HTPC setup. This was originally set up, using btrfs, on a 1TB WD ...
eeeeeta's user avatar
  • 326
16 votes
1 answer
7k 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 ...
NothingsImpossible's user avatar

15 30 50 per page
1
2 3 4 5
21