k3ri

You've got a lot of choices. If getting out of bed in the morning is a chore and you're not smiling on a regular basis, try another choice.

Buy Handmade @ Etsy

March 05, 2009

Solaris, u6, live upgrade WITH zones in 10 easy steps.

Text

I will require a new head-smashy cushion for my desk.

Note: pca is not required, but general knowledge of patching is. You’ll need a support contract with SUN for the LU patch, since they don’t consider it security related. Your lucreate disks WILL DIFFER! Use metastat -c and /etc/vfstab to determine how.

  1. Install live upgrade patch MOST IMPORTANT!!!!  ( sh /patches/pca -i 121431-35.zip —patchurl=file:/patches )
  2. Halt all zones ( zoneadm -z ZONE halt )
  3. lucreate ( lucreate -n s10u6-20090305 -m /:/dev/md/dsk/d2:ufs -m /var:/dev/md/dsk/d4:ufs -C /dev/dsk/c1t0d0s0 ) If it complains of UUID problems, detach and reattach the zone.
  4. lumount new BE ( lumount s10u6-20090305 )
  5. patch new BE ( sh pca -i missings —patchurl=file:/patches -R /.alt.s10u6-20090305/ )
  6. luumount new BE ( luumount s10u6-20090305 )
  7. luactivate new BE ( luactivate s10u6-20090305 )
  8. init 6 ( pray, sacrifice goats, what have you )
  9. ludelete old BE
  10. cleanup time! ( zfs promote data/zones/ZONE and start destroying the clones and snapshots, zoneadm -z ZONE boot )