Creating a ZFS rpool mirror (x86)

System has 2 disks. rpool was setup on disk 0.

c8t0d0s0 (disk 0 with rpool)
c8t1d0s0 (disk 1 we want to mirror)

After installed and booted into new system… (as root)

format

(choose your second disk, should be 1 and in this sys it was c8t1d0)

fdisk

(here, choose Y to select the 100% Solaris partion)
exit to save changes

Now do…

prtvtoc /dev/rdsk/c8t0d0s0 | fmthard -s - /dev/rdsk/c8t1d0s0

(notice the “rdsk”, it’s not “dsk”, and it includes the slices. If you installed on a full drive, I don’t think you see the “s0″ slices)
Then I do…

zpool attach -f rpool c8t0d0s0 c8t1d0s0

And last setup grub on the second disk…

installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c8t1d0s0

Leave a Reply

Your email address will not be published. Required fields are marked *