root@sol1 ~ $ sudo mkdir
/media/solaris10-iso
root@sol1 ~ $
root@sol1 ~ $
sudo mount
/media/ACER/Users/sol1/Downloads/Solaris-10-u7-ga-x86x64-dvd.iso
/media/solaris10-iso/ -t iso9660 -o loop
root@sol1 ~ $
root@sol1 ~ $
ls -lrt
/media/solaris10-iso/
total 490
-r–r–r– 1 root root 487593 2009-02-26 01:52
JDS-THIRDPARTYLICENSEREADME
-r–r–r– 1 root root 6582 2009-02-26 01:55 Copyright
-r-xr-xr-x 1 root root 257 2009-03-31 00:20 installer
dr-xr-xr-x 2 root root 2048 2009-03-31 00:34 License
dr-xr-xr-x 7 root root 2048 2009-03-31 00:34 Solaris_10
dr-xr-xr-x 3 root root 2048 2009-03-31 00:34 boot
root@sol1 ~ $
root@sol1 ~ $
df -h |grep solaris
/dev/loop0 2.2G 2.2G 0 100% /media/solaris10-iso
root@sol1 ~ $
root@sol1 ~ $
cat /etc/exports |tail
-1
/media/solaris10-iso SERVER1(ro,root_squash)
SERVER2(ro,root_squash) SERVER3(ro,root_squash)
SERVER4(ro,root_squash)
root@sol1 ~ $
root@sol1 ~ $
sudo exportfs -a
…
…
…
exportfs: /etc/exports [2]: Neither ‘subtree_check’ or
‘no_subtree_check’ specified for export
“SERVER1:/media/solaris10-iso”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.x
root@sol1 ~ $
root@sol1 ~ $
exportfs
…
…
…
/media/solaris10-iso
SERVER4
root@sol1 ~ $
root@sol1 ~ $
showmount
-e
Export list for sol1:
/media/solaris10-iso SERVER1,SERVER2,…
/home/sol1/Virtual_Machines/Virtualbox_Share SERVER1,SERVER2,…
###Mounting the shared ISO image as
NFS mountpoint in Solaris 9 Server###
bash-2.05#
uname -a
SunOS rskvmsol9 5.9 Generic_112234-03 i86pc i386 i86pc
bash-2.05#
/etc/init.d/nfs.client start
bash-2.05#
ps -ef |grep -i nfs
root 172 1 0 03:27:24 ? 0:00 /usr/lib/nfs/lockd
daemon 170 1 0 03:27:23 ? 0:00 /usr/lib/nfs/statd
root 324 286 0 03:39:11 pts/1 0:00 grep -i nfs
bash-2.05#
bash-2.05#
mkdir /solaris10-iso
bash-2.05#
bash-2.05
# mount -F nfs NFS_SERVER:/media/solaris10-iso
/solaris10-iso/
bash-2.05#
bash-2.05#
df -h |grep solaris
NFS_SERVER:/media/solaris10-iso 2.2G 2.2G 0K 100% /solaris10-iso
###Solaris Live Upgrade (From Solaris
9 to Solaris 10)###
bash-2.05#
uname -a
SunOS rskvmsol9 5.9 Generic_112234-03 i86pc i386 i86pc
bash-2.05#
bash-2.05#
cat /etc/release
Solaris 9 12/02 s9x_u2wos_10 x86
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 05 November 2002
bash-2.05#
bash-2.05#
df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 992M 466M 466M 51% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 884M 16K 884M 1% /var/run
/dev/dsk/c0d0s5 481M 15K 433M 1% /opt
swap 884M 0K 884M 0% /tmp
/dev/dsk/c0d0s7 3.9G 9K 3.9G 1% /export/home
10.176.80.232:/media/solaris10-iso
2.2G 2.2G 0K 100% /solaris10-iso
###Added a new disk for performing live
upgrade###
bash-2.05#
devfsadm -c disk
bash-2.05#
format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
Specify disk (enter its number): ^D
bash-2.05#
bash-2.05#
format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
Specify disk (enter its number):
1
AVAILABLE DRIVE TYPES:
0. DEFAULT
1. other
Specify disk type (enter its number):
0
selecting c0d1
No current partition list
No defect list found
[disk formatted, no defect list found]
FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
fdisk – run the fdisk program
repair – repair a defective sector
show – translate a disk address
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
volname – set 8-character volume name
!
– execute , then return
quit
format>
p
Please run fdisk first.
format>
fdisk
No fdisk table exists. The default partition for the disk is:
a 100% “SOLARIS System” partition
Type “y” to accept the default partition, otherwise type “n”
to edit the
partition table.
y
format>
^D
bash-2.05#
bash-2.05#
prtvtoc /dev/dsk/c0d0s0 | fmthard -s –
/dev/rdsk/c0d1s0
fmthard: New volume table of contents now in place.
bash-2.05#
#Now new disk is ready for creating new boot environment
#Now
we need to patch the Solaris 9 server before installing live upgrade
packages from Solaris 10(to which the operating environment is going
to be upgraded)
#If you ignore patching, you can still create the
new BE using
lucreate command successfully. But you
can’t upgrade the inactive BE to Solaris 10 as we desire. While
upgrading using
luupgrade command, we’ll encounter
patching errors which will prevent us from proceeding further. I
verified this fact practically already. Hence it is strongly
recommended to patch the running OS (as suggested by
“
http://sunsolve.sun.com/search/document.do?assetkey=1-61-206844-1“)
bash-2.05#
cd /var/tmp/solaris9_patches/bash-2.05#
ls -lrttotal 24
drwxr-xr-x 3 root other 512
Aug 30 2003 114483-04
drwxr-xr-x 3 root other 512 Sep 12 2005
115690-01
drwxr-xr-x 4 root other 512 Sep 15 2005 120465-01
drwxr-xr-x 3 root other 512 Aug 28 2006 114330-02
drwxr-xr-x
3 root other 512 Nov 13 2007 114194-11
drwxr-xr-x 4 root other
512 Apr 3 2008 137478-01
drwxr-xr-x 3 root other 512 May 29 2008
115167-08
drwxr-xr-x 6 root other 512 Jun 29 2009 114568-27
drwxr-xr-x 4 root other 512 Aug 21 21:19 114637-05
drwxr-xr-x
12 root other 512 Sep 23 21:57 114273-04
drwxr-xr-x 26 root other
1024 Jan 26 22:23 122301-48
bash-2.05#
patchadd 120465-01/
Checking installed patches…
ERROR: This patch requires patch
117172-17
which has not been applied to the system.
Patchadd is terminating.
#Hence downloaded this patch 117172-17 (kernel patch) also &
installed first
#This kernel patch needs to be applied single
user mode & system needs to be restarted immediately
bash-2.05#
ls -lrttotal 24
drwxr-xr-x 3
root other 512 Aug 30 2003 114483-04
drwxr-xr-x 24 root other
1024 Jan 22 2005 117172-17
drwxr-xr-x 3 root other 512 Sep 12
2005 115690-01
drwxr-xr-x 4 root other 512 Sep 15 2005 120465-01
drwxr-xr-x 3 root other 512 Aug 28 2006 114330-02
drwxr-xr-x
3 root other 512 Nov 13 2007 114194-11
drwxr-xr-x 4 root other
512 Apr 3 2008 137478-01
drwxr-xr-x 3 root other 512 May 29 2008
115167-08
drwxr-xr-x 6 root other 512 Jun 29 2009 114568-27
drwxr-xr-x 4 root other 512 Aug 21 21:19 114637-05
drwxr-xr-x
12 root other 512 Sep 23 21:57 114273-04
drwxr-xr-x 26 root other
1024 Jan 26 22:23 122301-48
#Run
patchadd command for all of these patches in
the following order & instruction,
#
init s && patchadd 117172-17 && init
6#
patchadd 120465-01 && init 6#
patchadd
114568-27 (No need of installing the Patch 115690-01 as it
was obsoleted by 114568-27)
#
patchadd 114194-11#
patchadd
115167-08#
patchadd 114483-04#
patchadd
137478-01#
patchadd 114330-02#
init
6
#These patches should be sufficient for proceeding further with
live upgrade#
bash-2.05#
pkginfo |grep lusystem SUNWcqhpc
COMPAQ Hot Plug PCI controller driver
system SUNWctlu Print
utilities for CTL locales
system SUNWdthez Desktop Power Pack
Help Volumes
application SUNWj2pi Java Plug-in
system SUNWmdr
Solaris Volume Manager, (Root)
system SUNWmdu Solaris Volume
Manager, (Usr)
system SUNWpiclu PICL Libraries, and Plugin
Modules (Usr)
system SUNWvolg Volume Management Graphical User
Interface
system SUNWvolr Volume Management, (Root)
system
SUNWvolu Volume Management, (Usr)
system SUNWxwhl X Window System
& Graphics Header links in /usr/include
#So there is no existing installation of live upgrade packages
available. Hence mount Solaris 10 DVD & install liveupgrade
packages to the system
bash-2.05#
bash-2.05#
cd
/solaris10-iso/Solaris_10/Tools/Installers/bash-2.05#
./liveupgrade20 -noconsole -nodisplay
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.
…
…
…
For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
bash-2.05#
bash-2.05#
pkginfo |grep SUNWluapplication
SUNWlucfg Live Upgrade Configuration
application SUNWlur Live
Upgrade (root)
application SUNWluu Live Upgrade (usr)
bash-2.05#
pkginfo -l SUNWlucfg SUNWlur SUNWluuPKGINST:
SUNWlucfg
NAME: Live Upgrade Configuration
CATEGORY:
application
ARCH: i386
VERSION: 11.10,REV=2007.03.09.15.05
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Live
Upgrade Configuration
PSTAMP: on10-adms-patch-x20080801100945
INSTDATE: Feb 17 2010 04:44
HOTLINE: Please contact your
local service provider
STATUS: completely installed
FILES: 5
installed pathnames
3 shared pathnames
3 directories
35
blocks used (approx)
PKGINST: SUNWlur
NAME: Live Upgrade (root)
CATEGORY:
application
ARCH: i386
VERSION: 11.10,REV=2005.01.09.21.46
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Live
Upgrade (root)
PSTAMP: on10-adms-patch-x20080801100947
INSTDATE:
Feb 17 2010 04:44
HOTLINE: Please contact your local service
provider
STATUS: completely installed
FILES: 39 installed
pathnames
9 shared pathnames
4 linked files
15
directories
13 executables
4230 blocks used (approx)
PKGINST: SUNWluu
NAME: Live Upgrade (usr)
CATEGORY:
application
ARCH: i386
VERSION: 11.10,REV=2005.01.09.21.46
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Live
Upgrade (usr)
PSTAMP: on10-adms-patch-x20080801100949
INSTDATE:
Feb 17 2010 04:44
HOTLINE: Please contact your local service
provider
STATUS: completely installed
FILES: 165 installed
pathnames
7 shared pathnames
11 directories
45
executables
4022 blocks used (approx)
bash-2.05#
#Now creating new BE (inactive) which is just a copy of the
running Solaris 9 OS
#Here naming the current BE as sol9 &
new BE as sol10
#Before beginning,make sure that you allocate
more disk space to new environment(ABE) (atleast twice/thrice that of
Current BE). Live upgrade will fail during
luupgrade
command execution if the space is not sufficient!!!
bash-2.05#
lucreate -c sol9 -n sol10 -m
/:c0d1s0:ufsDiscovering 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
expands to device path
Preparing logical storage devices
Preparing physical storage
devices
Configuring physical storage devices
Configuring
logical storage devices
Checking GRUB menu…
System has
findroot enabled GRUB
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
.
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.
WARNING: The file
contains a list of <2>
potential problems (issues) that
were encountered while populating boot
environment
.
INFORMATION: You must review the issues listed in
2> and determine if any must be
resolved. In
general, you can ignore warnings about files that
were skipped because
they did not exist or could not be opened.
You cannot ignore errors such
as directories or files that could
not be created, or file systems running
out of disk space. You
must manually resolve any such problems before you
activate boot
environment
.
Creating compare databases for boot
environment .
Creating compare database for file
system .
Creating compare database for file system
</>.
Updating compare databases on boot environment
.
Making boot environment bootable.
Updating bootenv.rc on ABE .
Skipping menu entry
delete: Non existent GRUB menu
Population of boot environment
successful.
Creation of boot environment successful.
bash-2.05#
###Now check for any errors & the status of the OS
Environments
bash-2.05#
ls -lrt /tmp/lucopy.errors.2707-rw-r–r–
1 root other 24 Feb 17 07:10 /tmp/lucopy.errors.2707
bash-2.05#
bash-2.05#
cat /tmp/lucopy.errors.27071155232
blocks
0 blocks
bash-2.05#
bash-2.05#
lustatus -l
/tmp/lucopy.errors.2707Boot Environment Is Active Active
Can Copy
Name Complete Now On Reboot Delete Status
————————–
——– —— ——— —— ———-
sol9 yes yes yes no
–
sol10 yes no no yes –
bash-2.05#
bash-2.05#
lustatus sol10Boot Environment Is Active Active
Can Copy
Name Complete Now On Reboot Delete Status
————————–
——– —— ——— —— ———-
sol10 yes no no yes
–
bash-2.05#
bash-2.05#
lustatus Boot
Environment Is Active Active Can Copy
Name Complete Now On Reboot
Delete Status
————————– ——– —— ———
—— ———-
sol9 yes yes yes no –
sol10 yes no no yes
–
bash-2.05#
###Now we’ve a copy of Solaris 9 as ABE (Alternate Boot
Environment). This needs to be upgraded to Solaris 10 (from DVD
image) using luupgrade as follows,
bash-2.05#
luupgrade -u -n sol10 -s /solaris10iso/
System has findroot enabled GRUB
Skipping menu entry delete:
Non existent GRUB menu
Copying
failsafe kernel from media.
Uncompressing miniroot
Creating
miniroot device
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
.
Checking for GRUB menu on ABE .
Checking for x86 boot partition on ABE.
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: 5% completed
Upgrading
Solaris: 20% completed
Upgrading Solaris: 33% completed
Upgrading Solaris: 38% completed
Upgrading Solaris: 48%
completed
Upgrading Solaris: 57% completed
Upgrading Solaris:
88% completed
Upgrading Solaris: 100% completed
Installation
of the packages from this media is complete.
Deleted empty GRUB
menu on ABE .
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.
ABE boot partition backing
deleted.
PBE GRUB has no capability information.
PBE GRUB has
no versioning information.
ABE GRUB is newer than PBE GRUB.
Updating GRUB.
GRUB update was successfull.
Configuring
failsafe for system.
Failsafe configuration is complete.
INFORMATION: The file 10>
on boot
environment
contains a log of the upgrade
operation.
INFORMATION: The file
on boot
environment
contains a log of cleanup operations required.
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 complete.
Installing failsafe
Failsafe install is complete.
bash-2.05#
###ABE upgradation has got completed successfully. Now activate
the ABE as active BE & reboot(using init 6 and strictly not with
reboot command) to check whether it boots properly.
bash-2.05#
luactivate sol10System has findroot
enabled GRUB
A Live Upgrade Sync operation will be performed on
startup of boot environment
.
Generating boot-sign for ABE
Generating
partition and slice information for ABE
No boot
menu exists. Creating new menu file
Generating multiboot menu
entries for ABE.
Disabling splashimage
Re-enabling
splashimage
GRUB menu has no default setting
No more bootadm
entries. Deletion of bootadm entries is complete.
GRUB menu
default setting is unchanged
Done eliding bootadm entries.
**********************************************************************
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. Boot from the Solaris failsafe or boot in Single User mode from
Solaris
Install CD or Network.
2. Mount the Parent boot environment root slice to some directory
(like
/mnt). You can use the following command to mount:
mount -Fufs /dev/dsk/c0d0s0 /mnt
3. Run
utility with out any arguments from the
Parent boot
environment root slice, as shown below:
/mnt/sbin/luactivate
4. luactivate, activates the previous working boot environment and
indicates the result.
5. Exit Single User mode and reboot the machine.
**********************************************************************
Modifying boot archive service
Propagating findroot GRUB for
menu conversion.
File
propagation successful
File
propagation successful
File
propagation successful
File
propagation successful
Deleting stale GRUB loader from all BEs.
File deletion successful
File
deletion successful
File
deletion successful
Activation of
boot environment
successful.
##After reboot, successfully Solaris 10 booted & perfectly
working
bash-3.00#
uname -aSunOS rskvmsol9 5.10
Generic_139556-08 i86pc i386 i86pc
bash-3.00#
bash-3.00#
lustatusBoot Environment Is Active Active Can
Copy
Name Complete Now On Reboot Delete Status
————————–
——– —— ——— —— ———-
sol9 yes no no yes –
sol10 yes yes yes no -
bash-3.00#
df -hFilesystem size used avail
capacity Mounted on
/dev/dsk/c0d1s0 4.4G 2.5G 1.9G 58% /
/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 549M 756K 548M 1% /etc/svc/volatile
objfs 0K
0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd
0K 0K 0K 0% /dev/fd
swap 548M 48K 548M 1% /tmp
swap 548M 24K
548M 1% /var/run
/dev/dsk/c0d0s7 3.9G 4.0M 3.9G 1% /export/home
###That’s All!!! Live Upgrade is a nice & pretty
straight-forward feature which is quite beneficial for production
environments where less downtime is desirable. We now have two boot
environments & if we wish,we can remove the older one once we’re
sure that the new BE becomes stable & performing well without any
issues.
Note:
====
1. If We receive the error messages starting with “This system
contains only a single GRUB menu for all boot environments…”
while executing luupgrade, We can use the following solution to fix
that to proceed further.
bash-2.05#
luupgrade -u -n sol10 -s /solaris10iso/
This system contains only a single GRUB menu for all boot
environments. To
enhance reliability and improve the user
experience, live upgrade requires
you to run a one time
conversion script to migrate the system to multiple
redundant
GRUB menus. This is a one time procedure and you will not be
required to run this script on subsequent invocations of Live
Upgrade
commands. To run this script invoke:
/usr/lib/lu/lux86menu_propagate /path/to/new/Solaris/install/image
OR
/path/to/LiveUpgrade/patch
where /path/to/new/Solaris/install/image is an absolute
path
to the Solaris media or netinstall image from which you installed the
Live Upgrade packages and /path/to/LiveUpgrade/patch is an
absolute path
to the Live Upgrade patch from which this Live
Upgrade script was patched
into the system.
##Here we encountered an error, this is related to creating
multiple GRUB menus to reflect both the BEs. To fix this, issue the
commands as suggested by the error output
bash-2.05#
/usr/lib/lu/lux86menu_propagate
/solaris10iso/Validating the contents of the media
.
The media is a standard Solaris media.
The media contains a Solaris operating system image.
The
media contains
version <10>.
Installing
latest Live Upgrade package/patch on all BEs
Updating Live
Upgrade packages on all BEs
Successfully updated Live Upgrade
packages on all BEs
Successfully extracted GRUB from media
System has no GRUB slice
Installing GRUB bootloader to all
GRUB based BEs
System does not have an applicable x86 boot
partition
install GRUB to all BEs successful
Converting root
entries to findroot
Skipping elide of bootadm entries:
Non-existent or zero length GRUB menu.
File 10>
deletion successful
Successfully deleted GRUB_slice file
File
deletion successful
Successfully
deleted GRUB_root file
Propagating findroot GRUB for menu
conversion.
File propagation
successful
File propagation
successful
File propagation
successful
File propagation
successful
Deleting stale GRUB loader from all BEs.
File
deletion successful
File
deletion successful
File
deletion successful
Conversion was
successful
##Now run
luupgrade again
2. If your live upgrade gets failed at the end of execution of
luupgrade command, it would have been mostly due to
space constraint on the disk on which ABE is created. You can mount
the disk in a temporary mount point & check the disk utilization.
If it is 100% full, this is the reason for the failure. In such a
case, We would have to delete the ABE using
ludelete
and re-format the disk and start the live upgrade process all over
again from scratch!!!.The following is an example for such failure,
bash-2.05#
luupgrade -u -n sol10 -s /solaris10iso/
System has findroot enabled GRUB
Skipping menu entry delete:
Non existent GRUB menu
Copying
failsafe kernel from media.
Uncompressing miniroot
Creating
miniroot device
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
.
Checking for GRUB menu on ABE .
Checking for x86 boot partition on ABE.
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 .
ERROR: Unable to
update package instance information on boot environment .
ABE boot partition backing deleted.
ABE GRUB has no
capability information. Skipping GRUB upgrade.
Configuring
failsafe for system.
Failsafe configuration is complete.
INFORMATION: The file 10>
on boot
environment
contains a log of the upgrade
operation.
INFORMATION: The file
on boot
environment
contains a log of cleanup operations required.
WARNING: <99> packages failed to install properly on boot
environment .
INFORMATION: The file
99> 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
failed.
Installing failsafe
cp:
/tmp/.luupgrade.inf.4648/boot/multiboot: No space left on device
cp:
/tmp/.luupgrade.inf.4648/boot/x86.miniroot-safe: No space left on
device
ERROR: Failsafe install failed.
bash-2.05#
##Here the reason has been clearly provided in the output.Now
check & confirm if this is due to space constraint by,
bash-2.05#
mount /dev/dsk/c0d1s0 /abash-2.05#
df -h /aFilesystem size used avail capacity
Mounted on
/dev/dsk/c0d1s0 992M 992M 0 100% /a
bash-2.05#
umount
/a
##Delete the failed ABE as in the following example,
bash-2.05#
lustatusBoot Environment Is Active
Active Can Copy
Name Complete Now On Reboot Delete Status
————————– ——– —— ——— ——
———-
sol9 yes yes yes no –
sol10 yes no no yes -
bash-2.05#
ludelete -f sol10System has
findroot enabled GRUB
Skipping menu entry delete: Non existent
GRUB menu
Determining the devices to
be marked free.
Updating boot environment configuration database.
Updating boot environment description database on all BEs.
Updating all boot environment configuration databases.
Boot
environment
deleted.
bash-2.05#
lustatusBoot Environment Is Active
Active Can Copy
Name Complete Now On Reboot Delete Status
————————– ——– —— ——— ——
———-
sol9 yes yes yes no –