Solved

HP-UX B.11.11 wtmp file corruption

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -a in AIX unix 8 48
LINUX : Create user with required privilages to take backup of a file system 5 85
Parsing a file using ksh 10 72
aix unix tar error 3 73
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

820 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