Site Tools


start:dupmdatabtrfs

Differences

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

Link to this comparison view

Last revisionBoth sides next revision
start:dupmdatabtrfs [2022/06/28 19:33] – created peterstart:dupmdatabtrfs [2022/06/28 19:37] peter
Line 3: Line 3:
  
 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 25:
 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.txt · Last modified: 2023/09/14 20:47 by peter