- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: getty keeps dying for console
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
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
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-2006 09:12 PM
05-02-2006 09:12 PM
getty keeps dying for console
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 09:17 PM
05-02-2006 09:17 PM
Re: getty keeps dying for console
Suspect IO Card
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 09:21 PM
05-02-2006 09:21 PM
Re: getty keeps dying for console
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 09:54 PM
05-02-2006 09:54 PM
Re: getty keeps dying for console
Thanks.
Dagmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 10:51 PM
05-02-2006 10:51 PM
Re: getty keeps dying for console
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 11:24 PM
05-02-2006 11:24 PM
Re: getty keeps dying for console
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 11:36 PM
05-02-2006 11:36 PM
Re: getty keeps dying for console
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 12:04 AM
05-03-2006 12:04 AM
Re: getty keeps dying for console
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 01:04 AM
05-03-2006 01:04 AM
Re: getty keeps dying for 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 01:43 AM
05-03-2006 01:43 AM
Re: getty keeps dying for console
I suspect hardware but try rmsf /dev/console and then insf -e to rebuild the psuedo & terminal drivers.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 01:51 AM
05-03-2006 01:51 AM
Re: getty keeps dying for console
Dagmar