Operating System - HP-UX
1836766 Members
2640 Online
110109 Solutions
New Discussion

Re: getty keeps dying for console

 
Dagmar Bendová
Advisor

getty keeps dying for console

I have similar problem as thread 21 Nov 2001.
I have a getty process for the console that dies frequently too. The process getty runs a few seconds and then die off. The process getty is configured as respawn in /etc/inittab so the process init tries to keep them running.
I can find this message after each dying off in syslog:
getty: cannot open "console". errno: 6

This is part of configuration of my /etc/inittab
cons:123456:respawn:/usr/sbin/getty console console
ls -la /dev/console:
crw--w--w- 1 root sys 0 0x000000 Nov 10 09:24 /dev/console

I've tried insf -evd cn with installing succesfully.
It is not problem on terminal or cable. I ve used both (terminal and serial cable) to another server and it worked fine.

Is there any hw problem in serial port?
Thanks for answers.
Dagmar
xx
10 REPLIES 10
Steve Steel
Honored Contributor

Re: getty keeps dying for console

Hi


Suspect IO Card


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Robert-Jan Goossens
Honored Contributor

Re: getty keeps dying for console

Dagmar,

Just checked my permissions of /dev/console.

crw--w--w- 1 root tty 0 0x000000 May 2 04:46 console

Try to change the group to tty.

Regards,
Robert-Jan
Dagmar Bendová
Advisor

Re: getty keeps dying for console

I' ve changed the permissions on the special file /dev/console with no effect.
Thanks.
Dagmar
xx
Stephen Keane
Honored Contributor

Re: getty keeps dying for console

Do you have a stanza in /etc/gettdefs for "console" (it'll probably have the detail commented out)

e.g.

#
# This entry is used for the console
#

console # B9600 SANE CLOCAL CS8 ISTRIP IXANY TAB3 HUPCL
# B9600 SANE CLOCAL CS8 ISTRIP IXANY TAB3 HUPCL
#Console Login: #console

Also check permissions on /etc/gettydefs

-r--r--r-- 1 bin bin 2491 Nov 14 2000 /etc/gettydefs


Kent Ostby
Honored Contributor

Re: getty keeps dying for console

ENXIO 6 /* No such device or address */

You should have three device files that look like this:

crw--w--w- 1 root sys 0 0x000000 Mar 31 17:18 /dev/console
crw--w--w- 2 bin bin 0 0x000000 Jan 25 02:08 /dev/syscon
crw--w--w- 2 bin bin 0 0x000000 Jan 25 02:08 /dev/systty

Note that /dev/syscon and /dev/systty are linked.

If the files look okay then check your cable and make sure the console is connected securely to the port.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ajitkumar Rane
Trusted Contributor

Re: getty keeps dying for console

Hello Dagmar,

Error no 6 probably is "timeout/offline"
Does the console get in powersaving mode, or may be the communication port on the console has problems. or
Do you have any reference to device file by the name /dev/tty0 in /etc/inittab which is also considered the console.


Rgds,

ajit
Amidsts difficulties lie opportunities
Dagmar Bendová
Advisor

Re: getty keeps dying for console

Thank you very much for your answers.

There is no problem on the console or the cable.
I've tried to connect same cable and same terminal to another server and console prompt showed itself immediately.

Device file /dev/tty0 doesn´t exist on the server either in /etc/inittab.

There exists four files on the server with this permission:

crw--w--w- 1 root tty 0 0x000000 Nov 10 09:24 /dev/console
crw--w--w- 2 bin bin 0 0x000000 May 29 2005 /dev/syscon
crw--w--w- 2 bin bin 0 0x000000 May 29 2005 /dev/systty
-r--r--r-- 1 bin bin 2491 Nov 14 2000 /etc/gettydefs

Parts of /etc/gettydefs:
console # B9600 SANE CLOCAL CS8 ISTRIP IXANY TAB3 HUPCL
# B9600 SANE CLOCAL CS8 ISTRIP IXANY TAB3 HUPCL
#Console Login: #console


xx
Dagmar Bendová
Advisor

Re: getty keeps dying for console

I have two same servers under control - same type K580, same OS 11i. One of them has problem with console.

I ve tried to do some test on the server where the console works well. I´ve unplugged the serial cable from that server and I´ve done "init q" for sureness.
The result is: the getty process keeps running and I am able to send the message without mistake on the special device of the console (/dev/console).

It sends me back to "bad" server. There has to be something wrong (hardware fault) on its serial port.




xx
Steven E. Protter
Exalted Contributor

Re: getty keeps dying for console

Shalom Dagmar,

I suspect hardware but try rmsf /dev/console and then insf -e to rebuild the psuedo & terminal drivers.

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
Dagmar Bendová
Advisor

Re: getty keeps dying for console

I´ve done it with no effect.
Dagmar
xx