This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
start:dupmdatabtrfs [2022/06/28 19:33] – created peter | start:dupmdatabtrfs [2023/09/14 20:47] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | DATE CHECKED THIS PAGE WAS VALID: 14/ | ||
+ | |||
+ | Unsure if still a valid page as this is the default in trixie anyway. | ||
+ | |||
As per: | As per: | ||
https:// | https:// | ||
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, | GlobalReserve, | ||
</ | </ | ||
+ | |||
+ | To convert to DUP which duplicates the metadata (information about the files on the disk) run this command: | ||
+ | |||
+ | < | ||
+ | sudo btrfs balance start -mconvert=dup / | ||
+ | </ | ||
+ | |||
+ | In another terminal you can see it progressing: | ||
+ | < | ||
+ | watch sudo btrfs balance status / | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ |