live upgrade procedure

20
Procedure for Live Upgrading a System from Sol8 to Sol9 (These steps were performed on 172.31.6.132 server) 1) Remove previously installed luu & lur packages from the server. # pkginfo -l SUNWluu PKGINST: SUNWluu NAME: Live Upgrade 2.0 10/01 (usr) CATEGORY: application ARCH: sparc VERSION: 11.8,REV=2001.10.30.17.21 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Live Upgrade (usr) PSTAMP: on28-patch20011030172223 INSTDATE: Feb 10 2005 16:59 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 156 installed pathnames 3 shared pathnames 7 directories 47 executables 1953 blocks used (approx) # pkginfo -l SUNWlur PKGINST: SUNWlur NAME: Live Upgrade 2.0 10/01 (root) CATEGORY: application ARCH: sparc VERSION: 11.8,REV=2001.11.15.21.52 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Live Upgrade (root) PSTAMP: on28-patch20011115215301 INSTDATE: Feb 10 2005 16:59 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 28 installed pathnames 7 shared pathnames 3 linked files 13 directories 8 executables 1370 blocks used (approx) # pkgrm SUNWluu The following package is currently installed:

Upload: rajlvu

Post on 22-Apr-2017

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Live Upgrade Procedure

Procedure for Live Upgrading a System from Sol8 to Sol9 (These steps were performed on 172.31.6.132 server)

1) Remove previously installed luu & lur packages from the server.

# pkginfo -l SUNWluu PKGINST: SUNWluu NAME: Live Upgrade 2.0 10/01 (usr) CATEGORY: application ARCH: sparc VERSION: 11.8,REV=2001.10.30.17.21 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Live Upgrade (usr) PSTAMP: on28-patch20011030172223 INSTDATE: Feb 10 2005 16:59 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 156 installed pathnames 3 shared pathnames 7 directories 47 executables 1953 blocks used (approx)

# pkginfo -l SUNWlur PKGINST: SUNWlur NAME: Live Upgrade 2.0 10/01 (root) CATEGORY: application ARCH: sparc VERSION: 11.8,REV=2001.11.15.21.52 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Live Upgrade (root) PSTAMP: on28-patch20011115215301 INSTDATE: Feb 10 2005 16:59 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 28 installed pathnames 7 shared pathnames 3 linked files 13 directories 8 executables 1370 blocks used (approx)

# pkgrm SUNWluu

The following package is currently installed: SUNWluu Live Upgrade 2.0 10/01 (usr) (sparc) 11.8,REV=2001.10.30.17.21

Do you want to remove this package? y

## Removing installed package instance <SUNWluu>## Verifying package dependencies.## Processing package information.## Removing pathnames in class <none>

Page 2: Live Upgrade Procedure

/usr/sbin/luupgrade/usr/sbin/luumount/usr/sbin/lustatus/usr/sbin/lurename/usr/sbin/lumount/usr/sbin/lumake/usr/sbin/lufslist/usr/sbin/ludelete/usr/sbin/lucurr/usr/sbin/lucreate/usr/sbin/lucompare/usr/sbin/lucancel/usr/sbin/luactivate/usr/sbin/lu/usr/sbin <shared pathname not removed>/usr/lib/lu/menu/lu.init/usr/lib/lu/menu/Text.success/usr/lib/lu/menu/Text.status/usr/lib/lu/menu/Text.ok/usr/lib/lu/menu/Text.lockerr/usr/lib/lu/menu/Text.list/usr/lib/lu/menu/Text.flash.nomedia/usr/lib/lu/menu/Text.flash.noarchive/usr/lib/lu/menu/Text.flash.invalid/usr/lib/lu/menu/Text.flash.delete/usr/lib/lu/menu/Text.fail/usr/lib/lu/menu/Text.err*********************Truncated*************************/usr/lib/lu/fstypes/usr/lib/lu/compare/usr/lib/lu/usr/lib <shared pathname not removed>/usr <shared pathname not removed>## Updating system information.

Removal of <SUNWluu> was successful.

# pkgrm SUNWlur

