LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2013, 11:49 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
Question Can't access console/local command prompt


Hi all,

I have a RHEL6 server sitting in a data centre. We hardly ever have cause to access the local console, but we can do remotely using a KVM in the same rack.

I have been doing some maintenance remotely and have noticed that once RHEL6 has booted, a console is not presented locally.

All other services startup fine (that we know of). This is a production server running multiple critical services to a mid-size company.

I have reason to make some changes with the network config and don't want to while I have to no access to the local console via the KVM (I can remotely connect to the KVM, then operate the server as though I was local).

It's impossible to know when this problem manifested because, as mentioned, we typically don't use the local console.

One tip I read was to ensure there is a "console" entry in my /etc/securetty file. it's already there.

Is there any common cause for this which anyone can suggest looking into first?

Thanks in advance.

Elliot
 
Old 10-05-2013, 06:56 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe check the kernel boot arguments to make sure the console hasn't been redirected to a serial port or similar ?
 
Old 10-07-2013, 01:13 PM   #3
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
Hi kbp,

Thank you for the reply, I will follow up on this and take a look.
 
Old 10-07-2013, 01:44 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
the default consoles (the ones accessed on cntrl alt F1/F2 etc) are generally launched via inittab. Default centos6 should have these entries:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

if you dont have those then tty's will just be blank. I've worked at a few companies that want those disabled except for in init1.
 
Old 10-09-2013, 09:12 AM   #5
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
Hi guys,

These are my active kernel parameters:

"
kernel /boot/vmlinuz-2.6.32-358.18.1.el6.x86_64 ro root=UUID=0af825b9-7016-4de1-a967-1c315ef72826 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=uk crashkernel=auto intremap=off
"

A quickl Google reference doesn't seem to indicate the problem lies here - but confirmation would be appreciated

Checking inittab next.
 
Old 10-09-2013, 09:52 AM   #6
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
The server I am working on is RHEL6 and the inittab is as follows. As far as I'm aware this hasn't been changed since installation. Does this look right - I'm not familiar with changing this file:

Code:
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
Thanks
 
Old 10-09-2013, 09:57 AM   #7
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
I'm just comparing the inittab and going through the referenced files, against a CentOS 6 server I have in the same rack, which displays the console login fine. So far these files are looking identical.
 
Old 10-09-2013, 10:11 AM   #8
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
I'm not sure I have been clear on something. When I reboot the server and remotely connect to the console session via the KVM, I can actually see the bootup process and watch all the services startup etc, but it's when the server appears to have fully started up I would expect to be given the local login prompt - at this stage, nothing happens. I'm not sure how else to explain it, but this is probably down to my lack of familiarity with linux.

Here's a screenshot of the local console, 17.5 hours after bootup. Where my login prompt!?
 
Old 10-09-2013, 04:09 PM   #9
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
What happens if you press [enter] ?
 
Old 10-16-2013, 06:34 AM   #10
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
The screen scrolls up a line if I press enter, appearing to prove that keyboard input is passed through the KVM to the Red Hat console without a problem.

If I enter CTRL-C, q, enter, enter, enter.. etc no command prompt appears.

I can key in random text which appears on the console screen, but there's no shell/interpreter so nothing happens.
 
Old 10-16-2013, 07:44 AM   #11
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
This DBfax scheduler init script seems to be not exiting cleanly, just staying active. If you log in via ssh and disable this service does the console come up ok on reboot?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing Command on Remote Windows System from a Local Windows Command Prompt devUnix General 8 05-30-2012 07:51 AM
[SOLVED] Remote access problem-no ssh;local console rapid scrolling screen no login prompt kapshure Linux - Newbie 2 11-08-2010 04:41 PM
Lost console login prompt--neither GUI or command line prompts display JMCraig Red Hat 7 11-14-2008 12:15 PM
nohup command in script doesn't return to system console prompt beammeup Linux - Software 4 02-05-2007 02:01 PM
Difference between Console, Shell, and Command Prompt Anupam Pathak Linux - Newbie 3 10-23-2005 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration