Operating System - HP-UX
1748221 Members
4350 Online
108759 Solutions
New Discussion юеВ

Using DRD to upgrade to 11.31 update4

 
SOLVED
Go to solution
CGEYROTH
Frequent Advisor

Using DRD to upgrade to 11.31 update4

Hi,

I'm having a real problem trying to update my 11.31 update 3 to update 4. I have the march media but when i try to update it gives the following error saying that the expected depot does not exist. however if i run the command without drd (to the online disk) the update-ux command works. I think this might be a bug.

drd runcmd update-ux -s /cdrom



======= 05/27/09 15:09:32 BST BEGIN Executing Command On Inactive System

Image (user=root) (jobid=server1)



* Checking for Valid Inactive System Image

* Analyzing Command To Be Run On Inactive System Image

* Locating Inactive System Image

* Accessing Inactive System Image for Command Execution

* Setting Up Environment For Command Execution

* Executing Command On Inactive System Image

* Using unsafe patch list version 20080324

* Starting swagentd for drd runcmd

* User supplied command: "/usr/sbin/update-ux -s /cdrom"

* Executing command: "/opt/swm/bin/swmoeupdate -s /cdrom"



======= 05/27/09 15:09:42 BST BEGIN Operating Environment Update (user=root)

(jobid=000016)



* Reading Target System's Installed Product Database (IPD)

* Target IPD: server1

* Reading Source Depot(s)

* Source depot: server1:/cdrom

ERROR: The expected depot does not exist at "/cdrom".

* Reading Source Depot(s) failed with 1 error.



======= 05/27/09 15:09:42 BST END Operating Environment Update failed with 1

error. (user=root) (jobid=000016)



* Stopping swagentd for drd runcmd

ERROR: Command executed on inactive system image returned an error

- The command "/opt/swm/bin/swmoeupdate -s /cdrom" failed.

* Executing Command On Inactive System Image failed with 1 error.

* Cleaning Up After Command Execution On Inactive System Image



======= 05/27/09 15:09:44 BST END Executing Command On Inactive System Image

failed with 1 error. (user=root) (jobid=server1)
20 REPLIES 20
Steven E. Protter
Exalted Contributor

Re: Using DRD to upgrade to 11.31 update4

Shalom,

This is not how you do it.

You take the QPK, Quality pack from http://itrc.hp.com

You download it, make it a depot.

swinstall -x autoreboot=true -s /tmp/qpk.depot \*

Name the depot anything you want.

This updates your system. The Core OS DVD is for cold installs not updates.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Using DRD to upgrade to 11.31 update4

sorry SEP but you are way off mark there... this is *precisely* how you are supposed to run an update from UD3 to UD4 using Dynamic Root Disk (DRD)

what you are suggesting would apply patches to existing product versions only (and without DRD), whereas update-ux also updates to newer versions of products (and may also apply some patches too)

does the following command work?

drd runcmd swlist -d -s /cdrom


HTH

Duncan

I am an HPE Employee
Accept or Kudo
CGEYROTH
Frequent Advisor

Re: Using DRD to upgrade to 11.31 update4

The swlist doesn't work, from within drd for offline disk but does work if run from command line for online disk

FAIL
drd runcmd swlist -d -s /cdrom

======= 05/27/09 18:56:21 BST BEGIN Executing Command On Inactive System
Image (user=root) (jobid=server1)

* Checking for Valid Inactive System Image
* Analyzing Command To Be Run On Inactive System Image
* Locating Inactive System Image
* Accessing Inactive System Image for Command Execution
* Setting Up Environment For Command Execution
* Executing Command On Inactive System Image
* Executing command: "/usr/sbin/swlist -d -s /cdrom"
# Initializing...
# Contacting target "server1"...
ERROR: The expected depot or root does not exist at "/cdrom".
ERROR: There is currently no depot software on host "server1" at
location "/cdrom". Make sure that an absolute pathname is
specified for location (beginning with "/").
ERROR: Command executed on inactive system image returned an error
- The command "/usr/sbin/swlist -d -s /cdrom" failed.
* Executing Command On Inactive System Image failed with 1 error.
* Cleaning Up After Command Execution On Inactive System Image

