Hi,
I am trying to use live upgrade from nv30 to nv35. My disk layout is:-
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 6048 20972448 20978495 /
1 3 01 20978496 1050336 22028831
2 5 00 0 78236928 78236927
3 0 00 22028832 20972448 43001279
7 8 00 43001280 35235648 78236927 /export/home
8 1 01 0 2016 2015
9 9 01 2016 4032 6047
I have performed :-
root: lofiadm -a /export/home/rich/isos/sol-nv-b35-x86-dvd.iso
root: mount -F hsfs /dev/lofi/1 /mnt
root: cd /mnt/Solaris_11/Tools//Installers/
root: ./liveupgrade20
root: cd /
root: /usr/sbin/lucreate -c c0d0s0 -m /:/dev/dsk/c0d0s3:ufs -n nv35
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 <c0d0s0> 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/c0d0s3> is not a root device for any boot
environment.
Creating configuration for boot environment <nv35>.
Source boot environment is <c0d0s0>.
Creating boot environment <nv35>.
Checking for GRUB menu on boot environment <nv35>.
The boot environment <nv35> does not contain the GRUB menu.
Creating file systems on boot environment <nv35>.
Creating <ufs> file system for </> on </dev/dsk/c0d0s3>.
Mounting file systems for boot environment <nv35>.
Calculating required sizes of file systems for boot environment <nv35>.
Populating file systems on boot environment <nv35>.
Checking selection integrity.
Integrity check OK.
Populating contents of mount point </>.
Copying.
Creating shared file system mount points.
Creating compare databases for boot environment <nv35>.
Creating compare database for file system </>.
Updating compare databases on boot environment <nv35>.
Making boot environment <nv35> bootable.
Updating bootenv.rc on ABE <nv35>.
Population of boot environment <nv35> successful.
Creation of boot environment <nv35> successful.
root: lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0d0s0 yes yes yes no -
nv35 yes no no yes -
root: /usr/sbin/luupgrade -u -n nv35 -s /mnt
Install media is CD/DVD. </mnt>.
Copying failsafe multiboot 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 <nv35>.
Checking for GRUB menu on ABE <nv35>.
Checking for x86 boot partition on ABE.
Determining packages to install or upgrade for BE <nv35>.
Performing the operating system upgrade of the BE <nv35>.
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 <nv35>.
Adding operating system patches to the BE <nv35>.
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 <nv35> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
environment <nv35> contains a log of cleanup operations required.
WARNING: <24> packages failed to install properly on boot environment
<nv35>.
INFORMATION: The file </var/sadm/system/data/upgrade_failed_pkgadds> on
boot environment <nv35> 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 <nv35>. Before you activate boot
environment <nv35>, 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 <nv35> is partially complete.
Installing failsafe
Failsafe install is complete.
As you can see 24 packages failed to upgrade:-
root: more /a/var/sadm/system/data/upgrade_failed_pkgadds
SUNWcsr
SUNWcsd
SUNWppror
SUNW5xmft
SUNWPython
SUNWbsr
SUNWaccr
SUNWapchr
SUNWsmmgr
SUNWsndmr
SUNWatheros
SUNWkxmft
SUNWbnur
SUNWllcr
SUNWsacom
SUNWmipr
SUNWudapltr
SUNWvolr
SUNWncar
SUNWnfssr
SUNWpcmci
SUNWcxmft
SUNWpppdr
SUNWgnome-a11y-libs-share
If I look in /a/var/sadm/system/logs/upgrade_log
Starting upgrade:
Removing obsolete packages and saving modified files
Removing package SUNWcsu:
pkgrm: ERROR: bad read of contents file
pkgrm: ERROR: pathname=Unknown
pkgrm: ERROR: problem=incomplete entry
pkgrm return code = 1
removef: ERROR: bad entry read in contents file
pathname=Unknown
problem=incomplete entry
removef return code = 99
Removing package SUNWesu:
WARNING: Stale lock installed for pkgrm, pkg SUNWcsu quit in
remove-initial state.
Removing lock.
pkgrm: ERROR: bad read of contents file
pkgrm: ERROR: pathname=Unknown
pkgrm: ERROR: problem=incomplete entry
pkgrm return code = 1
removef: ERROR: bad entry read in contents file
pathname=Unknown
problem=incomplete entry
removef return code = 99
Removing package SUNWdtdte:
WARNING: Stale lock installed for pkgrm, pkg SUNWesu quit in
remove-initial state.
Removing lock.
pkgrm: ERROR: bad read of contents file
pkgrm: ERROR: pathname=Unknown
pkgrm: ERROR: problem=incomplete entry
pkgrm return code = 1
Removing package SUNWj5rt:
WARNING: Stale lock installed for pkgrm, pkg SUNWdtdte quit in
remove-initial state.
Removing lock.
pkgrm: ERROR: bad read of contents file
pkgrm: ERROR: pathname=Unknown
pkgrm: ERROR: problem=incomplete entry
pkgrm return code = 1
removef: ERROR: bad entry read in contents file
pathname=Unknown
problem=incomplete entry
removef return code = 99
This sees to happen for the removal of every package.
Some of the installs also look :-
Doing pkgadd of SUNWvolr to /.
7 blocks
removef: ERROR: bad entry read in contents file
pathname=Unknown
problem=incomplete entry
pkgadd: ERROR: class action script did not complete successfully
Installation of <SUNWvolr> partially failed.
pkgadd return code = 2
It also seems that pkginfo -l on the current BE seems to be broken:-
root: pkginfo SUNWcsr
system SUNWcsr Core Solaris, (Root)
root: pkginfo -l SUNWcsr
pkginfo: ERROR: bad entry read in contents file
pathname: Unknown
problem: incomplete entry
Is is safe to luactivate this BE
Cheers
Richard.
--
This messages posted from opensolaris.org