I wanted to add storage on my pool, but I should have added two drivers if I would have continued with mirrored pool. So here is a guide on how to transform zfs mirror pool to raidz with one additional drive.
Commands:
zpool status
zpool detach bigpool sdb1
zpool remove bigpool nvme1n1p1
zpool remove bigpool nvme1n1p3
dd if=/dev/zero of=/media/disk.img seek=7814026583 bs=1024 count=1
mounting loopback
losetup -f
losetup /dev/loop0 /media/disk.img
create raidz
zpool create bigz raidz sdb1 sdd1 loop0
remove lookback
losetup -d /dev/loop0 && rm /media/disk.img
zfs create bigz/newz
rsync -ah --progress
zpool destroy bigpool
zpool replace bigz loop0 sda1
zpool add bigz log nvme1n1p1
zpool add bigz cache nvme1n1p3
zfs set mountpoint
Watch video How to turn a mirror in to a RAIDZ online without registration, duration hours minute second in high quality. This video was added by user Heikki Koivisto 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,812 once and liked it 16 people.