Add a second disk to a single disk pool possible to make it mirrored?

jbeez

Dabbler
Joined
Feb 9, 2015
Messages
48
Is there a simple way to add an identical disk to a single disk pool to make it a mirrored pool?

I have a single nvme disk pool called quick. I've acquired a second identical nvme drive and I'd like to make this a mirror now.


I also have in this same server a large storage pool called tank0 if that helps somehow.
 

jbeez

Dabbler
Joined
Feb 9, 2015
Messages
48
Well, I couldn't really get that going. I had my system dataset on there and jails. So what I did was this,
moved system dataset in the gui, and stopped all my jails
then in ssh cli,
zfs unmount -f quick/iocage
zfs snapshot -r quick/iocage@mirror
zfs send -R quick/iocage@mirror | zfs recv -v tank0/iocagemirror
zfs destroy -fr quick/iocage

went and deleted my single disk pool in the gui
recreated it as a mirror, moved system dataset back in gui, then back in CLI via ssh
iocage activate quick (idk if this was required but I did it)
zfs send -R tank0/iocagemirror@mirror | zfs recv -v quick/iocage

then started my jails, everything seems to be working fine
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
Top