Unable To Login Via Root Or Console In HP-Unix

The following post is regarding the most common problem faced while using
HP-UX system.



 

Problem : 
Audit file has no space 0% left ! Unable to Login through root and also unable to login through console.



Error : current audit file size is 613959 kilobytes!!!
          an attempt to switch to the backup file failed.
          Must specify a backup file now !
          audit file has 0% free space left !

Note: This is most common Error while working on HP-UX.


Solution – Here is the tested solution

Step -1 Login HP-UX in single user mode.
1. shutdown -r 0
2. hit during 10 sec window to interrupt reboot
3. enter:
4. interact with ipl? yes
5. hpux -is (i=init, s=single user)


Step -2 Mount the all filesystem in singleusermode via command
               #mountall

Step -3 Check the root file system.
                # bdf /

Step -4 Audit data written into a logfile in your root filesystem (usually into /.secure/etc)

            Go to ./secure/etc Directory

            # cd ./secure/etc

Step -5 Delete the audfile1 and audfile2

           # cd ./secure/etc
          # rm –rf audfile1
          # rm –rf audfile2


Step -6 Reboot the server and boot in normal mode.

Now you should be able to login the root through console.

No comments:

Post a Comment