Solved

HP-UX B.11.11 wtmp file corruption

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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.

705 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

20 Experts available now in Live!

Get 1:1 Help Now