The following package is currently installed: SUNWlur Live Upgrade 2.0 10/01 (root) (sparc) 11.8,REV=2001.11.15.21.52

Do you want to remove this package? y

## Removing installed package instance <SUNWlur>## Verifying package dependencies.*******************************Truncated*********************************/etc/init.d <shared pathname not removed>/etc/default <shared pathname not removed>/etc <shared pathname not removed>## Updating system information.

Removal of <SUNWlur> was successful.

Page 3: Live Upgrade Procedure

2) Now install SUNWluu & SUNWlur packages either from CDROM or from an ISO image of Sol9 (kept under /usr/hit_softwares on Itinfranoc server)

# lofiadm -a /opt/live-upgrade/sol9-sparc.iso/dev/lofi/1# mount -F hsfs /dev/lofi/1 /mnt# df -k

Filesystem kbytes used avail capacity Mounted on/dev/dsk/c1t0d0s0 18155018 2746654 15226814 16% //proc 0 0 0 0% /procfd 0 0 0 0% /dev/fdmnttab 0 0 0 0% /etc/mnttabswap 24684272 32 24684240 1% /var/runswap 24687736 3496 24684240 1% /tmp/dev/dsk/c1t0d0s3 34080453 7591899 26147750 23% /opt/dev/lofi/1 2351816 2351816 0 100% /mnt

#cd / mnt/Solaris_9/Product# pkgadd -d . SUNWlur

Processing package instance <SUNWlur> from </mnt/Solaris_9/Product>

Live Upgrade (root)(sparc) 11.9,REV=2004.05.10.18.44Copyright 2002 Sun Microsystems, Inc. All rights reserved.Use is subject to license terms.Using </> as the package base directory.## Processing package information.## Processing system information. 9 package pathnames are already properly installed.## Verifying package dependencies.## Verifying disk space requirements.## Checking for conflicts with packages already installed.## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-userpermission during the process of installing this package.

Do you want to continue with the installation of <SUNWlur> [y,n,?] y

Installing Live Upgrade (root) as <SUNWlur>

## Executing preinstall script.## Installing part 1 of 1.2379 blocks/etc/lu/synclist[ verifying class <AddNoUpdate> ]Updating /etc/default/lu[ verifying class <EtcDefLu> ]## Executing postinstall script.

======================================================= IMPORTANT NOTICE

Patches Needed to Run Solaris Live Upgrade

Correct operation of Solaris Live Upgrade requires that a limited set of

Page 4: Live Upgrade Procedure

patch revisions be installed for SunOS 5.8 for the sparc platform.

Before installing or running Live Upgrade, you are required to install alimited set of patch revisions. Make sure you have the most recently updated patch list by consulting sunsolve.sun.com. Search for the info doc72099 on the SunSolve(tm) web site.

Live Upgrade may fail to work properly if the latest limited setof patch revisions are not installed on this system.

=======================================================

Installation of <SUNWlur> was successful.

# pkgadd -d . SUNWluu

Processing package instance <SUNWluu> from </mnt/Solaris_9/Product>

Live Upgrade (usr)(sparc) 11.9,REV=2005.06.28.23.29Copyright 2002 Sun Microsystems, Inc. All rights reserved.Use is subject to license terms.Using </> as the package base directory.## Processing package information.## Processing system information. 7 package pathnames are already properly installed.## Verifying package dependencies.## Verifying disk space requirements.## Checking for conflicts with packages already installed.## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-userpermission during the process of installing this package.

Do you want to continue with the installation of <SUNWluu> [y,n,?] y

Installing Live Upgrade (usr) as <SUNWluu>

## Installing part 1 of 1.2016 blocks## Executing postinstall script.

======================================================= IMPORTANT NOTICE

Patches Needed to Run Solaris Live Upgrade

Correct operation of Solaris Live Upgrade requires that a limited set ofpatch revisions be installed for SunOS 5.8 for the sparc platform.

Before installing or running Live Upgrade, you are required to install alimited set of patch revisions. Make sure you have the most recentlyupdated patch list by consulting sunsolve.sun.com. Search for the info doc72099 on the SunSolve(tm)> web site.

Live Upgrade may fail to work properly if the latest limited set

