Operating System - HP-UX
1834629 Members
3205 Online
110069 Solutions
New Discussion

Re: how to recover the software distribution package

 
smg_atlas
Frequent Advisor

how to recover the software distribution package

Hi Gurus

I was creating some space in my /var but accidently remove the sw directory under /var/adm/sw.
Now I cannot use software package to install any depot.

Can anyone give me any suggestions.
my OS is HP-UX 11.11.

regards
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: how to recover the software distribution package

Consider to restore from your backup.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
YAQUB_1
Respected Contributor

Re: how to recover the software distribution package

Hi,

>>> /var but accidently remove the sw directory under /var/adm/sw.
==> U jest remove SW directory or total /var/adm/sw directory

==> R U taking any filesystem backup in Ur system monthly or weekly. Then U can recovery dependence on Ur existing backup date file.

==> Only SW directory lost then U can create a new directory (SW) same path. After new software installs U do swinstall -s

Thanks--Yaqub
I am a Customer Advocate!!!
Dennis Handly
Acclaimed Contributor

Re: how to recover the software distribution package

>Now I cannot use software package to install any depot.

Your machine is near useless because you can't change it nor install patches.
If you don't have a backup as mentioned by Torsten, the best you might be able to do is copy /var/adm/sw from another machine with the same software installed.
Sp4admin
Trusted Contributor

Re: how to recover the software distribution package

The best way is to recover from a full backup as stated above.

sp,
smg_atlas
Frequent Advisor

Re: how to recover the software distribution package

Hi,

Thanks for the respnse.
This is just a test server.
We dont have ignite or any sort of backup running in the system.
But I am trying to copy the sw directory from another server.

Lets see what happens.
smg_atlas
Frequent Advisor

Re: how to recover the software distribution package

HI Gurus

Can someone pls give me procedure to copy /var/adm/sw directory to another server.
Prabhu Hosmani
Advisor

Re: how to recover the software distribution package

Hi,

You can tar the sw directory from source server and then ftp sw tar file to target server and untar the sw tar file in /var/adm.
By doing this method all files and directories permissions unchanged.
Steven E. Protter
Exalted Contributor

Re: how to recover the software distribution package

Shalom,

If its just a test system, then its time to learn some systems administration practices, first of which is to install the system cold from OS media.

Then set up a backup regimen to proven your from losing your whole system like this again.

It's tedious but even with a test system you have just learned the price of not having a good backup around,which is starting over.

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