Operating System - HP-UX
1752515 Members
4941 Online
108788 Solutions
New Discussion юеВ

Re: hp 11.11.1 dld.sl file moved

 
SOLVED
Go to solution
Phillip Popp
Regular Advisor

hp 11.11.1 dld.sl file moved

Hi,
I unknowlingly moved the dld.sl file and renamed it. now nothing will work. I can not logg into the machine. Please any help would be greatly appreciated. it is on a 9000 3400 series. It has an independent manager but I also can not gain access with that as well.

HELP!!!
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: hp 11.11.1 dld.sl file moved

Shalom,

Locate the system console.

If it is network based, connect to it via the network, otherwise walk to the console and log in as root.

Copy the file you deleted from another system or a backup and put it back where you found it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor
Solution

Re: hp 11.11.1 dld.sl file moved

If you still have a session logged into the server then use the commands in the /sbin/ directory as those do not require external libraries.

For example:

# /sbin/mv /usr/lib/dld.sl.whatever /usr/lib/dld.sl
Phillip Popp
Regular Advisor

Re: hp 11.11.1 dld.sl file moved

Patrick,
Thank god for you!!!
Dennis Handly
Acclaimed Contributor

Re: hp 11.11.1 dld.sl file moved

>I unknowingly moved the dld.sl file and renamed it.

How did you do this? In general you should NOT be fiddling with dld.sl and only use official patches to change this.

I recently had to go into single user mode because libm.so.1 and libelf.so.1 were renamed.
Phillip Popp
Regular Advisor

Re: hp 11.11.1 dld.sl file moved

Did not know it was a critical file. I can not get tcl programs to run on this box. Getting error message - /usr/lib/dld.sl: Call to mmap() failed - TEXT /opt/tcl8.0/lib/libtcl8.0.sl

/usr/lib/dld.sl: Permission denied

Abort(coredump)
Dennis Handly
Acclaimed Contributor

Re: hp 11.11.1 dld.sl file moved

>Did not know it was a critical file.

Now you do. :-)

>I can not get tcl programs to run on this box. Getting error message - /usr/lib/dld.sl: Call to mmap() failed - TEXT /opt/tcl8.0/lib/libtcl8.0.sl

This says you are out of 32 bit shared memory area. You have either too many busy shlibs or you have too many shared memory segments:
ipcs -ma

/usr/lib/dld.sl: Permission denied

This is saying that dld.so doesn't have permission to find or execute libtcl8.0.sl? Make sure it has both R and X for each path component too.
Phillip Popp
Regular Advisor

Re: hp 11.11.1 dld.sl file moved

Yes, it is a learning experience :) This machine is doing some unusual things. I am way over my head. If you guys can help that would be great. It looked as though some of the .sl for the tcl files where not open. Will try to rerun again. not sure about the shared libraries processes. I ran your suggested command and dumped the output to a file (attached) another major concer I have and maybe related is cron file in the / dir. It is updating every minute on the minute. Size of file does not change. I remove it but it regenerates in the next minute. i also included that as well in case you guys know how to read them. I don't have a clue. Somehting is wrong with this box but I just don't know what it is. anything you guys need me to try just let me know and I will do my best.

thanks,

Phil
Phillip Popp
Regular Advisor

Re: hp 11.11.1 dld.sl file moved

I can only seem to attach one file at a time. Here is the core file

Thanks,

Phil
Dennis Handly
Acclaimed Contributor

Re: hp 11.11.1 dld.sl file moved

>I ran your suggested command and dumped the output to a file (attached)

You only have 4 segments with a total of 1.1 Mb, so that's not the issue.

>maybe related is cron file in the / dir. It is updating every minute on the minute.

What do you mean a cron file in /?
You have a root crontab entry that does something every minute:
* * * * * do-something?

>Something is wrong with this box but I just don't know what it is. anything you guys need me to try just let me know and I will do my best.

What are the permissions for each of these directories:
ll -d / /opt /opt/tcl8.0 /opt/tcl8.0/lib /opt/tcl8.0/lib/libtcl8.0.sl

>I can only seem to attach one file at a time. Here is the core file

You can tar your files, then gzip.
Note: A core file from dld.sl is useless, that's why on Integrity, dld.so kills itself and doesn't call abort.