Contents deleted from /var/sadm


 
Thread Tools Search this Thread
Operating Systems Solaris Contents deleted from /var/sadm
# 1  
Old 09-28-2017
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?
# 2  
Old 09-28-2017
Hi,

Oh dear, that is...unfortunate. The primary purpose of the directory tree underneath /var/sadm on Solaris is to store information about all installed packages and patches. So basically, it's entirely system-dependent. No two servers will have the same contents in there, unless they've had exactly (and I really do mean exactly) the same life in terms of the OS install options, subsequently-added packages and applied patches all being 100% identical at every step of the way.

So in other words, unless this server happens to have a sibling system that has identical hardware, an identical patch level of the OS, and absolutely identical sets of installed software and patches, with literally no differences between the two systems in any way whatsoever, then the contents of /var/sadm are going to be different. It's not really a transplantable directory, sadly.

If it were me, and I had a system with a hosed /var/sadm and genuinely no backups, I'd most likely be looking at migrating services off of it on to another server, and re-installing the broken box. Unless you are happy never being able to install any packages or apply any patches (an unwise situation to be in, generally speaking), then that is probably your only way out of this without backups, I'm sorry to say.
# 3  
Old 09-28-2017
We have another application node, which is also servicing as cluster part of this server. OS, version and patch levels are same, but I can not say about ubsequently-added packages or may be little difference in libraries.

We are in talks with application teams for option of rebuilding it. But, if we take chance, it can not be 'repaired', if we boot it from OS bootable disk ?
# 4  
Old 09-28-2017
Hi,

That's good, that you at least have something that can take over while you do a re-build. In terms of repairing this - I'm not myself aware of a way of doing that, sadly. The problem is that the information about installed packages and patches only lives in /var/sadm, and if it's gone, it's gone. With all the files actually being totally gone rather than corrupt or otherwise experiencing a problem, I'm not aware of any way to re-build /var/sadm, since it is itself the database that keeps note of what's happened to the system. Since there is no other record, there's nothing to re-build from, if you follow.
This User Gave Thanks to drysdalk For This Post:
# 5  
Old 10-03-2017
For what it's worth, if you're paying Oracle for support on this system, you need to do a clean reinstall. There's no way you'll get any support from Oracle on that server until you do.

And once you get your system back up and stable, start doing backups. You now know why.

Then look into Solaris 10 alternate boot environments and live upgrade. Start here: Booting Multiple Boot Environments - Oracle Solaris 10 9/10 Installation Guide: Solaris Live Upgrade and Upgrade Planning Having a backup boot environment on the system can save you in cases like this.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Accidently deleted /usr contents.

Hi I have the following code which was supposed to clean up a directory when the number of files in that directory exeeded 2.The code is given below. #!/usr/bin/ksh dir_num=`/usr/bin/find /var/.audit -type d | /usr/bin/wc -l` if then oldest_file=`/usr/bin/ls -1t | /usr/bin/tail... (19 Replies)
Discussion started by: chacko193
19 Replies

2. 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

3. 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

4. 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

5. 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

6. 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

7. Solaris

Directory should not be deleted, But the contents can be

Hi Guys, I have an user's home directory set to /home/A And A contains the following directories B & C Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ? Also i have... (2 Replies)
Discussion started by: localhost
2 Replies

8. UNIX for Dummies Questions & Answers

accidentally remove the contents of /var/sadm/pkg

Hi all, I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot. :eek: (11 Replies)
Discussion started by: stancwong
11 Replies

9. UNIX for Dummies Questions & Answers

Deleted /var/adm/sw/patch

I am on a HP-UX 11.0 machine and I deleted '/var/adm/sw/patch'. I realize now what a mistake this was. Since doing this I can no longer export display to remotely view netscape. At this point, what are my options for recovering the 'patch' directory? I don't have a backup. Any help would... (0 Replies)
Discussion started by: lucesean
0 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