Solstice DiskSuite 4.0 Administration Guide
只搜寻这本书
以 PDF 格式下载本书

Upgrading to Other Solaris Versions

D

Introduction

Upgrading to later versions of the Solaris environment while using metadevices requires steps not currently outlined in the Solaris documentation. The current Solaris upgrade procedure is incompatible with DiskSuite. The following supplemental procedure is provided as an alternative to completely reinstalling the Solaris and DiskSuite packages.

Note - You must have the media to upgrade Solaris (and DiskSuite if necessary).

Upgrading Solaris With Solstice DiskSuite


Imported image(39x43)

Warning - Before you begin this procedure, back up all file systems. See the ufsdump(1M) manual page for details.
  1. Repair any mirrors that have errors.

  2. Save /etc/vfstab for later use.

  1. Clear any metatrans devices that may be used during the Solaris upgrade (for example, /usr, /var, and /opt).

    See Chapter 6, "UFS Logging" for information on clearing (removing logging from) metatrans devices. If you are uncertain which metatrans devices should be cleared, clear all metatrans devices.

  2. Comment out file systems in /etc/vfstab 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.

  3. 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.

  4. 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.

  5. 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

  6. Remove symbolic links to the DiskSuite startup files so that it is no longer initialized at boot time.


  demo# rm /etc/rcS.d/S35SUNWmd.init /etc/rc2.d/S95SUNWmd.sync  

These links will be added back later by reinstalling DiskSuite after the Solaris upgrade.
  1. Halt the machine and upgrade Solaris, then reboot the machine.

  1. Reinstall DiskSuite, then reboot the machine.

    This will re-establish the symbolic links removed in Step 7.


Note - Make certain that the version of Solaris you are installing is compatible with DiskSuite 4.0.

  1. 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.

  2. Edit the /etc/vfstab file to change any file systems or swap devices edited in Step 6 to be mounted back on their original metadevice or mirror.

  3. Edit the /etc/vfstab file to uncomment the file systems commented out in Step 3.

  4. Reboot the machine to remount the file systems.

  5. Use the metattach command to reattach and resync any submirrors broken off in Step 4.

  6. Recreate the cleared metatrans devices. See Chapter 6, "UFS Logging" for information on creating metatrans devices.