Solved

HP-UX B.11.11 wtmp file corruption

Posted on 2003-11-13
4
2,863 Views
Last Modified: 2013-12-06
I am experiencing the following error on majority of the HP-UX B.11.11.
"pid exceeds MAXPID: wtmp file corrupted"

I have tried to fix it with the fwtmp/wtmpfix commands.... nothing worked.
I have backed up the file and flushed with /dev/null.... nothing worked.

still getting the same error with "last" command
does anyone know what might have caused this?

thanks in advance for any help you can provide.
0
Comment
Question by:zile26
  • 2
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 175 total points
ID: 9744208
This might be becuase you have a corrupt wtmp file.
1.Check if /var maybe is full.
2.flush the current wtmp. take a copy of the current wtmp say move it to wtmp.old then flush the file using " cat /dev/null > /var/adm/wtmp "
3. wtmpfix -c /var/adm/wtmp > /var/adm/wtmp.fix
   cp /var/adm/wtmp.fix /var/adm/wtmp

check your system log messages related to these failures or nprocs.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9776272
how did it go.
r u still waiting for the answer.
0
 

Author Comment

by:zile26
ID: 9806130
Thanks Shivsa. I had tried it previously.
/var is not full. we had a call to HP and they seemed to think that there's some sort of binary writing to wtmp corrupting it. ????
still searching for help.

Thanks.
0
 

Author Comment

by:zile26
ID: 10018710
Thanks Shivsa.

we have given up on this problem.
however, a reboot fixes the problem. but after a period of time. it gets corrupted all over again.
the system is clean of any virus or anything to that effect.

we think that it's some sort appl. bin causing it. we will have to live with it for now.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
removing nim resources 5 48
Execute multiple curl cmds with sleep and send output to file 10 88
dot directory in FreeBSD??? 4 72
check unix curl command return value 7 83
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now