Operating System - HP-UX
1752786 Members
5829 Online
108789 Solutions
New Discussion юеВ

Error in writing to wtmp or wtmps file

 
SOLVED
Go to solution
sreekanthtm
Trusted Contributor

Error in writing to wtmp or wtmps file

Iam getting this error while booting my server
"INIT: Timout Reached - Error in writing to wtmp or wtmps file"
After that server will come to login prompt and able to login through MP.But not able to access through telnet, ssh..
Details are given bellow.
HPUX Version. : hazuxpa4 B.11.31
model : rp3410
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Error in writing to wtmp or wtmps file

The most likely explanation is that the / filesystem is completely full.
If it ain't broke, I can fix that.
Aussan
Respected Contributor

Re: Error in writing to wtmp or wtmps file

wtmps is in /var/adm
make sure var is not full
wtmps has not limit and will grow until it /var is full

The tongue weighs practically nothing, but so few people can hold it
Tim Nelson
Honored Contributor
Solution

Re: Error in writing to wtmp or wtmps file

If you cannot login you will need to boot to single user ( even worse you may need to crash the system ) in order to fix this.

sreekanthtm
Trusted Contributor

Re: Error in writing to wtmp or wtmps file

Iam able to access the system through local console. I checked the filesystem size "/var" is only 18% used.
Steven E. Protter
Exalted Contributor

Re: Error in writing to wtmp or wtmps file

Shalom,

Check permissions on and ownership on the files.

Check permissions and ownership on the parent directory.

See if the syslog.conf has been changed or if syslog is even running.

use mstm/cstm/xstm to check the disk is working. dmesg

You say you can not access through telnet/ssh
See physically if the network card is lit up.
ifconfig lan0 (and others)

Check for recent changes in /etc/rc.config.d/netconf and duplicate ip addresses on the network.

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
Steven E. Protter
Exalted Contributor

Re: Error in writing to wtmp or wtmps file

Also,

Don't forget to periodically trip those files > wtmp > btmp either with sam or a script.

Keep archive copies on tape or off system in case there is a security breach.

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
Hasan  Atasoy
Honored Contributor

Re: Error in writing to wtmp or wtmps file

/tmp or /var is full

open in single user by hp-ux -is and free some space and "init 3" .

Hasan.
Tim Nelson
Honored Contributor

Re: Error in writing to wtmp or wtmps file

Other than any number of filesystems being full your wtmp file may be corrupt.

Wipe it out and see if that fixes your issue.
cat /dev/null > /var/adm/wtmp
sreekanthtm
Trusted Contributor

Re: Error in writing to wtmp or wtmps file

1.Boot the server in single user mode
2.Delete /var/adm/wtmp
3.touch /var/adm/wtmp
4.Boot the server using init 3

Thank you all for ur info.
Sreekanth