Operating System - HP-UX
1833934 Members
1674 Online
110063 Solutions
New Discussion

Re: Strange problem - Unable to open some applications

 
Peter_17
Frequent Advisor

Strange problem - Unable to open some applications

Hi all,

I have a B132 with a fresh install of HP-UX 11. When I try to bring up some applications, (like SAM) I get:

[myname@hpbox1]% sam
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000023
/usr/sbin/sam[196]: /var/sam: bad directory
/usr/sbin/sam[222]: rsam: not found
/usr/sbin/sam[229]: samx: not found
[myname@hpbox1]%

This is as root, in text or GUI mode...

Any help appreciated.

Pete

10 REPLIES 10
Peter_17
Frequent Advisor

Re: Strange problem - Unable to open some applications

Here's another example...

# sam
/usr/lib/dld.sl: Can't open shared library: /usr/sam/lib/libsam.sl
/usr/lib/dld.sl: File table overflow
/usr/sbin/sam[220]: 14565 Abort
#


Pete...

linuxfan
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

Check your nfile size?
kmtune -l -q nfile

check the usage using sar -v (file-sz column).

sar -v 5 5

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

Just wanted to expand a little bit, one normally gets the file table overflow error when you are running out of nfile (which is a configurable kernel parameter and determines the maximum number of files that can be open simultaneously). To see the current usage, use sar -v and look at the column file-size.

For more information on nfile parameter
http://docs.hp.com/hpux/onlinedocs/os/KCparam.Nfile.html

For more information on kernel parameters, refer to
http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sridhar Bhaskarla
Honored Contributor

Re: Strange problem - Unable to open some applications

Peter,

Looks like you are running out of nfiles. Increase this parameter to 30% of what you have now. You need to reboot the system.

As you cannot use sam, you need to do it manually

#cp /stand/system /stand/system.prev
#/usr/lbin/sysadm/system_prep -s /stand/system
#kmtune -s nfile=30000 (or whatever the value)
#mk_kernel -o /stand/vmunix
#shutdown -r y 0

Looking at your first message, I thought it could be an issue with the swap space. You second message is pretty clear. However, it's better to check the swap also. Do a swapinfo -t and see if it is overflowing.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
linuxfan
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

If you are following Sri's procedure to increase the parameter, make a copy of the existing kernel (cp /stand/vmunix /stand/vmunix.prev) before you do a "mk_kernel -o /stand/vmunix". This is just a precautionary measure.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Peter_17
Frequent Advisor

Re: Strange problem - Unable to open some applications

I appreciate the responses.. I attempted to rebuild the kernel. Here's the result of that:




# mk_kernel -o /stand/vmunix
WARNING: No such device, tunable, or cdio maclan.
Ignoring the following line.
maclan
WARNING: No such device, tunable, or cdio autofsc.
Ignoring the following line.
autofsc
WARNING: No such device, tunable, or cdio btlan3.
Ignoring the following line.
btlan3
WARNING: No such device, tunable, or cdio mvfs.
Ignoring the following line.
mvfs
config: cannot open file -- /stand/build/dlkm.vmunix_test/system
#


Any and all help appreciated...

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Strange problem - Unable to open some applications

Pete,

Try this,

#mk_kernel -s /stand/system -o /tmp/vmunix
#cp /stand/vmunix /stand/vmunix.prev
#mv /tmp/vmunix /stand/vmunix
#reboot -qs

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
linuxfan
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

Another option is to,

cd /stand/build
/usr/lbin/sysadm/system_prep -s /stand/build/system
/usr/sbin/mk_kernel
/usr/sbin/kmupdate
shutdown -ry now

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sanjay_6
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

Have a look at the thread below.

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=32d2f86109c0cc041d/screen=ckiSearchResults?mode=id&searchString=A5627601

Hope this helps. Check for the SAM filesets and the patch level on SAM. See if you are missing any SAM patch.

thanks
Sanjay_6
Honored Contributor

Re: Strange problem - Unable to open some applications

Hi Peter,

Here is a threas for you to look at if you decide to reinstall SAM

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=318278bb1915db136c/screen=ckiSearchResults?mode=id&searchString=rcfaxsam001

Hope this helps.

thanks