accidentally remove the contents of /var/sadm/pkg


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers accidentally remove the contents of /var/sadm/pkg
# 8  
Old 01-04-2006
U mean to reinstall the whole OS?? @_@ is there a way to only reinstall the /vas/adm/pkg?? Thanks
# 9  
Old 01-04-2006
I am not the perfect person to answer this, but yes. I meant reinstall the OS. When you will install the OS, the various packages/patches that will get installed will rebuild the directory for you.
# 10  
Old 01-04-2006
oh.. is there a way to make it works again without re builidng the OS? we have got many things running on the system. better to avoid rebuilding it
# 11  
Old 01-04-2006
It sounds like you are trying to fix a flat tire on your car without stopping - you want to keep driving down the road without letting your passengers know there is an issue.

Installation of a patch cluster should be done in single user mode - with your system in the state it is in now, any patching should be done in single user to avoid more issues. The patching should not be seen as something you can 'sneak' in to fix an issue. Removing that directory was wrong - no way around it but it happens to all of us at some time. Just get the down time and do it right. If there is a dependent patch, put it on and then try the patch cluster again - it may come up with another patch that should be on before it runs. You must put it on also - until you have it all set. As stated before, this may not be the best way but it's an option.

The best thing you could do is to rebuild your server. Run a backup first and then reinstall the OS and then the applications.

Only you know what can be done - we don't know what applications you are running, the sensitivity of them to your company. You need to insure you don't do more damage in trying to fix your server. Pull over and fix the flat before you crash! Smilie
# 12  
Old 01-04-2006
if you have any similarly built boxes accessible --- just copy the directory from the other box into the problem box ... you'll be done quicker
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to remove pkg from zone in newly created boot environment?

fyi, I already have SR opened with Oracle. We are looking to upgrade from S11.3 to S11.4 with the latest SRU. Create new BE; success Mount new BE; success pkg -R /mnt update the updating of the global went fine until it touched local zone. pkg: update failed (linked image... (2 Replies)
Discussion started by: samthewildone
2 Replies

2. Solaris

Contents deleted from /var/sadm

Hi, Somebody/somebody removed all contents /vat/sadm on Solaris 10 Sparc box. As of now server is up and running. There is no backup for this server. If we copy contents from another equivalent server, can it work ? We don't know if it will be fixed by booting form DVD also. Any suggestions? (4 Replies)
Discussion started by: solaris_1977
4 Replies

3. AIX

Prevent admin user accidentally remove database files.

Hi Folks, Any system admin did provide AIX file system control to prevent user/ admin accidentally remove database files ? Thanks. (4 Replies)
Discussion started by: ckwan
4 Replies

4. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

5. Solaris

Cleaning out /var/sadm/patch after Live Upgrade

I recently upgraded my OS to Solaris 10 10/09 from Solaris 10 06/06 using Live Upgrade. I wanted to clean up space in /var/sadm/patch. I'm assuming the server is now clean with a fresh version of Solaris 10 10/09. Can I safely remove everything in /var/sadm/patch? Thanks, jeremy (0 Replies)
Discussion started by: griff11
0 Replies

6. Solaris

Lost /var/sadm/install/contents file and /var/sadm/pkg

Hello, I recently found that my /var/sadm/install/contents, ~/admin/default, /var/spool/patch and /var/spool/pkg files were empty. This broke the pkginfo, pkgchk and other package related tools. The pkgmap no longer points to where the applications have been installed. I have replaced the... (0 Replies)
Discussion started by: ronin42
0 Replies

7. Solaris

Content of /var/sadm/pkc/<pkg>/save directory

Hi, What are the contents of /var/sadm/pkg/<pkg>/save directory. - It contains various patches with their id's. What does the "pspool" directory inside it contain? (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

8. Shell Programming and Scripting

Resolving Var to its contents

Hello everyone.... I am trying to dinamically create variable names and do resolution of this vars contents. After that is done I want to use (via a function call) the var and its contents by referring to it via the variable name. I am having a hard time achieving this .... can you help ? ... (5 Replies)
Discussion started by: gio001
5 Replies

9. Solaris

How to remove a pkg ,urgent!!

HI all, I would like to know, how we can remove a package? I know that pkgrm will do the job ,but specifying the right kinda package is important.. And i dont know how to figure that one out? Eg:if i have installed a pkg called virtualbox, If i do, pkgrm SUNWvirtualbox ,it says "no such file... (2 Replies)
Discussion started by: wrapster
2 Replies

10. UNIX for Dummies Questions & Answers

/var/sadm/install

Hi, can I delete the file install in /var/sadm directory because I do not need. Regard TDS (1 Reply)
Discussion started by: tinfoul
1 Replies
Login or Register to Ask a Question