======= 05/27/09 18:56:27 BST END Executing Command On Inactive System Image
failed with 1 error. (user=root) (jobid=server1)

SUCCESS

wmscdc1:/software_depot> swlist -d -s /DVD
# Initializing...
# Contacting target "server1"...
#
# Target: server1:/DVD
#

#
# Bundle(s):
#

10GigEthr-00 B.11.31.0809 PCI-X 10 Gigabit Ethernet;Supptd HW=AB287, HW=AD385
10GigEthr-01 B.11.31.0809 PCIe 10 Gigabit Ethernet;Supptd HW=AD386A
etc...
CGEYROTH
Frequent Advisor

Re: Using DRD to upgrade to 11.31 update4

this would seem to be a problem with some commands including update-ux (and swlist), if i do the following i get an interactive contents of the disk for selection if i try update-ux (-i) it fails. i wonder if it is a name resolution thing but i can't see why

drd runcmd swinstall -s /DVD

======= 05/27/09 19:03:37 BST BEGIN Executing Command On Inactive System
Image (user=root) (jobid=server1)

* Checking for Valid Inactive System Image
* Analyzing Command To Be Run On Inactive System Image
* Locating Inactive System Image
* Accessing Inactive System Image for Command Execution
* Setting Up Environment For Command Execution
* Executing Command On Inactive System Image
* Using unsafe patch list version 20080324
* Starting swagentd for drd runcmd
* Executing command: "/usr/sbin/swinstall -s /DVD"
NOTE: The interactive UI was invoked, since no software was
specified.

Starting the terminal version of swinstall...

To move around in swinstall:

- use the "Tab" key to move between screen elements
- use the arrow keys to move within screen elements
- use "Ctrl-F" for context-sensitive help anywhere in swinstall
CGEYROTH
Frequent Advisor

Re: Using DRD to upgrade to 11.31 update4

This is really strange. if i swcopy the contents of /DVD (mounted DVD device) to a filesystem, swreg it, then do my drd clone and do the drd update-ux with the source being the filesystem, then it works. however the try the drd update-x with the source as /DVD it fails even though it is also registered with swreg.
CGEYROTH
Frequent Advisor

Re: Using DRD to upgrade to 11.31 update4

even stranger. if i run drd runcmd update-ux -p -s /DVD it fails with this error

The command "/opt/swm/bin/swmoeupdate -p -s /DVD" failed

if i run the same command (without drd) update-ux -p -s /DVD i don't get an error and interesting enough in the output it says

/opt/swm/bin/swm oeupdate -s /DVD -p

you can see from the above that the output string is slightly different, the former appears to contain no space and fails, the latter contains a space between swm and oeupdate.
CGEYROTH
Frequent Advisor

Re: Using DRD to upgrade to 11.31 update4

ok folks i think i've cracked it. I think there is a bug in drd, either that or it is very stange way to do an update.

In order to get it to work i had to do a
1. drd mount
2. manually mount an the DVD media to /var/opt/drd/mnts/sysimage_001/cdrom (offline disk) instead of /cdrom (online disk)

Once i'd done that the

drd runcmd update-ux -p -s /cdrom worked.

It seems that drd is looking on the offline /var/opt/drd/mnts/sysimage_001/cdrommountpoint, therefore it kept erroring complaining about nothing being mounted as nothing was at the offline copy /cdrom mountpoint (it was an empty directory) as i had previously mounted the DVD to /cdrom on the online disk.

both the update-ux (preview) and swlist command now work. tomorrow i'll try the proper update command.

Re: Using DRD to upgrade to 11.31 update4

hmmm - kind of makes sense in that the DVD/CD is then presented in the "chroot'd" environment for DRD - what's frustrating is I can find no mention of this in the manual, except for this slightly implicit comment here:

http://docs.hp.com/en/5992-5856/ch03s05.html

Where it states:
-----------------
Files referenced in the command line must both:

Reside in the inactive system image

Be referenced in the DRD-safe command by the path relative to the mount point of the inactive system image
-----------------


Although it doesn't really go on to explain the consequences of that.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Michal Kapalka (mikap)
Honored Contributor

Re: Using DRD to upgrade to 11.31 update4

Hi CGEYROTH,

did you try mount the CDROM and them copy the content on mounted DRD to some directory ??

mikap