Child pages
  • 2.1 Post-installation

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


ZFS handles mirroring rpools automagically (see:  /etc/sysevent/config/SUNW,EC_zfs,ESC_ZFS_bootfs_vdev_attach,sysevent.conf)  It will install grub onto the new attached disk.

Note:  This should work but there is a bug:

So while this will work in the future because of the script that is ran on the add event, right now you still have to manually install the boot loader to the disk you add.  I installed the bootloader after I Mirrored the rpool below.

So New disk is c2t50014EE65AC68D37d0

Code Block

Find the full path that has the s0 on it then:

Code Block
 installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c2t50014EE65AC68D37d0s0

I had to change the dsk to rdsk. (Difference:


Mirroring rpool:

Code Block
titleMirroring rpool
root@host:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
        NAME                     STATE     READ WRITE CKSUM
        rpool                    ONLINE       0     0     0
          c2t50014EE65AC710BCd0  ONLINE       0     0     0
errors: No known data errors

root@host:~# format
Searching for disks...done
       0. c2t50014EE65AC68D37d0 <ATA-WDCWD10JFCX-68N-0A82 cyl 60798 alt 2 hd 255 sec 126>
       1. c2t50014EE65AC710BCd0 <ATA-WDC WD10JFCX-68N-0A82-931.51GB>
Specify disk (enter its number): ^C

root@host:~# zpool attach rpool c2t50014EE65AC710BCd0 c2t50014EE65AC68D37d0
Make sure to wait until resilver is done before rebooting.