Is there a way to find out the exact parameters that were originally used when a BTRFS file system was created? I'm working on a system with an older kernel version (4.4). Because of the older kernel I believe I will be unable to convert an existing BTRFS file system to the DUP profile (for metadata and data) so my only recourse I think is to copy the data off the file system, recreate it with the DUP profile for both metadata and data, and copy the data back. However since there are other parts and pieces involved I need to make 100% sure that the only thing that changes is the profile from single to DUP. All other parameters need to stay the same. How would I go about figuring out the various parameters that need to be specified for mkfs.btrfs?
Asked
Active
Viewed 1,070 times
2
-
1`duplicity` is not a valid tag for this question as it relates to the backup software, not the btrfs dup profile. – Ginnungagap Sep 08 '20 at 06:39
-
1@Ginnungagap You can just edit the post to remove the inappropriate tags. No need for a comment. – Michael Hampton Sep 08 '20 at 12:40
1 Answers
3
btrfs filesystem df /path
will show you the currently used profile for the given path.
You can convert an existing single
profile to a dup
profile using btrfs balance -mconvert=dup
(to convert the metadata profile, read the manual for more).

SurpriseDog
- 123
- 5

Ginnungagap
- 2,595
- 10
- 13