I am working towards making a RAID1 “mirror” of my Tumbleweed (want to use MDADM to create/manage the RAID but have BTRFS as the filesystem) and have got as far as partitioning a SSD to match my existing SSD. I plan to write zeroes to the empty partition that will mirror my Tumbleweed installation, mark it as Linux raid (type fd00) using gdisk, create a degraded RAID array using only the empty partition and then create a BTRFS filesystem on it (I will need to post a question on how to create the necessary subvolumes) before copying over the files from the working Tumblewed installation to the new (still degraded) RAID1 array.
Checking the man page for mkfs.btrfs there are several options that if not correctly specified could result in a working filesystem that was different to my current Tumbleweed installation and so could not be used for a “mirror”, for example the --checksum option allows a choice of four different checksum algorithms. Is there perhaps a command that can interrogate my existing BTRFS filesystem to see what options (if any) I should specify to make a completely similar filesystem to what I have? Or does anyone know what options I should use?
:dont-know: