- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restore library file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 09:53 AM
тАО10-10-2002 09:53 AM
Thanks,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:14 AM
тАО10-10-2002 10:14 AM
Re: restore library file
I have been thinking on this one.... hmmmm....
Idea...
1. Restore libc.2 in some temp dir.
2. Boot from hp-ux install cd into recovery mode
3. Hopefully now it's not busy/in use.
4. Try to access disc and copy recovered file into place.
5. Reboot system.
Never tried this before, but might be the solution. So no warranty :)
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:22 AM
тАО10-10-2002 10:22 AM
Re: restore library file
I think Clemens probably has it right. That file gets opened by just about everything in the world so you'd have a real tough time replacing it on a running system.
I'm curious, why do you need to restore that file?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:27 AM
тАО10-10-2002 10:27 AM
Re: restore library file
1) While you are in multi-user mode copy your new version to a file in /usr/lib/. e.g. /usr/lib/libc.2.tmp
2) Shutdown and boot in single-user mode.
3) mount /usr
4) /sbin/mv /usr/lib/libc.2.tmp /usr/lib/libc.2
5) umount /usr
6) sync; sync; sync
7) Reboot in normal fashion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:30 AM
тАО10-10-2002 10:30 AM
Re: restore library file
Clay gave as usual the best possible answer.
I didn't think of that. :(
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:46 AM
тАО10-10-2002 10:46 AM
Re: restore library file
am left to Clemens idea, I did
try the steps Clay mentioned and the little bugger was still busy. I created a /usr/park directory and restored the more recent version there, then in single
user mode I had mounted /usr
and tried to move it (/sbin/mv) and got the error
message. Do you think I really
need to replace it, even though it is a bit different
in size.
Thanks all,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:50 AM
тАО10-10-2002 10:50 AM
Re: restore library file
I'd be a little hesitant to replace that file. It probably just gets updated when you load patches from HP. My guess is that you might have loaded a patch in between your last backup and your "make_rec_tape". Can you post the two different file sizes you are seeing? Have you patched the system recently?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 10:55 AM
тАО10-10-2002 10:55 AM
Re: restore library file
The only sure way to operate in single-user mode is to *boot into* it so that no filesystems get mounted and executables in those filesystems aren't ever run. Transitioning downward with 'init' is unlikely to work in situations like yours.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 11:42 AM
тАО10-10-2002 11:42 AM
Re: restore library file
Yes I did install some patches
during that period. Do you think I should still hold off?.
James,
I did "boot-into" into single-user mode and mounted /usr.
Your point is well taken.
Thanks,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 11:54 AM
тАО10-10-2002 11:54 AM
SolutionIf you aren't having any specific problems with that library, I wouldn't replace the file. It probably was updated by one of the patches you loaded, and if you put back the older file you might have some problems with other programs that might rely on the updated libc.2 file. My philosophy is, don't fix it if it isn't broken. :)
JP