Solved

HP-UX B.11.11 wtmp file corruption

Posted on 2003-11-13
4
2,879 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

806 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