[geeks] Solaris 10 u9 live-upgrade mini-howto
Phil Stracchino
alaric at metrocast.net
Sun Sep 12 15:35:08 CDT 2010
The results of some research and trial-and-error: Mini-howto on how to
live-upgrade to Solaris 10 u9, on ZFS, from a previous version that
lacks the new autoregistration feature, opting out of autoregistration
in the event that you do not have an existing autoregistration file or
don't wish to autoregister.
# mkdir /mnt/iso
# lofiadm -a /.../sol-10-u9-ga-x86-dvd.iso
# mount -F hsfs /dev/lofi/1 /mnt/iso
# /mnt/iso/Solaris_10/Tools/Installers/liveupgrade20
# lucreate -n s10_u9_amd64
# echo "auto_reg=disable" > /tmp/sysidcfg
# luupgrade -u -n s10_u9_amd64 -s /mnt/iso -k /tmp/sysidcfg
[ ...wait about 20-30 minutes... ]
# zfs set mountpoint=/a rpool/ROOT/s10_u9_amd64
# zfs mount rpool/ROOT/s10_u9_amd64
# less /a/var/sadm/system/data/upgrade_cleanup
[ do whatever is needed, which in my case amounted to undoing
replacement of openSSH-5.6p1 with Sun SSH 1.5 and re-adding my changes
to /etc/init.d/sysetup to ifconfig bge1 ]
# less /a/var/sadm/system/data/upgrade_failed_pkgadds (if applicable)
# zfs unmount rpool/ROOT/s10_u9_amd64
# zfs set mountpoint=/ rpool/ROOT/s10_u9_amd64
# luactivate s10_u9_amd64
# init 6
You'll probably have some post-reboot cleanup to do if you're using
non-Sun packages or applications. For instance, in my case, mysqld and
OpenFire (a jabberd) failed to start on the first try and had to be
manually started; I had to replumb bge1 (I can't set it up at the
sysidconfig phase because sysidconfig doesn't support point-to-point
interfaces); I had to zlogin -C to my nameserver zone to clear
sysidtool-net, which hadn't completed cleanly and turned out to have
stuck at "What kind of terminal", preventing 30 services from starting;
and I had to reload my property changes to
svc:/network/dns/server:default in the nameserver zone.
--
Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
alaric at caerllewys.net alaric at metrocast.net phil at co.ordinate.org
Renaissance Man, Unix ronin, Perl hacker, Free Stater
It's not the years, it's the mileage.
More information about the geeks
mailing list