I have two 1TB disks. I ran a fresh install of Ubuntu 20.10 using encryption + ZFS, which installed to /dev/sda.
It created the following:
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 917DAC1E-06D8-479B-AAC6-43FB711931BD
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1054719 1050624 513M EFI System
/dev/sda3 1054720 5249023 4194304 2G Linux swap
/dev/sda4 5249024 9443327 4194304 2G Solaris boot
/dev/sda5 9443328 1953525134 1944081807 927G Solaris root
Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4176D618-E056-4905-BCFE-7ACA909134CD
Lsblck shows:
sda 931.5G
├─sda1 1M
├─sda2 vfat 513M /boot/efi
├─sda3 crypto_LUKS 2G
│ └─cryptoswap swap 2G [SWAP]
├─sda4 zfs_member 2G bpool
└─sda5 zfs_member 927G rpool
sdb 931.5G
sr0 1024M
zd0 crypto_LUKS 500M
└─keystore-rpool ext4 484M /run/keystore/rpool keystore-rpool
Is there a way to turn /dev/sdb into a proper mirror of /dev/sda using RAIDZ with ZFS? I've found some notes and tutorials that seem to give parts (like this askubuntu question, but I think it would already need partitions configured and wouldn't be a drive mirror, or maybe having a full drive mirror configuration wouldn't be possible with this ZFS+Encryption fresh installation?