Page 5: Live Upgrade Procedure

of patch revisions are not installed on this system.

=======================================================

Installation of <SUNWluu> was successful.

Install the packages listed in the order at “http://sunsolve.sun.com/search/document.do?assetkey=1-61-72099-1”Please follow the instructions given under below mentioned section on the

URL

Patches are kept at /usr/hit_softwares/sol8-lu-patchlist on Itinfranoc server

“The following patches provide Live Upgrade functionality for Solaris 8 SPARC:” while proceeding with the patch install.

The following patches provide Live Upgrade functionality for Solaris 8 SPARC:

110380-06 or higher libadm patches

110934-26 or higher pkg utilities patch

112396-03 or higher fgrep patches

111111-07 or higher nawk patches

108987-18 or higher patchadd/patchrm patch**

112097-07 or higher cpio patch

111879-01 or higher prodreg patches for Live Upgrade

109147-43 or higher linker patches

108434-22 or higher SUNWlibC patches

108435-22 or higher SUNWlibCx patches

108693-26 or higher Disksuite patches

The following patch is only required if the SUNWmdja package is installed:

111755-02 or higher Disksuite patches

112345-04 or higher Pax patches

The following patch is only required if one or more of the SUNWkcspg, SUNWkcsrt, SUNWkcspx, or SUNWkcsrx packages are installed:

Page 6: Live Upgrade Procedure

111400-04 or higher kcms_server and kcms_configure patch

The following patch is only required if one or more of the SUNW5ttfe, SUNWcbcp, SUNWcttfe. SUNWcwbcp, SUNWcxoft, SUNWgttfe, SUNWhpcp, SUNWhttfe, SUNWkbcp, SUNWkttfe, or SUNWkwbcp packages are installed:

112279-03 or higher ALC Procedural script patch

The following patch is only required if one or more of the SUNWgttf, SUNWgttfe, or SUNWgxfnt packages are installed:

114251-01 or higher ALC Procedural script patch (Solaris 8 2/02)

108977-01 or higher libsmedia patch

108974-02 or higher sd and uata driver patch

If applied to the live boot environment, the following patch must be applied in single-user mode and a reboot is required to bring the system to a consistent state:

108968-12 or higher vol/vold/rmmount/dev_pcmem.so.1 patch (Reboot can be ignored here)

# patchadd 110380-06

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 110380-06 has been successfully installed.

See /var/sadm/patch/110380-06/log for details

Patch packages installed:

SUNWarc

SUNWarcx

SUNWcsl

SUNWcslx

SUNWcsr

Page 7: Live Upgrade Procedure

SUNWcstl

SUNWcstlx

# patchadd 110934-26

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 110934-26 has been successfully installed.

See /var/sadm/patch/110934-26/log for details

Patch packages installed:

SUNWarc

SUNWcsu

# patchadd 112396-03

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 112396-03 has been successfully installed.

See /var/sadm/patch/112396-03/log for details

Patch packages installed:

SUNWcsr

SUNWcsu

# patchadd 111111-07

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 111111-07 has been successfully installed.

Page 8: Live Upgrade Procedure

See /var/sadm/patch/111111-07/log for details

Patch packages installed:

SUNWcsr

SUNWesu

# patchadd 108987-18

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 108987-18 has been successfully installed.

See /var/sadm/patch/108987-18/log for details

Patch packages installed:

SUNWadmr

SUNWswmt

# patchadd 112097-07

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 112097-07 has been successfully installed.

See /var/sadm/patch/112097-07/log for details

Patch packages installed:

SUNWcsu

# patchadd 111879-01

Checking installed patches...

One or more patch packages included in

111879-01 are not installed on this system.

Page 9: Live Upgrade Procedure

Patchadd is terminating. (This Behavior can be safely ignored)

# patchadd 109147-43

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 109147-43 has been successfully installed.

See /var/sadm/patch/109147-43/log for details

Patch packages installed:

SUNWarc,,, SUNWbtool,,, SUNWbtoox,,, SUNWcsl,,,, SUNWcslx,,,,,,, SUNWcsr,,,,,,,, SUNWcsu,,,, SUNWcsxu,,,,, SUNWhea,,, SUNWmdb,,, SUNWmdbx,,,, SUNWosdem,,, SUNWtoo,, SUNWtoox

# patchadd 108434-22

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 108434-22 has been successfully installed.

See /var/sadm/patch/108434-22/log for details

Patch packages installed:

SUNWlibC

# patchadd 108435-22

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 108435-22 has been successfully installed.

See /var/sadm/patch/108435-22/log for details

Patch packages installed:

SUNWlibCx

Page 10: Live Upgrade Procedure

# patchadd 108693-26

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 108693-26 has been successfully installed.

See /var/sadm/patch/108693-26/log for details

Patch packages installed:

SUNWmdg

SUNWmdnu

SUNWmdr

SUNWmdu

SUNWmdx

# patchadd 111400-04

Checking installed patches...

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 111400-04 has been successfully installed.

See /var/sadm/patch/111400-04/log for details

Patch packages installed:

SUNWkcspg

SUNWkcspx

SUNWkcsrt

SUNWkcsrx

# patchadd 108968-12

Checking installed patches...

Page 11: Live Upgrade Procedure

Verifying sufficient filesystem capacity (dry run method)...

Installing patch packages...

Patch number 108968-12 has been successfully installed.

See /var/sadm/patch/108968-12/log for details

Patch packages installed:

SUNWcsr

SUNWesu

SUNWhea

SUNWvolu

SUNWvolux

Note: Patches giving errors while installation can be safely ignored..

Break if hardware RAID implemented.

raidctl –d <vol name>

Below mentioned is the status on the server while lucreate command is Executing

# lustatus

Boot Environment Is Active Active Can Copy

Name Complete Now On Reboot Delete Status

-------------------------- -------- ------ --------- ------ ----------

sol8 yes yes yes no -

sol9 no no no no ACTIVE

# df -k

Filesystem kbytes used avail capacity Mounted on

/dev/dsk/c1t0d0s0 18155018 2771478 15201990 16% /

/proc 0 0 0 0% /proc

fd 0 0 0 0% /dev/fd

Page 12: Live Upgrade Procedure

mnttab 0 0 0 0% /etc/mnttab

swap 24614856 40 24614816 1% /var/run

swap 24618376 3560 24614816 1% /tmp

/dev/dsk/c1t0d0s3 34080453 7647275 26092374 23% /opt

/dev/lofi/1 2351816 2351816 0 100% /mnt

/dev/dsk/c1t2d0s0 18155018 49725 17923743 1% /.alt.tmp.b-WZb.mnt

/dev/dsk/c1t2d0s3 34080453 4054732 29684917 13% /.alt.tmp.b-WZb.mnt/opt

(This is the status while running the lucreate command.)

Perform lucreate

# /usr/sbin/lucreate -c sol8 -n sol9 -C /dev/dsk/c1t0d0s0 -m /:/dev/dsk/c1t2d0s0:ufs -m /opt:/dev/dsk/c1t2d0s3:ufs

Discovering physical storage devices

Discovering logical storage devices

Cross referencing storage devices with boot environment configurations

Determining types of file systems supported

Validating file system requests

Preparing logical storage devices

Preparing physical storage devices

Configuring physical storage devices

Configuring logical storage devices

Analyzing system configuration.

No name for current boot environment.

Current boot environment is named <sol8>.

Creating initial configuration for primary boot environment <sol8>.

The device </dev/dsk/c1t0d0s0> is not a root device for any boot environment.

PBE configuration successful: PBE name <sol8> PBE Boot Device </dev/dsk/c1t0d0s0>.

Page 13: Live Upgrade Procedure

Comparing source boot environment <sol8> file systems with the file

system(s) you specified for the new boot environment. Determining which

file systems should be in the new boot environment.

Updating boot environment description database on all BEs.

Searching /dev for possible boot environment filesystem devices

Updating system configuration files.

The device </dev/dsk/c1t2d0s0> is not a root device for any boot environment.

Creating configuration for boot environment <sol9>.

Creating boot environment <sol9>.

Creating file systems on boot environment <sol9>.

