4

The btrfs wiki RAID1 conversion example gives the following command:

btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt

There is also the option -s which `man btrfs-balance page defines as:

act on system chunks (requires -f)

So, why not also do -sconvert=raid1 when converting RAID0 to RAID1?

Tom Hale
  • 1,105
  • 1
  • 12
  • 24

1 Answers1

0

Don't pass -f -s, this btrfs mailing list post says it's dangerous.

It is not necessary to pass -s: System chunks are converted to RAID1 automatically:

Before balance:

[tara /]# btrfs fil df /ark 
Data, single: total=2.16TiB, used=2.16TiB
System, DUP: total=8.00MiB, used=256.00KiB
Metadata, DUP: total=7.50GiB, used=5.41GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

After btrfs bal start -dconvert=raid1 -mconvert=raid1 /ark:

[tara /]# btrfs fil df /ark 
Data, RAID1: total=2.16TiB, used=2.16TiB
System, RAID1: total=32.00MiB, used=336.00KiB
Metadata, RAID1: total=14.00GiB, used=5.62GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

Note:

Tom Hale
  • 1,105
  • 1
  • 12
  • 24