In essence I want to have two mirror devices but also two copies of the data on each device.
Will something like this work and behave as I expect?
btrfs balance start convert=raid1,dup,soft /mnt/sdxn/
In essence I want to have two mirror devices but also two copies of the data on each device.
Will something like this work and behave as I expect?
btrfs balance start convert=raid1,dup,soft /mnt/sdxn/
I am not aware of a way to do that directly (i.e. with btrfs means only) but you could use LVM to split the devices in two parts, 95:5. Then add all four devices to the filesystem, set data to RAID1 and metadata to RAID1C4.
There seems not to be a way to prevent btrfs from putting data on the small devices. And if they are full then the filesystem is "full".
So you would have to check regularly for this problem (btrfs device usage) and run btrfs balance if necessary. But even if you just write 3% of the capacity at once you may run into severe problems.
An alternative might be to have the small devices offline most of the time; then is it obviously impossible to put data on them. From time to time (while no data is being written) add them to the filesystem and run btrfs balance to update the metadata on the small devices.
DUP) of btrfs...?