Sysadmin > TrueOS > AddSecondDiskToZFS

How to add a second disk to the zpool

zpool status

zpool attach tank ada0p2 ada1p2

gpart backup ada0 | gpart restore -F ada1

sysctl kern.geom.debugflags=16

gpart backup ada0 | gpart restore -F ada1

zpool attach tank ada0p2 ada1p2

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1

echo kern.geom.debugflags=16 >> /etc/sysctl.conf