Operating System - HP-UX
1834592 Members
3331 Online
110069 Solutions
New Discussion

Copy patch bundle to a tape

 
SOLVED
Go to solution
Dewa Negara_4
Regular Advisor

Copy patch bundle to a tape

Hi All,

I have a patch bundle depot located on my depot server.

Depot_Server:/var/opt/patch/depots/Rel_B.11.11/PROD

Because of DR drill plan, I have to copy this patch bundle to a DDS tape to be installed on all DR servers. How can I copy the patch bundle to the tape? What are the steps to copy to the tape as well as to install to the DR server?

Please help. Thanks in advance.

Best Regards,
Negara
Santos
8 REPLIES 8
Fabian Briseño
Esteemed Contributor

Re: Copy patch bundle to a tape

Hello Dewa.

To Install from tape try this.

swinstall -s /dev/rmt/Xm

Where X is the number of your tape device

And to copy a patch bundle to tape try this
swcopy -s /tmp/test @ /dev/rmt/0m

where /tmp/test is the origin and /dev/rmt/0m is the destination
Knowledge is power.
Fabian Briseño
Esteemed Contributor

Re: Copy patch bundle to a tape

Hello Dewa.



To list the depot in tape use
swlist -d @ /dev/rmt/0m
Knowledge is power.
Fabian Briseño
Esteemed Contributor

Re: Copy patch bundle to a tape

Hello Dewa.
You could also just type swcopy and that will take you to a Text User Interface and from there you can also do it.
Knowledge is power.
Dennis Handly
Acclaimed Contributor

Re: Copy patch bundle to a tape

The proper command is swpackage.

>Fabian: And to copy a patch bundle to tape try this:
swcopy -s /tmp/test @ /dev/rmt/0m

This won't work. swcopy(1M) says:
NOTE: To copy to a tape, see the swpackage(1M) manpage.

You need to use:
# swpackage -x media_type=tape -s ... @ /dev/rmt/0m

>I have a patch bundle depot located on my depot server.
Depot_Server:/var/opt/patch/depots/Rel_B.11.11/PROD

You can't use swpackage from a remote system, so you would either have to do it there, or swcopy first, then swpackage.

>Fabian: To list the depot in tape use
swlist -d @ /dev/rmt/0m

I would recommend you don't use -d @. Just use -s:
swlist -s /dev/rmt/0m
Fabian Briseño
Esteemed Contributor

Re: Copy patch bundle to a tape

I stand corrected Dennis.
I misunderstood the information I was reading, sorry for the trouble caused.
Knowledge is power.
Dewa Negara_4
Regular Advisor

Re: Copy patch bundle to a tape

Hi Fabian/Dennis,

My plan actually as below:
1. Store patch bundle from production depot server to the tape
2. Copy the patch bundle from tape to one of DR servers used as depot server
3. Patch other DR servers from this DR depot server

Can you pls help to provide the details above especially for 1 and 2?

Thanks a lot for your great help.

Best Regards,
Negara
Santos
Dennis Handly
Acclaimed Contributor
Solution

Re: Copy patch bundle to a tape

>1. Store patch bundle from production depot server to the tape

# swpackage -x media_type=tape -s /var/opt/patch/depots/Rel_B.11.11/PROD \* @ /dev/rmt/0m

Copies all of that depot. (Change to your correct tape drive.)

>2. Copy the patch bundle from tape to one of DR servers used as depot server

# swcopy -x enforce_dependencies=false -s /dev/rmt/0m \* @ /var/opt/patch/depots/Rel_B.11.11/PROD

Adjust your tape and depot names

And probably a swreg to register the depot.

>3. Patch other DR servers from this DR depot server

# swinstall -s DR_Depot_Server:/var/opt/patch/depots/Rel_B.11.11/PROD \*

(Or what you want to install.)
Dewa Negara_4
Regular Advisor

Re: Copy patch bundle to a tape

Hi Dennis / Fabian,

Thanks alot for your great help. It looks ok to me now. Thanks again...

Best Regards,
Negara
Santos