Solaris Upgrade
The following steps were used to perform an upgrade from
Solaris 2.6 to Solaris 8 using Solaris Interactive Installation. The
disks on the system are under DiskSuite control.
Make sure to read Appendix
B Upgrading to Other Solaris Versions from the DiskSuite 4.2.1
Reference Guide.
Metadevice information:
d1 (/) is a mirror with submirrors d18 (mirror disk) and d2 (boot disk)
d10 (/usr) is a mirror with submirrors d21 (mirror disk) and d11 (boot
disk)
d13 (/var) is a mirror with submirrors d22 (mirror disk) and d14 (boot
disk)
d16 (/opt) is a mirror with submirrors d23 (mirror disk) and d17 (boot
disk)
d4 (swap) is a mirror with submirrors d19 (mirror disk) and d5 (boot
disk)
d7 (/files0) is a mirror with submirrors d20 (mirror disk) and d8 (boot
disk)
d0 (/files2) is a RAID0 metadevice spanning several disks
The boot disk is c1t2d0. The mirror disk is c1t1d0.
1. Backup /etc/vfstab
cp /etc/vfstab /etc/vfstab_pre_upgrade
2. Comment out file systems that are not simple metadevices (single
component with a Start Block of 0) or simple mirrors in /etc/vfstab. Based on the above
information, comment out /files2
in /etc/vfstab.
3. Convert the remaining simple mirrors to one-way mirrors by detaching
the submirror on the mirror disk from the mirror metadevice.
# ./metadetach d1 d18
d1: submirror d18 is detached
# ./metadetach d10 d21
d10: submirror d21 is detached
# ./metadetach d13 d22
d13: submirror d22 is detached
# ./metadetach d16 d23
d16: submirror d23 is detached
# ./metadetach d4 d19
d4: submirror d19 is detached
# ./metadetach d7 d20
d7: submirror d20 is detached
4. Set the root file system to be mounted on the underlying component
of the root metadevice. c1t2d0 is the boot disk, and slice 0 is the
root slice.
# ./metaroot /dev/dsk/c1t2d0s0
5. Modify /etc/vfstab to
mount the file systems on the underlying component of the metadevices.
Before:
# grep -v "^#" /etc/vfstab
fd
- /dev/fd
fd -
no -
/proc
- /proc
proc -
no -
/dev/md/dsk/d4
-
- swap
- no -
/dev/dsk/c1t2d0s0
/dev/rdsk/c1t2d0s0
/ ufs
1 no -
/dev/md/dsk/d10
/dev/md/rdsk/d10
/usr ufs
1 no -
/dev/md/dsk/d13
/dev/md/rdsk/d13
/var ufs
1 no -
/dev/md/dsk/d7
/dev/md/rdsk/d7 /files0 ufs
2 yes -
/dev/md/dsk/d16
/dev/md/rdsk/d16
/opt ufs
2 yes -
swap
- /tmp
tmpfs -
yes -
After:
# grep -v "^#" /etc/vfstab
fd
- /dev/fd
fd -
no -
/proc
- /proc
proc -
no -
/dev/dsk/c1t2d0s1
-
- swap
- no -
/dev/dsk/c1t2d0s0
/dev/rdsk/c1t2d0s0
/ ufs
1 no -
/dev/dsk/c1t2d0s5
/dev/rdsk/c1t2d0s5 /usr
ufs 1
no -
/dev/dsk/c1t2d0s6
/dev/rdsk/c1t2d0s6 /var
ufs 1
no -
/dev/dsk/c1t2d0s4
/dev/rdsk/c1t2d0s4 /files0
ufs 2
yes -
/dev/dsk/c1t2d0s7
/dev/rdsk/c1t2d0s7 /opt
ufs 2
yes -
swap
- /tmp
tmpfs -
yes -
6. Remove symbolic links to the DiskSuite startup files so that
DiskSuite is not initalized at boot time.
rm /etc/rcS.d/S35SUNWmd.init
/etc/rc2.d/S95SUNWmd.sync
7. Insert the Solaris 8 Software 1 CD and boot the system from the CD.
shutdown -i0 -g0 -y
boot cdrom
-- or --
reboot -- cdrom
8. Choose "Upgrade" during the Solaris Interactive Installation.
─ Solaris Interactive
Installation ─────────────────────────────────────────────
This system is upgradable,
so there are two ways to install the Solaris
software.
The Upgrade option updates
the Solaris software to the new release, saving
as many modifications to
the previous version of Solaris software as
possible. Back up
the system before using the Upgrade option.
The Initial option
overwrites the system disks with the new version of
Solaris software.
This option allows you to preserve any existing file
systems. Back up any
modifications made to the previous version of Solaris
software before starting
the Initial option.
9. After the upgrade is complete, reboot the system and reinstall
DiskSuite. After DiskSuite
installation, add the /etc/vfstab entries
that were commented out in step 2 above. The machine will once again
have to be rebooted.
10. If you did not make changes to the partition table during the
upgrade, you may reattach the submirrors to the mirror metadevices.
Edit /etc/vfstab to mount the
mirror metadevices.
If you made changes to the partition table using Auto-layout (ex. the /usr and / file system size requirements are
greater in Solaris 8 than previous versions), I would recommend
removing the mirror metadevices, duplicating the partition table of the
boot disk to the mirror disk, and recreating the mirror metadevices.
Edit /etc/vfstab to mount the
mirror metadevices.
11. Install the latest Recommended Patch Cluster for Solaris 8.
Reboot after completing patch cluster installation.
Problems installing Software CD 2
Following the first reboot after the upgrade, the Solaris installer
prompts for Software CD 2. If the installer does not recognize the CD,
or has problems installing packages from the CD, mount Software 2 CD
and run installer. Other
users have apparently had these problems.
Also, if Software CD 2 is not installed, you may run into errors when
installing packages (such as re-installing DiskSuite):
Cannot find required executable
/usr/bin/bzcat
pkgadd: ERROR: class action
script did not complete successfully
/etc/vfstab errors during
upgrade
When attempting to upgrade from Solaris 2.6 to Solaris 8, I received
the following error:
The Solaris Version (Solaris 2.6) on slice c0t0d0s0 cannot be
upgraded.
A file system listed in the file system table (vfstab) could not
be mounted.
Although each of the file systems listed in /etc/vfstab could be manually
mounted, I had to comment out /etc/vfstab
entries for file systems that are not part of the operating system
upgrade, such as /export/home
and /opt in this example:
#/dev/dsk/c0t0d0s7
/dev/rdsk/c0t0d0s7
/export/home ufs
2 yes -
#/dev/dsk/c0t0d0s5
/dev/rdsk/c0t0d0s5 /opt
ufs 2
yes -
Of course, when the upgrade completes, make sure to uncomment these
file systems.
Back to brandonhutchinson.com.
Last modified: 08/25/2004