Sabtu, 10 April 2010

Solaris Live Upgrade

train13:/export/data/s10u8/Solaris_10> lucreate -n c0t1d0s0 -m /:/dev/dsk/c0t1d0s0: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.
Comparing source boot environment 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 is not a root device for any boot environment; cannot get BE ID.
Creating configuration for boot environment .
Source boot environment is .
Creating boot environment .
Creating file systems on boot environment .
Creating file system for in zone on .
df: (/export/home/testzone) not a block device, directory or mounted resource
/usr/lib/lu/lumake: test: argument expected
Mounting file systems for boot environment .
Calculating required sizes of file systems for boot environment .
Populating file systems on boot environment .
Checking selection integrity.
Integrity check OK.
Populating contents of mount point .
Copying.
Creating shared file system mount points.
zoneadm: zone 'sys32': illegal UUID value specified
Copying root of zone to .
zoneadm: zone 'sys32': illegal UUID value specified
Copying root of zone to .
Copying root of zone to .
Copying root of zone to .
Copying root of zone to .
Copying root of zone to .
zoneadm: zone 'sys14': illegal UUID value specified
Copying root of zone to .
zoneadm: zone 'sys14': illegal UUID value specified
Copying root of zone to .
Copying root of zone to .
zoneadm: zone 'testzone': illegal UUID value specified
Copying root of zone to .
zoneadm: zone 'testzone': illegal UUID value specified
Creating compare databases for boot environment .
Creating compare database for file system .
Updating compare databases on boot environment .
Making boot environment bootable.
Setting root slice to .
Population of boot environment successful.
Creation of boot environment successful.
train13:/export/data/s10u8/Solaris_10>

train13:/opt/xampp/htdocs> lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0t0d0s0 yes yes yes no -
c0t1d0s0 yes no no yes -

train13:/export/data/s10u8/Solaris_10> luupgrade -u -n c0t1d0s0 -s /export/data/s10u8


62652 blocks
miniroot filesystem is
Mounting miniroot at
Validating the contents of the media .
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains version <10>.
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 .
Determining packages to install or upgrade for BE .
Performing the operating system upgrade of the BE .
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 3% completed

train13:/opt/xampp/htdocs> lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0t0d0s0 yes yes yes no -
c0t1d0s0 yes no no no UPDATING

train13:/opt/xampp/htdocs> df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 66G 57G 6.6G 90% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 710M 1.6M 708M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
swap 781M 72M 708M 10% /tmp
swap 709M 88K 708M 1% /var/run
optima 67G 34G 33G 51% /data
student 67G 49G 18G 74% /export
sec 67G 42G 25G 64% /sec
/tmp/miniroot.17620 780M 72M 708M 10% /export/data/s10u8/Solaris_10/Tools/Boot
/dev/dsk/c0t1d0s0 66G 54G 12G 82% /a
/data 67G 34G 33G 51% /a/data
/export 67G 49G 18G 74% /a/export
/sec 67G 42G 25G 64% /a/sec
swap 708M 56K 708M 1% /a/var/run
swap 708M 0K 708M 0% /a/tmp
swap 708M 8K 708M 1% /a/zones/sys33/lu
swap 708M 8K 708M 1% /a/zones/sys23/lu
swap 708M 8K 708M 1% /a/zones/sys13/lu
swap 708M 8K 708M 1% /a/zones/sys12/lu
swap 708M 8K 708M 1% /a/zones/sys22/lu
swap 708M 8K 708M 1% /a/zones/sys34/lu
swap 708M 8K 708M 1% /a/zones/sys44/lu

train13:/export/data/s10u8/Solaris_10> luupgrade -u -n c0t1d0s0 -s /export/data/s10u8


62652 blocks
miniroot filesystem is
Mounting miniroot at
Validating the contents of the media .
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains version <10>.
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 .
Determining packages to install or upgrade for BE .
Performing the operating system upgrade of the BE .
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.
Updating package information on boot environment .
Package information successfully updated on boot environment .
Adding operating system patches to the BE .
The operating system patch installation is complete.
INFORMATION: The file on boot
environment contains a log of the upgrade operation.
INFORMATION: The file on boot
environment contains a log of cleanup operations required.
WARNING: <42> packages failed to install properly on boot environment .
INFORMATION: The file on
boot environment 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 . Before you activate 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 is partially complete.
Installing failsafe
Failsafe install is complete.
train13:/export/data/s10u8/Solaris_10>

train13:/export/sa200/opt/ses/lab> lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0t0d0s0 yes yes yes no -
c0t1d0s0 yes no no yes -
train13:/export/sa200/opt/ses/lab>

train13:/export/sa200/opt/ses/lab> df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 66G 57G 6.6G 90% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 961M 1.6M 959M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
swap 960M 344K 959M 1% /tmp
swap 959M 88K 959M 1% /var/run
optima 67G 34G 33G 51% /data
student 67G 49G 18G 74% /export
sec 67G 42G 25G 64% /sec
train13:/export/sa200/opt/ses/lab>

train13:/export/sa200/opt/ses/lab> luactivate c0t1d0s0
A Live Upgrade Sync operation will be performed on startup of boot environment .
WARNING: <42> packages failed to install properly on boot environment .
INFORMATION: on boot
environment 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.


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

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. Enter the PROM monitor (ok prompt).

2. Change the boot device back to the original boot environment by typing:

setenv boot-device /pci@1f,0/pci@1/scsi@8/disk@0,0:a

3. Boot to the original boot environment by typing:

boot

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

Modifying boot archive service
Activation of boot environment successful.
train13:/export/sa200/opt/ses/lab>

train13:/export/sa200/opt/ses/lab> lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0t0d0s0 yes yes no no -
c0t1d0s0 yes no yes no -
train13:/export/sa200/opt/ses/lab>

Tidak ada komentar: