Failed Write of utmpx entry


 
Thread Tools Search this Thread
Operating Systems SCO Failed Write of utmpx entry
# 1  
Old 02-03-2005
Failed Write of utmpx entry

I had a drive go bad. I have replaced the drive and have my system up. I have a 1-to-1 mirror raid. My mirrored boot drive brings the system up. I issued a reboot command. The system comes up gives me a login prompt and generates the error: failed write of utmpx entry:"i2".

What is i2?
# 2  
Old 02-04-2005
The "i2" you see is the first two characters in the id of an inittab entry in the file /etc/inittab.

Per SCO's Technical Articles:

failed write of utmpx entry: xx

PROBLEM

The above error is known to happen when the init process is in the midst of creating an entry for the init job xx in the /etc/utmpx file, and gets interrupted by a SIGCLD signal, because some previously launched init job dies and needs to be cleaned up by init. Upon death of one of these child processes, the SIGCLD signal is generated and caught by init, which interrupts the current activity in order to perform the cleanup operation. Such "interruption" is usually normal. However, if a flurry of terminating init jobs happens at just the right time, the logging of another process by init in /etc/utmpx might fail with an internal error (i.e., "interrupted system call" or EINTR), and the console error shown above will appear. Of course, the end result is that the utmpx entry never gets logged.

SOLUTION

This problem has been reported to SCO Engineering. Currently, the workaround depends on the significance of the inittab entry in question and the impact of not recording the corresponding utmpx entry in /etc/utmpx:
1) if the inittab entry is configured by SCO by default, for example,


i2o1:23:once:/usr/sbin/i2otrans > /dev/console 2>&1


then you might simply remove the entry from inittab and the problem will disappear at the next reboot. In this example, the "i2otrans" job can usually be removed if you are not using an i2o-enhanced HBA. Make sure to make the appropriate omissions in /etc/conf/init.d as well, to prevent the inittab entry from reappearing upon the next kernel rebuild.
2) if the inittab entry must be retained, and the logging of the utmpx entry is also desired (e.g., if desired results from the "who" or "uptime" utilities require that proper utmpx logging by the targeted inittab entry occur) you might avoid the unfortunate timing window described above by simply moving the entry to a different location in the inittab file.

3) if the inittab entry must be retained but logging of the utmpx entry is not necessary, then nothing needs to be done. The occurrence of the console error message "failed to write utmpx entry" does not affect the proper startup of the system in any other way.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

2. Shell Programming and Scripting

Write to 1 failed [No space left on device]

I am getting error in a shell script having a simple date command. Error is " write to 1 failed ". We saw that /tmp folder was 100% full. When we cleared some space in /tmp folder then script worked fine. Why does date command(or any other command) require space in /tmp folder? Which settings... (6 Replies)
Discussion started by: mahish20
6 Replies

3. Shell Programming and Scripting

How to avoid ssh :Write failed: Broken pipe?

Hello, I am trying to run some code on Matlab over ssh . The code takes around 5-6 hours to complete. so after giving the command to run it , I locked my machine and then went off to sleep at night, only to discover in the morning that I get this message : ...Code running, partial results... (1 Reply)
Discussion started by: ajayram
1 Replies

4. Shell Programming and Scripting

How to write a new entry at the beginning of a log file instead of at the end?

Hi Ladies and Gents, Explanation of my question with an example: Let's consider the script: backup_every_hour.sh #!/bin/bash rsync -auv $dir $backup_dir >> backup_every_hour_script.log Each time this script is called there will be a new entry at the end of the file... (1 Reply)
Discussion started by: freddie50
1 Replies

5. UNIX for Advanced & Expert Users

write failed: Broken pipe

The "write failed: Broken pipe" message is reported by the file sending PC which run my writed network device driver while 500MB or 900MB is sended! What does the message mean? Does this mean there is a bug in my driver? li,kunlun (11 Replies)
Discussion started by: liklstar
11 Replies

6. UNIX for Dummies Questions & Answers

no utmpx entry and other questions

I have recently been assigned to help maintain some testing software on two UNIX stations. The stations are connected to instruments that supply power, signals, and take measurements from a box. Both test stations are basically the same. I was given a crash course (read a little training) a couple... (18 Replies)
Discussion started by: bjstaff
18 Replies

7. Programming

Whant to write an entry in /etc/passwd (putpwent)

Hi i try to use the function putpwent to write a simple entry in "/etc/passwd" putpwnet returns 0 as it works but notething writes to /etc/passwd. What have i missed? My os -------- root@nighter-laptop:/home/nighter/labb# uname -a Linux nighter-laptop 2.6.22-14-generic #1 SMP Sun Oct 14... (5 Replies)
Discussion started by: nighter
5 Replies

8. UNIX for Advanced & Expert Users

shutting down 5.7 on Intel: failed to write of utmpx entry

When shutting down a freshly installed version of 5.7 on a Compaq server I get two messages: INIT: failed to write of utmpx entry: "s0" and: INIT: failed to write of utmpx entry: "fw" then I can continue with the shutdown. When I bring the system back up it has not saved any of my... (2 Replies)
Discussion started by: DarkLord
2 Replies

9. UNIX for Dummies Questions & Answers

/: write failed, file system full

Sun server 4 Getting message /: write failed, file system full. Okay so the problem seems obvious. The file system is full. This server is used for DNS and DHCP on a T1 connected WAN. I can't get it to quit displaying the same message as above, even when powered down and restarted. So... (1 Reply)
Discussion started by: lancest
1 Replies

10. UNIX for Dummies Questions & Answers

No utmpx entry.

I am trying to set up a trust between two hosts and from another host to both by creating an /etc/hosts.equiv file on both. I am able to rsh to all but one host (and I am able to rsh from that host to the other). I receive the following error: No utmpx entry. You must exec "login" from the lowest... (1 Reply)
Discussion started by: 98_1LE
1 Replies
Login or Register to Ask a Question