The procedure in this section only works for customers who have x86 machines running Solstice DiskSuite 4.0 or 4.1 on Solaris 2.5 or Solaris 2.5.1 and are upgrading to Solaris 8.
Before you begin this procedure, back up all file systems. See the ufsdump(1M) man page for details.
Repair any mirrors that have errors.
Save the metadb configuration, the metadevice configuration, the device bindings, and /etc/vfstab on a remote or a floppy disk.
One or more of these files can be overwritten when you reboot the machine, upgrade the operating system, or install the new version of DiskSuite. Here are some example commands that save the metadb configuration, the metadevice configuration, and /etc/vfstab on a local floppy disk:
# /usr/sbin/metadb > /dev/fd/metadb.cfg # /usr/sbin/metastat -p > /dev/fd/metadevice.cfg # cp /etc/vfstab /dev/fd/meta_vfstab # ls -l /dev/rdsk/*s0 > /dev/fd/binding # cp /etc/path_to_inst /dev/fd/path_to_inst
The following example commands save the metadb configuration, the metadevice configuration, and the /etc/vfstab to another machine called other_machine on the network connected to the system being upgraded:
# /usr/sbin/metadb -i > /net/other_machine/save/metadb.cfg # /usr/sbin/metastat -p > /net/other_machine/save/metadevice.cfg # cp /etc/vfstab /net/other_machine/save/meta_vfstab # ls -l /dev/rdsk/*s0 > /net/other_machine/save/bindings # cp /etc/path_to_inst /net/other_machine/dev/fd/path_to_inst
Make sure you save the metadb configuration, metadevice configuration and /etc/vfstab before going on to the next step in this procedure. Inability to restore any of them after the upgrade will result in data loss, and can result in complete system failure.
Clear any trans metadevices that may be used during the Solaris upgrade (for example, /usr, /var, and /opt).
See Solstice DiskSuite 4.2.1 User's Guide for information on clearing (removing logging from) trans metadevices. If you are uncertain which trans metadevices should be cleared, clear all trans metadevices.
In /etc/vfstab comment out file systems mounted on metadevices that are not simple metadevices or simple mirrors.
A simple metadevice is composed of a single component with a Start Block of 0. A simple mirror is composed of submirrors, all of which are simple metadevices.
Convert the remaining (simple) mirrors to one-way mirrors with the metadetach command.
Upgrade will be performed on a single submirror of each mirror. The other submirrors will be synced up with metattach after the upgrade.
If root (/) is mounted on a metadevice or mirror, set the root file system to be mounted on the underlying component of the metadevice or the underlying component of the remaining attached submirror.
Use the metaroot command to do this safely.
Edit the /etc/vfstab file to change any file systems or swap devices still mounted on metadevices or mirrors after Step 3.
Mount the file systems on the underlying component of the metadevices or the underlying component of the remaining attached submirrors.
Remove symbolic links to the DiskSuite startup files so that it is no longer initialized at boot time.
# rm /etc/rcS.d/S35lvm.init /etc/rc2.d/S95lvm.sync
These links will be added back later by reinstalling DiskSuite after the Solaris upgrade.
Halt the machine and upgrade to Solaris 8, then reboot the machine.
Make sure you upgrade the correct slice. On machines with mirrored root file systems, the Solaris installation software displays all slices used in the root mirror as available for upgrade. Choose the slice that the system boots from. The section, "How to Find the System Boot Slice When Upgrading the Solaris Operating System", explains how to locate the boot slice.
Install the Solstice DiskSuite 4.2.1 software using the instructions in the "Initial Installation of Solstice DiskSuite" section of this document.
This will re-establish the symbolic links removed in Step 8.
If root (/) was originally mounted on a metadevice or mirror, set the root (/) file system to be mounted back on the original metadevice or mirror.
Use the metaroot command to do this safely.
Edit the /etc/vfstab file to change any file systems or swap devices edited in Step 7 to be mounted back on their original metadevice or mirror.
Edit the /etc/vfstab file to uncomment the file systems commented out in Step 4.
Reboot the machine to remount the file systems.
Recreate the cleared trans metadevices. See Solstice DiskSuite 4.2.1 User's Guide for information on creating trans metadevices.