Operating System - HP-UX
1838576 Members
4156 Online
110128 Solutions
New Discussion

Host does not take any commands

 
Olebile
Frequent Advisor

Host does not take any commands

Gentlemen,

I have a problem with my server, it does not take any commands, no new sessions can be established, no filesystem is full, system load is insignificant. I only the error below to work with:

mosetlha[427] /usr/bin # bdf|pg
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000023
pg: cannot find terminal type
mosetlha[428] /usr/bin #

mosetlha[431] /usr/sbin # ll
. unreadable
total 14
mosetlha[432] /usr/sbin #


Please help!!
Perfomance Monitoring is not always easy
12 REPLIES 12
Michael Tully
Honored Contributor

Re: Host does not take any commands

Has any user with root permissions removed any files or changed permissions on the directory?

Try this:

# ls -ld /usr/sbin
The permissions should be at least 555 or even 755

# chmod 755 /usr/sbin
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: Host does not take any commands

Hi,

could u set TERM to vt100 using the menu key on keyboard
never give up
T G Manikandan
Honored Contributor

Re: Host does not take any commands

The errno 23 is File table overflow.

you are exceeding the nfile kernel parameter value on the kernel.
You should increase this to resolve the problem.

T G Manikandan
Honored Contributor

Re: Host does not take any commands

If you cannot reboot the server right now then you should check the unwanted processes which are using or opening too many files on the system and try stopping it.

To fix this problem on a permanent basis nfile should be increased.

check this kernel parameter link

http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.Nfile.html
Olebile
Frequent Advisor

Re: Host does not take any commands

I did #chmod 755 /usr/sbin jus to verify and tried #ls -l with the error below:

mosetlha[431] /usr/sbin # ll
. unreadable
total 14

Perhaps someone has deleted files under /usr/sbin

Why does it show "total 14" with the error, could it be that only 14 files are under /usr/sbin?
Perfomance Monitoring is not always easy
Bill Hassell
Honored Contributor

Re: Host does not take any commands

Check the permissions on /usr and /. Perhaps someone (as root) has been changing permissions on these very critical directories. They should both be 755.


Bill Hassell, sysadmin
Olebile
Frequent Advisor

Re: Host does not take any commands

Someone please jog my mind where to change the nfile parameter on the command line. I know the is a file to edit called "system"?
Perfomance Monitoring is not always easy
David_246
Trusted Contributor

Re: Host does not take any commands

Hee,

System is Solaris file, sir :)
But anyone who knows the filename under HPux please let me know as I am very interested.

Isn't it something that is tuneable by adb ?? Don't have that much experience with adb.

But changing your working directory to / and than some testing would be ok as well.
Make sure you unset $PATH, maybe there is something in your PATH-variable that isn't there anymore and that is just before /usr/sbin

so : PATH=/some/none/excisting/nfs/path:/usr/sbin:/usr/local/bin

This makes every command that gets executed fail and give an error.

Just some extra ??tip?? (don't know if this is the right word)


Regs David

@yourservice
Olebile
Frequent Advisor

Re: Host does not take any commands

The file is /stand/system , you will find tunable kernel parameters there. Unfortunately for me I was not able to vi the file since my system wont take any commands. I have tried killing some user processes still it does not take any commands. Now I have a major problem, I need to trust in God and hardboot the system. I have 7 oracle databases on the system. Time to check if my DB recovery strategy works. Wish me luck!!
Perfomance Monitoring is not always easy
T G Manikandan
Honored Contributor

Re: Host does not take any commands

I assume you are using hpux OS.
Then you can use

sam--->kernel configuration-->
then choose maxusers

Increase maxusers which inturn should increase infile.

Build a new kernel and reboot.

Thanks
Olebile
Frequent Advisor

Re: Host does not take any commands

I managed to do a system reboot, increased the number kernel parameter maxusers and nfile. The problem sort of disappeared.

Thanks
Perfomance Monitoring is not always easy
Ramkumar Devanathan
Honored Contributor

Re: Host does not take any commands

hi,

If this hpux 11.0 or above, you may use the command kmtune. the kmtune command may be used to modify kernel parameters from the command line.

man kmtune will let you know the options. -q option lets you query, no option lists all the current settings, and -s lets you set the new values.

i wonder if it will work when one has a problem such a yours. but if you are able to open sam, then you should really be able to run this command. then you of course reboot thereafter.

from 11i onwards there's always KC which allows dynamic kernel parameter modification.

regards,
Ramkumar.
HPE Software Rocks!