2

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?

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
Harry Muscle
  • 243
  • 2
  • 10

1 Answers1

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