Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Live Upgrade fails during upgrade from Solaris 10 U7 to U8

484 views
Skip to first unread message

mbr

unread,
Dec 8, 2009, 10:27:34 AM12/8/09
to
Hello,

problem by updating Solaris 10 x86 from U7 to U8 with Live Upgrade.

ZFS root mirrored on 2 disks, no zones, no separate /var.
Should be an easy job for live upgrade.

Yes, liveupgrade20 has been applied from the lofi mounted U8.
Yes, 121431-44, the Live Upgrade Patch is installed.

luupgrade fails with:

ERROR: Installation of the packages from this media of the media failed;
pfinstall returned these diagnostics:
Processing profile
Loading local environment and services

Why does lucreate propagates /boot/grub/menu.lst?
It's a dummy, the real menu.lst is on /rpool/boot/grub.

Here are the details:


# lucreate -n s10u8
Checking GRUB menu...
System has findroot enabled GRUB
Analyzing system configuration.
Comparing source boot environment <s10u7> 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.
Updating system configuration files.
Creating configuration for boot environment <s10u8>.
Source boot environment is <s10u7>.
Creating boot environment <s10u8>.
Cloning file systems from boot environment <s10u7> to create boot environment <s10u8>.
Creating snapshot for <rpool/ROOT/s10u7> on <rpool/ROOT/s10u7@s10u8>.
Creating clone for <rpool/ROOT/s10u7@s10u8> on <rpool/ROOT/s10u8>.
Setting canmount=noauto for </> in zone <global> on <rpool/ROOT/s10u8>.
Saving existing file </boot/grub/menu.lst> in top level dataset for BE <s10u8> as <mount-point>//boot/grub/menu.lst.prev.
File </boot/grub/menu.lst> propagation successful
Copied GRUB menu from PBE to ABE
No entry for BE <s10u8> in GRUB menu
Population of boot environment <s10u8> successful.
Creation of boot environment <s10u8> successful.


# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
s10u7 yes yes yes no -
s10u8 yes no no yes -


# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 17.6G 115G 38.5K /rpool
rpool/ROOT 8.55G 115G 18K legacy
rpool/ROOT/s10u7 8.41G 115G 8.23G /
rpool/ROOT/s10u7@s10u8 187M - 8.15G -
rpool/ROOT/s10u8 140M 115G 8.21G /
rpool/dump 2.00G 115G 2.00G -
rpool/export 3.07G 115G 19K /export
rpool/export/local 3.07G 115G 3.07G /export/local
rpool/swap 4G 119G 16K -


# luupgrade -u -n s10u8 -s /mnt
System has findroot enabled GRUB
No entry for BE <s10u8> in GRUB menu
Uncompressing miniroot
Copying failsafe kernel from media.
63093 blocks
miniroot filesystem is <lofs>
Mounting miniroot at </mnt/Solaris_10/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 <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 <s10u8>.
Checking for GRUB menu on ABE <s10u8>.
Saving GRUB menu on ABE <s10u8>.
Checking for x86 boot partition on ABE.
Determining packages to install or upgrade for BE <s10u8>.
Performing the operating system upgrade of the BE <s10u8>.
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
ERROR: Installation of the packages from this media of the media failed;
pfinstall returned these diagnostics:
Processing profile
Loading local environment and services
Restoring GRUB menu on ABE <s10u8>.
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.
The Solaris upgrade of the boot environment <s10u8> failed.
Installing failsafe
Failsafe install is complete.


Cheers,
Michael.

tim....@gmail.com

unread,
Dec 9, 2009, 9:32:32 AM12/9/09
to

It would appear that Live Upgrade is unable to read the media.
examine the /mnt dir and make sure you see the normal directory
structure
for a Solaris dvd ie.

ultra20:/> lofiadm -a /sol-10-u7-ga-x86-dvd.iso
/dev/lofi/1
ultra20:/> mount -F hsfs /dev/lofi/1 /mnt
ultra20:/> ls /mnt
Copyright Solaris_10
JDS-THIRDPARTYLICENSEREADME boot
License installer

mbr

unread,
Dec 10, 2009, 3:30:59 AM12/10/09
to
tim....@Inklingresearch.com wrote:

> On Dec 8, 8:27 am, mbr <m...@linmpi.mpg.de> wrote:
>>
>> problem by updating Solaris 10 x86 from U7 to U8 with Live Upgrade.
>>
>> ZFS root mirrored on 2 disks, no zones, no separate /var.
>> Should be an easy job for live upgrade.
>>
>> Yes, liveupgrade20 has been applied from the lofi mounted U8.
>> Yes, 121431-44, the Live Upgrade Patch is installed.
>>
>> luupgrade fails with:
>>
>> ERROR: Installation of the packages from this media of the media failed;
>> pfinstall returned these diagnostics:
>> Processing profile
>> Loading local environment and services

> It would appear that Live Upgrade is unable to read the media.


> examine the /mnt dir and make sure you see the normal directory
> structure
> for a Solaris dvd ie.
>
> ultra20:/> lofiadm -a /sol-10-u7-ga-x86-dvd.iso
> /dev/lofi/1
> ultra20:/> mount -F hsfs /dev/lofi/1 /mnt
> ultra20:/> ls /mnt
> Copyright Solaris_10
> JDS-THIRDPARTYLICENSEREADME boot
> License installer

the mounted media directory structure seems to be ok:

