my idea is to use a different box i have sitting here, i would boot up to a linux live usb.
take 1 of the mirror sticks from my server and the new 120gssd put both of them in the live linux box.
use gparted to find the names of the UBS mirror and the new ssd. then use
Code:
gpart backup <usb-device> | gpart restore -F <ssd-device>
Linux does not have gpart. And why would you employ such a convoluted procedure? I missed that your USB devices are already mirrored, but that does not change much. Let me explain step by step:
1. Shutdown your system and connect your SSD (obviously). Then boot from USB as always.
2. Copy the partition table from one of your USB devices to your SSD:
gpart backup <usb-device> | gpart restore -F <ssd-device>
gpart is a FreeBSD tool and the above command only copies the partition table, not the contents of the disk.
3. Attach the second partition of the SSD to the existing boot pool mirror:
zpool attach freenas-boot <first-usb-device>p2 <ssd-device>p2
The boot pool resides in partition #2 of however many devices you use. By attaching the second partition of the SSD this way you create a three-way-mirror and ZFS will "resilver" - you are probably aware of that. Afterwards and without taking anything offline your SSD will have the "freenas-boot" pool in its second partition. Just wait for the resilver to finish.
zpool status freenas-boot
will tell you when it's done.
4. With the system still running and everything we could now detach the USB devices from the ZFS pool if it wasn't for booting, so we postpone that.
5. Transfer boot code:
dd if=<first-usb-device>p1 of=<ssd-device>p1
The boot code resides in partition #1 on all relevant devices. Same for GPT/legacy and for GPT/UEFI boot, it's always the first partition. So we copy that over and the system will be able to boot.
6. Now detach the USB devices:
zpool detach freenas-boot <first-usb-device>p2
zpool detach freenas-boot <second-usb-device>p2
The mirror vdev lives in partition #2 of all devices, so we detach this. Removing vdev parts is perfectly possible for mirrors. Another
zpool status freenas-boot
will show you that the boot pool is now comprised of the SSD partition #2 only.
7. Unplug USB devices, no need to reboot.
Kind regards,
Patrick