Operating System - HP-UX
1830225 Members
1413 Online
109999 Solutions
New Discussion

cannot open console error no.6

 
SOLVED
Go to solution
Ericsson GSC
Occasional Advisor

cannot open console error no.6

Hi,
We run our application package on a HPUX 10.20 machine with a High Availablilty MC Service Guard solutions.
Recently we have started facing a strange problem. We get the message in the syslog
as "Jul 16 05:10:18 cbilmpn1 syslog: getty: cannot open "console". errno: 6".
This obviously stops anyone from doing anything such as moving packages.

Also the syslog has many other entries like:
Jul 7 18:58:07 cbilmpn1 vmunix: process pid == 2289 does not have memory
Jul 7 18:58:07 cbilmpn1 vmunix: locking privileges required for using
Jul 7 18:58:07 cbilmpn1 vmunix: large text pages in this system version
Jul 7 18:58:07 cbilmpn1 vmunix: see setprivgrp(1m)
Jul 7 18:58:07 cbilmpn1 vmunix: process pid == 2290 does not have memory
Jul 7 18:58:07 cbilmpn1 vmunix: locking privileges required for using
Jul 7 18:58:07 cbilmpn1 vmunix: large text pages in this system version
Jul 7 18:58:07 cbilmpn1 vmunix: see setprivgrp(1m)
Jul 7 18:58:07 cbilmpn1 vmunix: process pid == 2291 does not have memory
Jul 7 18:58:07 cbilmpn1 vmunix: locking privileges required for using
Jul 7 18:58:07 cbilmpn1 vmunix: large text pages in this system version
Jul 7 18:58:07 cbilmpn1 vmunix: see setprivgrp(1m)
Jul 7 18:58:07 cbilmpn1 vmunix: process pid == 2292 does not have memory
Jul 7 18:58:07 cbilmpn1 vmunix: locking privileges required for using
Jul 7 18:58:07 cbilmpn1 vmunix: large text pages in this system version
Jul 7 18:58:07 cbilmpn1 vmunix: see setprivgrp(1m)

These are messages which I do not understand are new to me.
Can anyone of you help me understand why this happens.Can this be anyway caused by our application.Our application uses Oracle 7.x version and also is the only application which runs on this HA solution.
Please help and advice as to why we get these error messages.
9 REPLIES 9
John Palmer
Honored Contributor

Re: cannot open console error no.6

The memory locking privileges messages that you get are due I suspect to having 'lock_shared_memory = true' in your Oracle init file.

This requires the MLOCK privilege assigning to group dba (see man 1m setprivgrp).

In order to set this automatically at boot time, create a file /etc/privgrp containing the line:-
dba MLOCK

This will be read by startup script set_prvgrp which calls
setprivgrp -f /etc/privgrp

Don't know what's wrong with your console other than error 6 is 'No such device or address'

Regards,

John
Antoanetta Naghiu
Esteemed Contributor
Solution

Re: cannot open console error no.6

Check for permissions/ownership /dev/console. Check /etc/inittab for cons line.
Check getty process for console (ps -ef } grep getty) and the run level (who -r).
Did you try to login under application user into the primary node console or which user did you use?
John Palmer
Honored Contributor

Re: cannot open console error no.6

Further to the console problem, what is the format of your getty entry for the console in /etc/inittab and does the device file /dev/console exist?
Ericsson GSC
Occasional Advisor

Re: cannot open console error no.6

I have some more information in this problem.
I dont know if we can link this to this case.But it happened at the same time when the console gets locked.
It is as follows:
this is in /etc/rc.log and is the X11 server.

Starting X Font Server at TCP port 7000
Output from "/sbin/rc2.d/S620xfs start":
----------------------------
/usr/bin/X11/xfs error: CONFIG: can't open configuration file ""

/usr/bin/X11/xfs error: Fatal font server error!
/usr/bin/X11/xfs error: couldn't parse config file
"/sbin/rc2.d/S620xfs start" SKIPPED

Does this give some more clue to the problem.


Ericsson GSC
Occasional Advisor

Re: cannot open console error no.6

Hi,
The problem is not yet solved. I am sorry I had to give 7 points and I gave 8 so it shows magical answer.
Ericsson GSC
Occasional Advisor

Re: cannot open console error no.6

Hi,
The problem is not yet solved. I am sorry I had to give 7 points and I gave 8 so it shows magical answer.
Antoanetta Naghiu
Esteemed Contributor

Re: cannot open console error no.6

Let's try to solve the problem.
Can you, please post the output for ls -al /dev/console and the console line from /etc/inittab?
Can you, please also, say if this is the problem for all users and how long it last? Is it anything noticeable happened in this time (it was working and now it is not, was any modification with the box)?
Ericsson GSC
Occasional Advisor

Re: cannot open console error no.6

Hi,
Some more information.
output of model command: 9000/861/D370
Oracle Version: 7.3.3.4.1
.
Permissions and ownership on /dev/console: crw--w--w- owner is root and group is tty.

cons:123456:respawn:/usr/sbin/getty console console
John Palmer
Honored Contributor

Re: cannot open console error no.6

Annika,

Can you still not log in at the console or do you have another problem? The device file for the console should have a major number of 0 and a minor number of 0x000000 - exactly the same as /dev/syscon.

Please supply some more information.

Regards,

John