# ll /mnt
total 979
-r--r--r-- 1 root root 6582 Aug 21 21:34 Copyright
-r--r--r-- 1 root root 487593 Aug 21 21:32 JDS-THIRDPARTYLICENSEREADME
dr-xr-xr-x 2 root root 2048 Sep 17 00:30 License
dr-xr-xr-x 7 root root 2048 Sep 17 00:31 Solaris_10
dr-xr-xr-x 5 root root 2048 Sep 17 00:31 boot
-r-xr-xr-x 1 root root 257 Sep 17 00:16 installer

but:

# luupgrade -c -s /mnt


Uncompressing miniroot
Copying failsafe kernel from media.

The media is a standard Solaris media.
The media contains an operating system upgrade image.

The media contains a standard media installer which can be run.


The media contains <Solaris> version <10>.

ERROR: Cannot unmount miniroot at </mnt/Solaris_10/Tools/Boot>.

# ll /mnt/Solaris_10/Tools/Boot
total 150165
-r--r--r-- 1 root root 63332944 Sep 17 00:13 X.cpio.bz2
-r--r--r-- 1 root root 220580 Sep 17 00:13 X_small.cpio.bz2
dr-xr-xr-x 2 root root 2048 Sep 17 00:31 amd64
-r--r--r-- 1 root root 11569485 Sep 17 00:11 lu.cpio.bz2
-r--r--r-- 1 root root 13 Sep 17 00:11 lu.platforms
lr-xr-xr-x 1 root root 23 Sep 17 00:31 multiboot -> ../../../boot/multiboot
-r--r--r-- 1 root root 1748481 Sep 17 00:10 pkg_db.cpio.bz2
lr-xr-xr-x 1 root root 26 Sep 17 00:31 pxegrub -> ../../../boot/grub/pxegrub
-r--r--r-- 1 root root 7637 Sep 17 00:13 usr_sbin_install_d.cpio.bz2
lr-xr-xr-x 1 root root 26 Sep 17 00:31 x86.miniroot -> ../../../boot/x86.miniroot

Michael.

Ian Collins

unread,
Dec 10, 2009, 3:43:00 AM12/10/09
to

One more straw, is the md5 checksum for the iso correct?

--
Ian Collins

mbr

unread,
Dec 10, 2009, 4:31:11 AM12/10/09
to

yes I've checked it, is ok.

# /opt/sfw/bin/md5sum sol-10-u8-ga-x86-dvd.iso
9df7fd02d82976fd3ec38a18d1a57335 sol-10-u8-ga-x86-dvd.iso

Michael.

tim....@gmail.com

unread,
Dec 10, 2009, 9:05:42 AM12/10/09
to
On Dec 10, 1:30 am, mbr <m...@linmpi.mpg.de> wrote:

I was wrong, sorry. It does see the media correctly, I missed those
lines. My bad.

tim....@gmail.com

unread,
Dec 10, 2009, 9:13:57 AM12/10/09
to
On Dec 8, 8:27 am, mbr <m...@linmpi.mpg.de> wrote:

This is strange, I have three x86 system and a SPARC that I did a U7
to U8 Live Upgrade,
no problems with this part, couple of zone issues on one system but
that was it. I know this doesn't
help your issue other than to know it does work.

I think I would delete the BE, patch U7 to be up to date for at least
lu and pkgadd packages/patches
and try again.

mbr

unread,
Dec 11, 2009, 9:21:57 AM12/11/09
to
Hello,

> luupgrade fails with:
>
> ERROR: Installation of the packages from this media of the media failed;
> pfinstall returned these diagnostics:
> Processing profile
> Loading local environment and services

I have initated a case with Sun Service.
They gave me the solution, it has something to do with:
CR 6415933 "upgrade fails when packages have empty SUNW_LOC fields".

Delete all lines with an empty value for "SUNW_LOC" in all /var/sadm/pkg/*/pkginfo files
(or in the corresponding /a files of the new BE if it is already created).

On my system I modified:

# grep SUNW_LOC= /var/sadm/pkg/*/pkginfo
/var/sadm/pkg/SUNWsesscj/pkginfo:SUNW_LOC=
/var/sadm/pkg/SUNWtfhlc/pkginfo:SUNW_LOC=
/var/sadm/pkg/SUNWtfhlj/pkginfo:SUNW_LOC=

luupgrade works after this modification.

Michael.

Pascal

unread,
Dec 2, 2010, 4:34:39 AM12/2/10
to
Thanks Michael for having posted the solution ! googled quite a long time without really finding anything good till your post ! my luupgrade worked fine after doing the same changes as you (same 3 packages).
Thanks


san123

unread,
Oct 29, 2012, 4:02:04 PM10/29/12
to
Hello team... the same issue i am facing but the solution which is given here is not working. so please suggest some other solution if you are having.

Thanks santhosh


hume.sp...@bofh.ca

unread,
Oct 30, 2012, 7:44:50 AM10/30/12
to
san123 <santhos...@gmail.com> wrote:
> Hello team... the same issue i am facing but the solution which is given here is not working. so please suggest some other solution if you are having.

You're responding to a message posted three years ago, and you didn't
quote any of it. How is anyone to know what you're referring to?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

John D Groenveld

unread,
Oct 30, 2012, 12:00:27 PM10/30/12
to
In article <k6oeji$for$1...@Kil-nws-1.UCIS.Dal.Ca>,
<hume.sp...@bofh.ca> wrote:
>You're responding to a message posted three years ago, and you didn't
>quote any of it. How is anyone to know what you're referring to?

References and an news server with a longer expire?

At least until the Google Oracle do a wee bit of evil and break
their API, see:
<URL:http://groups.google.com/groups?selm=hflr96%241fc1%241%40gwdu112.gwdg.de>

As to Santhosh's question, my WAG is that he is not facing the same
issue as the OP.

John
groe...@acm.org
0 new messages