Link to home
Start Free TrialLog in
Avatar of widuser
widuser

asked on

zoneadm S20_apply_patches stuck while updating the

Created a solaris9 branded zone and configured.

But when I run the install command it always got stuck. Logged in to the zone and checked and the patches were installed.

Please help....

Run the following command to install from .flar image:
zoneadm -z s01-zone install -v -u -a /var/neb/sol9-10.flar
      Log File: /var/tmp/s01-zone.install.9506.log
       Product: Solaris 9 Containers 1.0
     Installer: solaris9 brand installer 1.21
          Zone: s01-zone
          Path: /export/s01-zone
        Source: /var/neb/sol9-10.flar
    Media Type: flash archive
    Installing: This may take several minutes...
  Sanity Check: Passed.  Looks like a Solaris 9 system.
Postprocessing: This may take several minutes...
   Postprocess: Gathering information about zone s01-zone
   Postprocess: Creating mount points
   Postprocess: Linking in appropriate libc_psr.so for this platform
   Postprocess: Processing /etc/system
   Postprocess: Booting zone to single user mode
   Postprocess: Applying p2v module S20_apply_patches
        S20_apply_patches:  Unpacking patch:  115986-03

It has been on this state for about 12hrs..... Created a new zone tried to use the same flar image and got stuck too.

Following is from logfile:

[Mon May 24 15:10:19 EST 2010]       Log File: /var/tmp/s01-zone.install.9506.log
[Mon May 24 15:10:19 EST 2010]        Product: Solaris 9 Containers 1.0
[Mon May 24 15:10:19 EST 2010]      Installer: solaris9 brand installer 1.21
[Mon May 24 15:10:19 EST 2010]           Zone: s01-zone
[Mon May 24 15:10:19 EST 2010]           Path: /export/s01-zone
[Mon May 24 15:10:19 EST 2010] Starting pre-installation tasks.
[Mon May 24 15:10:19 EST 2010] Installation started for zone "s01-zone"
[Mon May 24 15:10:19 EST 2010]         Source: /var/neb/sol9-10.flar
[Mon May 24 15:10:19 EST 2010]     Media Type: flash archive
[Mon May 24 15:10:19 EST 2010]     Installing: This may take several minutes...
[Mon May 24 15:10:19 EST 2010] cd /export/s01-zone/root &&
[Mon May 24 15:10:19 EST 2010] do_flar < "/var/neb/sol9-10.flar"
[Mon May 24 15:20:34 EST 2010]   Sanity Check: Passed.  Looks like a Solaris 9 system.
[Mon May 24 15:20:34 EST 2010] Postprocessing: This may take several minutes...
[Mon May 24 15:20:34 EST 2010] running: p2v -v -u s01-zone
[Mon May 24 15:20:34 EST 2010]    Postprocess: Gathering information about zone s01-zone
[Mon May 24 15:20:34 EST 2010]    Postprocess: Creating mount points
[Mon May 24 15:20:35 EST 2010]    Postprocess: Linking in appropriate libc_psr.so for this platform
[Mon May 24 15:20:35 EST 2010]    Postprocess: Processing /etc/system
NOTICE: /etc/system directive 'set eri:adv_100fdx_cap=1';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'set eri:adv_100hdx_cap=0';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'set eri:adv_10fdx_cap=0';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'set eri:adv_10hdx_cap=0';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'set eri:adv_autoneg_cap=0';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: drv/clone';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_trans';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_raid';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_hotspares';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_sp';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_stripe';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: misc/md_mirror';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: drv/pcisch';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: drv/qlc';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: drv/fp';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'forceload: drv/ssd';
    is not applicable in the virtual environment.
NOTICE: /etc/system directive 'rootdev:/pseudo/md@0:0,10,blk';
    is not applicable in the virtual environment.
[Mon May 24 15:20:39 EST 2010]    Postprocess: Booting zone to single user mode
[Mon May 24 15:20:41 EST 2010]    Postprocess: Applying p2v module S20_apply_patches
Avatar of Rowley
Rowley
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you ensured you are running a supported release with all the required patches? Does the sample image flar install OK?
Avatar of widuser
widuser

ASKER

I'm running the support version but my flar archive is from a production server which has not been patched up for a while. Is is possible to run the "Solaris 9 recommended Patch" to run on the flar image?
To my knowledge, you cannot patch a flar image, only a live upgrade boot environment.

I ask again, are you able to deploy the sample flar image?
Are you sure that you have applied all the necessary patches and updates to both the source and target hosts? Is the flar complete? Can you test it on another host?
Avatar of widuser

ASKER

Rowley,

To answer your question:
Yes I did and also flar image from separate solaris 9 server workes.

I've now installed the latest patches, reboot the server and created a new flar image. A different error occured:

# zoneadm -z neb-zone install -v -u -a /var/neb/sol9-10.flar
      Log File: /var/tmp/neb-zone.install.27592.log
       Product: Solaris 9 Containers 1.0
     Installer: solaris9 brand installer 1.21
          Zone: neb-zone
          Path: /export/neb-zone
        Source: /var/neb/sol9-10syd1.flar
    Media Type: flash archive
    Installing: This may take several minutes...
  Sanity Check: Passed.  Looks like a Solaris 9 system.
Postprocessing: This may take several minutes...
   Postprocess: Gathering information about zone neb-zone
   Postprocess: Creating mount points
   Postprocess: Linking in appropriate libc_psr.so for this platform
   Postprocess: Processing /etc/system
   Postprocess: Booting zone to single user mode
   Postprocess: Applying p2v module S20_apply_patches
        S20_apply_patches:  Unpacking patch:  115986-03
        S20_apply_patches: Installing patch:  115986-03
        S20_apply_patches:  Unpacking patch:  112963-32
        S20_apply_patches: Installing patch:  112963-32
   Postprocess: Applying p2v module S31_fix_net
Cannot update /etc/hostname.{net} file
   Postprocess: Applying p2v module S32_fix_nfs
   Postprocess: Applying p2v module S33_fix_vfstab
   Postprocess: Applying p2v module S34_fix_inittab
   Postprocess: Applying p2v module S35_fix_crontab
   Postprocess: Applying p2v module S36_fix_pam_conf
   Postprocess: Applying p2v module S40_setup_preload
   Postprocess: ERROR: p2v module S40_setup_preload failed: 0
   Postprocess: ERROR: Postprocessing failed.
        Result: Postprocessing failed.

        Result: *** Installation FAILED ***


Same error in the logfile:
.
..
...
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S31_fix_net
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S32_fix_nfs
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S33_fix_vfstab
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S34_fix_inittab
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S35_fix_crontab
[Tue Jun  1 13:07:14 EST 2010]    Postprocess: Applying p2v module S36_fix_pam_conf
[Tue Jun  1 13:07:15 EST 2010]    Postprocess: Applying p2v module S40_setup_preload
crle: /var/ld/64/ld.config: open failed: No such file or directory
[Tue Jun  1 13:07:15 EST 2010]    Postprocess: ERROR: p2v module S40_setup_preload failed: 0
[Tue Jun  1 13:07:15 EST 2010]    Postprocess: ERROR: Postprocessing failed.
[Tue Jun  1 13:07:15 EST 2010]         Result: Postprocessing failed.
[Tue Jun  1 13:07:15 EST 2010]
[Tue Jun  1 13:07:15 EST 2010]         Result: *** Installation FAILED ***
[Tue Jun  1 13:07:15 EST 2010]       Log File: /var/tmp/neb-zone.install.27592.log

ASKER CERTIFIED SOLUTION
Avatar of widuser
widuser

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial