Child pages
  • 2.1 Post-installation

Versions Compared

Key

  • 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:  https://www.illumos.org/issues/6160#change-15117

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
zdb


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: http://www.unix.com/filesystems-disks-and-memory/6224-difference-dsk-rdsk.html)

 

Mirroring rpool:

Code Block
titleMirroring rpool
root@host:~# zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:
        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
AVAILABLE DISK SELECTIONS:
       0. c2t50014EE65AC68D37d0 <ATA-WDCWD10JFCX-68N-0A82 cyl 60798 alt 2 hd 255 sec 126>
          /scsi_vhci/disk@g50014ee65ac68d37
       1. c2t50014EE65AC710BCd0 <ATA-WDC WD10JFCX-68N-0A82-931.51GB>
          /scsi_vhci/disk@g50014ee65ac710bc
Specify disk (enter its number): ^C

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

...