Operating System - HP-UX
1825747 Members
2608 Online
109687 Solutions
New Discussion

Re: files missing in /usr/lib

 
Rajasekhar Raman
Frequent Advisor

files missing in /usr/lib

We had an issue with our RAID system and the server hung. I had to reboot the box while it was in the middle of several transactions. The box rebooted without any obvious problems. But once it came back up, I could not "vi" or execute a number of other commands. It complained about several libxxx.so.x files not being found. Upon investigation and comparing with another identically configured system (rx2620 , HPUX 11.23, March 2006 Patchset), I found that a number of files in the /usr/lib directory were missing.

Any way to recovery??
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: files missing in /usr/lib

What type of backup system do you have? Have you tried restoring?

IF you can figure out what you need, you MIGHT be able to copy from your other machine.

If the normal commands don't work, see if an equivalent command exists in the /sbin/ directory. /sbin/ contains commands that are statically linked which means they don't need the /usr/lib libraries.
Tim Nelson
Honored Contributor

Re: files missing in /usr/lib


Is /usr mounted ?

sounds like the server hung because someone did an rm -r *
Rajasekhar Raman
Frequent Advisor

Re: files missing in /usr/lib

I did copy the /usr/lib contents from another identically configured machine. Seems to have fixed the problems the users were having, however in doing so I copied the files instead of the symbolic links and have wound up with a bulkier /usr filesystem.

I wonder if this is the best way, or should I have restored from a backup (Legato, this system is backed up daily) ?

-Shekar
James R. Ferguson
Acclaimed Contributor

Re: files missing in /usr/lib

Hi:

I would have restored your missing files from backup instead of copying them from a similar system. In that way, you are assured of getting the correct, identical versions of what you removed. Your "identical" server could conceiveably have different file versions if its patch state differs.

Regards!

...JRF...
Rajasekhar Raman
Frequent Advisor

Re: files missing in /usr/lib

Fortunately in this case, both servers were installed just 50 days ago, and both went into use on exactly the same day. So I guess I got lucky this time.

Secondly, restoring from tape involves requesting the tape that has already gone off site. As a fall back, I have requested the backup tape which I shall re-restore the files from in case users report any errors.

Thanks for your help.

-Shekar
Rajasekhar Raman
Frequent Advisor

Re: files missing in /usr/lib

Thanks everyone for your prompt responses
Dennis Handly
Acclaimed Contributor

Re: files missing in /usr/lib

If you do a swverify of your whole system, it should tell you which files should have been symbolic links.