Add new disk to BTRFS RAID 1 partition and remove failing disk

btrfs fi show
Label: 'btrfs'  uuid: fc34f7ac-7a8c-4b9a-99af-a6fdbdcd0ac5
        Total devices 2 FS bytes used 2.90TiB
        devid    1 size 3.64TiB used 3.62TiB path /dev/sda
        devid    2 size 3.64TiB used 3.62TiB path /dev/sdb

# /dev/sdb is failing so we want to remove it from the BTRFS raid 1 partition.

# Mount in degrated mode:
mount -o degraded /dev/sda /mnt/btrfs

# Add new disk:
btrfs device add -f /dev/sdc /mnt/btrfs

# Delete failing disk:
btrfs device delete /dev/sdb /mnt/btrfs

# Balance
btrfs balance start --full-balance /mnt/btrfs
Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp