Site Tools


start:dupmdatabtrfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
start:dupmdatabtrfs [2022/06/28 19:33] – created peterstart:dupmdatabtrfs [2023/09/14 20:47] (current) peter
Line 1: Line 1:
 +DATE CHECKED THIS PAGE WAS VALID: 14/09/2023 
 +
 +Unsure if still a valid page as this is the default in trixie anyway.
 +
 As per:  As per: 
 https://github.com/kdave/btrfs-progs/issues/319 https://github.com/kdave/btrfs-progs/issues/319
  
 mdata should be dup by default so your btrfs filesystem can handle errors more easily. mdata should be dup by default so your btrfs filesystem can handle errors more easily.
 +
 +DO NOT RUN THIS ON A DISK WITH VERY LITTLE FREE SPACE. You Need to ensure you have 5X the metadata space to ensure it can be converted without errors, eg: Metadata = 6GB then ensure 30GB is free etc.
  
 You can check if this is the case for you by using command: You can check if this is the case for you by using command:
Line 23: Line 29:
 GlobalReserve, single: total=512.00MiB, used=0.00B GlobalReserve, single: total=512.00MiB, used=0.00B
 </code> </code>
 +
 +To convert to DUP which duplicates the metadata (information about the files on the disk) run this command:
 +
 +<code>
 +sudo btrfs balance start -mconvert=dup /
 +</code>
 +
 +In another terminal you can see it progressing:
 +<code>
 +watch sudo btrfs balance status /
 +</code>
 +
 +Running 'sudo btrfs fi df /' when it completes again will show you that metadata is now DUP. Note that system also shows DUP.
 +
 +This should be the default but possible if your system was created some time ago you may not have this.
 +
 +
 +
start/dupmdatabtrfs.1656444822.txt.gz · Last modified: 2022/06/28 19:33 by peter