So I was replacing 1 of my 2 mirrored drives in a pool. Through the GUI I set the drive to offline then physically replaced the drive with another of the same size. However, back at the GUI, instead of selecting "Replace" on the drive's drop-down menu, I selected "Online." After doing that, instead of seeing "da0p2" for the name, it showed the GUID. I was unable to use the "offline" or "replace" options after that. This may not have been the best idea, but I ended up removing the drive from the pool. Now all I've got is the one drive.
I tried following some guides to re-add the drive to the pool.
blog.fosketts.net
However, I get this error:
What am I doing wrong?
I tried following some guides to re-add the drive to the pool.
Add a Mirror to an Existing ZFS Drive - Stephen Foskett, Pack Rat
I recently added a mirror to a very simple zfs pool and decided to document it here for posterity. This worked flawlessly in a FreeNAS 10 system with two 4 TB drives.
However, I get this error:
Code:
# zpool attach storage /dev/gptid/dcdb9427-e994-11ea-92bd-6805ca4284fc /dev/gptid/b16e8d1d-1389-11eb-b748-6805ca4284fc cannot attach /dev/gptid/b16e8d1d-1389-11eb-b748-6805ca4284fc to /dev/gptid/dcdb9427-e994-11ea-92bd-6805ca4284fc: can only attach to mirrors and top-level disks
What am I doing wrong?
Last edited: