Sources

Etat avant

Commandes live upgrade

préparation du systeme

Avant toute chose, il faut commencer par installer les patchs recommendés dans l’infodoc 72099. Une fois fait, on va remplacer les packages LiveUpgrade de la version actuelle par ceux de la nouvelle version (recommandation de la documentation officielle).

Une méthode consiste à lancer le programme installer qui se trouve sur le CD/DVD du nouveau système.

On monte l’image iso :

lofiadm -a /export/local/jobic/sun/x86/sol-nv-b62-x86-dvd-iso
mount -F hsfs /dev/lofi/1 /mnt
ultra20-root% /mnt/installer 

Java Accessibility Bridge for GNOME loaded.



Solaris Web Start will assist you in installing software for Solaris Software.

   <Press ENTER to continue>


IMPORTANT NOTICE

Patches Needed to Run Solaris Live Upgrade

Correct operation of Solaris Live Upgrade requires that a limited set of patch
revisions be installed for a given OS version.

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

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

   <Press ENTER to continue>

Please select the type of install to perform from the following choices:

Typical - Software will be installed with the most common
options.  Recommended for most users.

Custom - You may choose the options you want to install.
Recommended for advanced users.

1. Typical
2. Custom

   What would you like to do [1]? 2

Solaris Software localized data for the languages showing a checked box will be
installed:


 [X]  --  English [en] [CURRENT LOCALE]

   To check a particular locale, enter its number, or 0 when you are finished
   [0]: 

Select the type of installation you want for each product.

     No Install  Default Install  Custom Install  Product
     ----------  ---------------  --------------  -------
 0.  [ ]         [X]              [ ]             Live Upgrade
 1.                                               Done
   Enter the number next to the product you wish to change.  Select "Done" when
   finished [1]: 

Checking disk space.


The following items will be installed:

Product: Live Upgrade
Location: /
Size: 2.08 MB
---------------------
     Live Upgrade (usr)    1.11 MB
Live Upgrade (root)    978.27 KB
Live Upgrade (config)    17.19 KB



Ready to Install

1. Install Now
2. Start Over
3. Exit Installation

   What would you like to do [1]? 
Sun Microsystems, Inc.
Binary Code License Agreement
Live Upgrade
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED
SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT")
CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE.  BY
OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS
OF THIS AGREEMENT.  IF YOU ARE ACCESSING THE SOFTWARE
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY
SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS
AGREEMENT.  IF YOU DO NOT AGREE TO ALL THESE TERMS,
PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE
OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED
ELECTRONICALLY, SELECT THE "DECLINE" BUTTON AT THE END OF
THIS AGREEMENT.
1.  LICENSE TO USE.  Sun grants you a non-exclusive and
non-transferable license for the internal use only of the
accompanying software and documentation and any error
corrections provided by Sun (collectively "Software"), by the
number of users and the class of computer hardware for which

    <--[15%]--[ENTER To Continue]--[n To Finish]-->n


   Enter 'y' to accept the license agreement. Enter 'n' to decline the license
   agreement and exit the install.y



Installing Live Upgrade
|-1%--------------25%-----------------50%-----------------75%--------------100%|


Installation details:

     Product       Result     More Info
 1.  Live Upgrade  Installed  Available

 2.  Done

   Enter the number corresponding to the desired selection for more
   information, or enter 2 to continue [2]: 

On peut aussi ajouter les patche suivants: 123614 (openGL), 125015 (ipfilter) et 118966+120202 (xorg). Ils suppriment des sources d’erreurs lors de l’installation de la b62.

Copie du systeme actuel

On copie le / actuel sur la partition libre :

homard#lucreate -c s10 -n b62 -m /:c4d0s0:ufs

Output:

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
The device name <c4d0s0> expands to device path </dev/dsk/c4d0s0>
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 <s10>.
Creating initial configuration for primary boot environment <s10>.
The device </dev/dsk/c1d0s0> is not a root device for any boot environment; cannot get BE ID.
PBE configuration successful: PBE name <s10> PBE Boot Device </dev/dsk/c1d0s0>.
Comparing source boot environment <s10> 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/c4d0s0> is not a root device for any boot environment; cannot get BE ID.
Creating configuration for boot environment <b62>.
Source boot environment is <s10>.
Creating boot environment <b62>.
Checking for GRUB menu on boot environment <b62>.
The boot environment <b62> does not contain the GRUB menu.
Creating file systems on boot environment <b62>.
Creating <ufs> file system for </> in zone <global> on </dev/dsk/c4d0s0>.
Mounting file systems for boot environment <b62>.
Calculating required sizes of file systems for boot environment <b62>.
Populating file systems on boot environment <b62>.
Checking selection integrity.
Integrity check OK.
Populating contents of mount point </>.
Copying.
Creating shared file system mount points.
Creating compare databases for boot environment <b62>.
Creating compare database for file system </>.
Reading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReaing of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of/etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/psswd failedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd filedReading of /etc/passwd failedReading of /etc/passwd failedReading of /etc/passwd failedReding of /etc/passwd failedReading of /etc/passwd failed
Updating compare databases on boot envronment <b62>.
Making boot environment <b62> bootable.
cksum: input file "//var/mail/jobic": Permission denied
Reading of /etc/passwd failedcksum: input file "//var/mail/lp": Permission denied
cksum: input file "//var/mail/sett5": Permission denied
Reading of /etc/passwd failedUpdating bootenv.rc on ABE <b62>.
Population of boot environment <b62> successful.
Creation of boot environment <b62> successful.

upgrade

On met à jour le système recopié :

luupgrade -u -n b62 -s /mnt

On peut voir l’état du processus avec la commande :

tail -f /a/var/sadm/system/logs/upgrade_log

ou la commande :

lustatus
Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status    
-------------------------- -------- ------ --------- ------ ----------
s10                        yes      yes    yes       no     -         
b62                        yes      no     no        no     UPDATING  

Output :

Install media is CD/DVD. </mnt>.
Copying failsafe kernel from media.
Uncompressing miniroot
Creating miniroot device
miniroot filesystem is <ufs>
Mounting miniroot at </mnt/Solaris_11/Tools/Boot>
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 <11>.
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 <b62>.
Checking for GRUB menu on ABE <b62>.
Checking for x86 boot partition on ABE.
Determining packages to install or upgrade for BE <b62>.
Performing the operating system upgrade of the BE <b62>.
CAUTION: Interrupting this process may leave the boot environment unstable 
or unbootable.
Upgrading Solaris: 100% completed
Installation of the packages from this media is complete.
Deleted empty GRUB menu on ABE <b62>.
Updating package information on boot environment <b62>.
Package information successfully updated on boot environment <b62>.
Adding operating system patches to the BE <b62>.
The operating system patch installation is complete.
ABE boot partition backing deleted.
Configuring failsafe for system.
Failsafe configuration is complete.
INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot 
environment <b62> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot 
environment <b62> contains a log of cleanup operations required.
WARNING: <1> packages failed to install properly on boot environment <b62>.
INFORMATION: The file </var/sadm/system/data/upgrade_failed_pkgadds> on 
boot environment <b62> contains a list of packages that failed to upgrade 
or install properly.
INFORMATION: Review the files listed above. Remember that all of the files 
are located on boot environment <b62>. Before you activate boot 
environment <b62>, 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 <b62> is partially complete.
Installing failsafe
Failsafe install is complete.

Verification

more `lumount b62`/var/sadm/system/logs/upgrade_log
luumount

Erreur :

Installation of <SUNWxorg-headers> was successful.
Doing pkgadd of SUNWxorg-mesa to /
pkgadd: ERROR: unable to create package object </a/usr/include/GL>.
    file type <s> expected <d> actual
    unable to remove existing directory at </a/usr/include/GL>
35148 blocks
pkgadd: ERROR: unable to create package object </a/usr/include/GL>.
    file type <s> expected <d> actual
    unable to remove existing directory at </a/usr/include/GL>

Activation

luactivate b62

Output :

WARNING: <1> packages failed to install properly on boot environment <b62>.
INFORMATION: </var/sadm/system/data/upgrade_failed_pkgadds> on boot 
environment <b62> contains a list of packages that failed to upgrade or 
install properly. Review the file before you reboot the system to 
determine if any additional system maintenance is required.

Saving latest GRUB loader.
Generating partition and slice information for ABE <b62>
Boot menu exists.
Generating direct boot menu entries for ABE.
Generating multiboot menu entries for PBE.

**********************************************************************

The target boot environment has been activated. It will be used when you 
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You 
MUST USE either the init or the shutdown command when you reboot. If you 
do not use either init or shutdown, the system will not boot using the 
target BE.

**********************************************************************

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. Do *not* change *hard* disk order in the BIOS.

2. Boot from the Solaris Install CD or Network and bring the system to 
Single User mode.

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

     mount -Fufs /dev/dsk/c1d0s0 /mnt

4. Run <luactivate> utility with out any arguments from the Parent 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.

**********************************************************************

Modifying boot archive service
GRUB menu is on device: </dev/dsk/c1d0s0>.
Filesystem type for menu device: <ufs>.
Activation of boot environment <b62> successful.

Recommencer

Pour recommencer, on détruit tout :

ludelete b62
newfs /dev/rdsk/c4d0s0
 
docs/liveupgrade.txt · Dernière modification: 04/05/2007 15:33 par ghenry