使用 fdisk 將 SSD 分割成兩個 partition
fdisk /dev/sdd
root@pve:~# fdisk /dev/sdd
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-937703054, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-937703054, default 937703054): 437703054
Created a new partition 1 of type 'Linux filesystem' and of size 208.7 GiB.
Partition #1 contains a zfs_member signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): n
Partition number (2-128, default 2):
First sector (437703055-937703054, default 437704704):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (437704704-937703054, default 937703054):
Created a new partition 2 of type 'Linux filesystem' and of size 238.4 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
設定 SSD cache 到 zfs pool
zpool add -f RAID1 log /dev/sdd1 cache /dev/sdd2