Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Contents deleted from /var/sadm

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-28-2017   -   Original Discussion by solaris_1977
solaris_1977's Unix or Linux Image
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 28 September 2017, 4:34 PM EDT
Posts: 454
Thanks: 54
Thanked 4 Times in 4 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 09-28-2017   -   Original Discussion by solaris_1977
drysdalk's Unix or Linux Image
drysdalk drysdalk is offline
Registered User
 
Join Date: Feb 2017
Last Activity: 14 December 2017, 11:38 AM EST
Location: United Kingdom
Posts: 206
Thanks: 11
Thanked 66 Times in 62 Posts
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.
Sponsored Links
    #3  
Old Unix and Linux 09-28-2017   -   Original Discussion by solaris_1977
solaris_1977's Unix or Linux Image
solaris_1977 solaris_1977 is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 28 September 2017, 4:34 PM EDT
Posts: 454
Thanks: 54
Thanked 4 Times in 4 Posts
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 Unix and Linux 09-28-2017   -   Original Discussion by solaris_1977
drysdalk's Unix or Linux Image
drysdalk drysdalk is offline
Registered User
 
Join Date: Feb 2017
Last Activity: 14 December 2017, 11:38 AM EST
Location: United Kingdom
Posts: 206
Thanks: 11
Thanked 66 Times in 62 Posts
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.
The Following User Says Thank You to drysdalk For This Useful Post:
solaris_1977 (09-28-2017)
Sponsored Links
    #5  
Old Unix and Linux 10-03-2017   -   Original Discussion by solaris_1977
achenle's Unix or Linux Image
achenle achenle is offline Forum Advisor  
Registered User
 
Join Date: Jun 2009
Last Activity: 5 December 2017, 1:02 PM EST
Posts: 1,008
Thanks: 3
Thanked 154 Times in 146 Posts
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.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Accidently deleted /usr contents. chacko193 Shell Programming and Scripting 19 01-30-2013 04:54 AM
/var/adm & /var/sadm wkbn86 Solaris 2 12-06-2010 06:08 AM
Lost /var/sadm/install/contents file and /var/sadm/pkg ronin42 Solaris 0 06-04-2010 03:41 AM
Directory should not be deleted, But the contents can be localhost Solaris 2 12-16-2008 11:54 AM
accidentally remove the contents of /var/sadm/pkg stancwong UNIX for Dummies Questions & Answers 11 01-04-2006 08:25 PM



All times are GMT -4. The time now is 08:31 PM.