Hard drive firmware updates used to be a scary process that involved downtime and required booting from an alternate source such as DVD. Solaris 10 allowed us to have mirrored root zpools starting with the 10/08 (u6) release, which allows us in many cases to update drive firmware essentially non-disruptively.
First of all, decide which drive you’re going to update first. In the following example, I update drive 0 first.
# zpool status
pool: rpool
state: ONLINE
scan: scrub repaired 0 in 0h48m with 0 errors on Thu Feb 28 11:24:23 2019
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
errors: No known data errors
# zpool offline rpool c1t0d0s0
# ./download
Firmware Download Utility, V4.3.1
************************** WARNING **************************
NO OTHER ACTIVITY IS ALLOWED DURING FIRMWARE UPGRADE!!!
No other programs including any volume manager (e.g. Veritas,
SDS, or Vold) should be running. Other host systems sharing
any I/O bus with this host must either be offline or
disconnected. Any interruption (e.g. power loss) during
upgrade can result in damage to devices being upgraded.
Any disk to be upgraded should first have its data backed up.
***************************************************************
Searching for devices...
DISK DEVICES
Device Rev Product
c1t0d0-c1t7d0: 0603 ST914602S -- SUN146G
Total Devices: 8
Enter command: As you can see, there are 8 drives that are all at firmware rev 0603. At the time I’m writing this post, the current firmware is 0703. The warning to back up the drive’s data before upgrading would otherwise be important to heed but I’m not worried about it for two reasons:
- I already have the data backed up as part of my normal, daily operational procedures pursuant to the disaster recovery/business continuity plan, and
- Once the update is finished and we online the drive into the pool, the operating system will resilver (remirror) it anyway.
Enter command: c1t0d0
Upgrading devices...
c1t0d0: Successful download
c1: recovery delay, 86 sec.
DISK DEVICES
Device Rev Product S/N
c1t0d0: 0703 ST914602S -- SUN146G 08XXXXXXX1
c1t1d0: 0603 ST914602S -- SUN146G 08XXXXXXXS
c1t2d0: 0603 ST914602S -- SUN146G 08XXXXXXXC
c1t3d0: 0603 ST914602S -- SUN146G 08XXXXXXXJ
c1t4d0: 0603 ST914602S -- SUN146G 08XXXXXXXS
c1t5d0: 0603 ST914602S -- SUN146G 08XXXXXXXG
c1t6d0: 0603 ST914602S -- SUN146G 08XXXXXXXM
c1t7d0: 0603 ST914602S -- SUN146G 08XXXXXXXK
Total Devices: 8
Enter command:As you can see, our c1t0d0 drive is now at rev 0703. Now all we have to do is bring the drive online:
# zpool online rpool c1t0d0s0
# and once the drive is done resilvering (which should be nearly instantaneous unless you left the drive offline for a long time), we’re ready to repeat the steps on c1t1d0.
Be aware that you won’t be able to update any drives that are assigned to a VDS while the primary is running. Not even unbinding the domain will allow you to update. You’ll have to either do an “ldm remove-vdsdev” on it/them or boot the primary in single-user mode to do the update(s).