Creating <ufs> file system for </> on </dev/dsk/c1t2d0s0>.

Creating <ufs> file system for </opt> on </dev/dsk/c1t2d0s3>.

Mounting file systems for boot environment <sol9>.

Calculating required sizes of file systems for boot environment <sol9>.

Populating file systems on boot environment <sol9>.

Checking selection integrity.

Integrity check OK.

Populating contents of mount point </>.

Populating contents of mount point </opt>.

Copying.

Creating shared file system mount points.

Creating compare databases for boot environment <sol9>.

Creating compare database for file system </opt>.

Creating compare database for file system </>.

Updating compare databases on boot environment <sol9>.

Page 14: Live Upgrade Procedure

Making boot environment <sol9> bootable.

Population of boot environment <sol9> successful.

Creation of boot environment <sol9> successful.

Verify status

# lustatus

Boot Environment Is Active Active Can Copy

Name Complete Now On Reboot Delete Status

-------------------------- -------- ------ --------- ------ ----------

sol8 yes yes yes no -

sol9 yes no no yes -

Perform luupgrade

# /usr/sbin/luupgrade -u -n "sol9" -s "/mnt"

Validating the contents of the media </mnt>.

The media is a standard Solaris media.

The media contains an operating system upgrade image.

The media contains <Solaris> version <9>.

Constructing upgrade profile to use.

Locating the operating system upgrade program.

Checking for existence of previously scheduled Live Upgrade requests.

Creating upgrade profile for BE <sol9>.

Determining packages to install or upgrade for BE <sol9>.

Performing the operating system upgrade of the BE <sol9>.

CAUTION: Interrupting this process may leave the boot environment unstable

or unbootable.

Page 15: Live Upgrade Procedure

Upgrading Solaris: 100% completed

Installation of the packages from this the media is complete.

Adding operating system patches to the BE <sol9>.

The operating system patch installation is complete.

INFORMATION: </var/sadm/system/logs/upgrade_log> contains a log of the

upgrade operation.

INFORMATION: </var/sadm/system/data/upgrade_cleanup> contains a log of

cleanup operations required.

WARNING: <1> packages failed to install properly on boot environment <sol9>.

INFORMATION: </var/sadm/system/data/upgrade_failed_pkgadds> on boot

environment <sol9> contains a list of packages that failed to upgrade or

install properly.

INFORMATION: Review the files listed above on boot environment <sol9>.

Before you activate the boot environment, determine if any additional

system maintenance is required or if additional media of the software

distribution must be installed.

The Solaris upgrade of the boot environment <sol9> is partially complete.

Perform Patch Upgrade

#luupgrade -n sol9 -s “/var/tmp/9_Recommended” –t `cat patch_order`

Where –u = indicates the function to perform-to install an OS image.

-n = Name of the BE to receive an OS upgrade.

-s = Path name of a directory containing an OS image. (In our case, Solaris 10 DVD)

Perform luactivate

#luactivate sol9

Boot Environment Is Active Active Can Copy

Page 16: Live Upgrade Procedure

Name Complete Now On Reboot Delete Status

-------------------------- -------- ------ --------- ------ ----------

sol8 yes yes no no -

sol9 yes no yes yes -

Note: Make sure you have the console access during reboot.

Important: In case of a failure while booting to the target BE, the following process needs to be followed to fallback to the currently working boot environment:

1. Enter the PROM monitor (ok prompt).

2. Boot the machine to Single User mode using a different boot device (like the Solaris Install CD or Network). Examples:

At the PROM monitor (ok prompt):

For boot to Solaris CD: boot cdrom -s

3. Mount the Current boot environment root slice to some directory (like /mnt). You can use the following command to mount:

mount -F ufs /dev/dsk/c0t0d0s0 /mnt

4. Run <luactivate> utility with out any arguments from the current boot environment root slice, as shown below:

/mnt/sbin/luactivate

5. luactivate, activates the previous working boot environment and indicates the result.

6. Exit Single User mode and reboot the machine.

Now reboot the server using either “SHUTDOW/init 6” to activate the LU “Sol9”

Activity completed.