- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/lib/libc.2 deleted, now nothing works. can bo...
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
Forums
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
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
тАО05-02-2002 07:12 AM
тАО05-02-2002 07:12 AM
hp d/9000 hpux 11.0
in the course of investigating an issue for a client with "/usr/lib/dld.sl Can't find path for shared library libc.2", our libc.2 file was deleted.
The client problem is now fixed (was cos the s/w had been build on 11 and was attempting to be run on 10.2 which only has libc.1).
However we are left with the issue that our libc.2 file has been deleted. None of the unix commands that deal with files work, all return the error above.
i have tried booting from the install CD, which works ok, but i cannot replace the file as when doing this it appears that the cd is mounted on / therefore making any mount points under this inaccessible.
i'm beginning to think that the only way round is to re-install, which i really don't want to do.
any ideas will be very gratefully rec'd
ta
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:17 AM
тАО05-02-2002 07:17 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
If that's all that's missing, you should be able to boot into single user mode, mount /usr and restore /usr/lib/libc.2 from a backup.
This is one occasion when the Recovery CD isn't required.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:35 AM
тАО05-02-2002 07:35 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
without this file the system will not boot properly as none of the commands that access a file work, (e.g. mv, cp, cat, more etc.)
all i did was try to replicate the client's problem by setting my LD_LIBRARY_PATH to null. This didn't have any effect so i renamed libc.2 oldlibc.2. this replicated the client's issue, then i tried mv oldlibc.2 libc.2, it didn't work, i tried a cp, it didn't work i tried all sorts, they didn't work. i could no longer start new telnet sessions or log into the console.
the system will not boot properly, as i presume it needs to do file access stuff, if i set the LD_LIBRARY_PATH to another version of the file in /opt/..... then it still doesn't work as the dld.sl must have /usr/lib/libc.2 hardcoded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:39 AM
тАО05-02-2002 07:39 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
I agree with John. Boot up into single user mode; but don't attempt to mount /usr. Rather, use '/sbin/mv' to restore your library.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:40 AM
тАО05-02-2002 07:40 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:42 AM
тАО05-02-2002 07:42 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
Have you tried to link the file?
ln oldlibc.2 libc.2
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:43 AM
тАО05-02-2002 07:43 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
You can do following thing.
just "ftp" the required file from other machine running HP-UX 11.0 and put it in to your machine.
You can also use "rcp".
Remember if you use ftp, it will not need your machine to look for any commands if you login from remote machine and put the files in your problematic machine.
If this thing is not working then you need to recover your system using Ignite backup tape.
hope this helps.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 07:46 AM
тАО05-02-2002 07:46 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
All the programs in /sbin are 'statically linked' and thus don't use shared libraries.
In single-user mode, these are pretty much the only commands that you can use anyway.
If you hadn't rebooted then you could have used /sbin/mv in the first place.
You will have to mount /usr because the file to be restored is in there.
So specifically:
1. Boot to single user mode - interact with ISL and run 'hpux -is'
2. At the shell prompt:
mount /usr
cd /usr/lib
/sbin/mv oldlibc.2 libc.2
3. Run /usr/bin/ls or something to check that all is well
4. Reboot
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 09:40 AM
тАО05-02-2002 09:40 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 06:13 AM
тАО05-03-2002 06:13 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
thanks for all your suggestions for far.
unfo. i still have not solved the problem.
i cannot ftp cos the machine will not start or accept ftp connections.
the machine will not start in single user mode due to being unable to find /stand/vmunix
i can only boot the machine from the hp-ux 11 install cd, this does not let me mount any of the file systems, due to a /dev/rdsk/c1t5d0 must be a block device error.
the only thing i can think of is to reinstall hp-ux
cheers
fr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 06:19 AM
тАО05-03-2002 06:19 AM
SolutionI thought that all you'd changed was the name of a library ;??)
See this recent thread for instructions on how to use the Recovery CD.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4e847d4cf554d611abdb0090277a778c,00.html
What happened to the kernel?
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 07:17 AM
тАО05-03-2002 07:17 AM
Re: /usr/lib/libc.2 deleted, now nothing works. can boot from install cd - how do i replace
you are a star!!
the link you provided helped me use chroot_lvmdisk to get the system up in single user mode (think the kernel was not accesible as the system was booted from the recovery CD).
from there i used your previous post to use the statically linked /sbin commands to mv the libc.2 library
am happy, and can now enjoy the long bank holiday instead of being at work.
thanks again
fr