AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Operatingsystems
#Servers
#AIX
#Power

 View Only
  • 1.  locked out of hmc

    Posted Tue August 04, 2009 01:29 PM

    Originally posted by: SystemAdmin


    Hello, I have an AIX 5.3 instance on an HMC server that I am unable to login through SSH or through a terminal window.

    The errors I am seeing on the terminal on boot up are:
    0509-036 Cannot load program /usr/sbin/sshd because of the following errors:
    0509-150 Dependent module libz.a(libz.so.1) could not be loaded
    0509-022 Cannot load module libz.a(libz.so.1)
    0509-026 System error: A file or directory in the path name does not exist.

    any ideas?
    #AIX-Forum


  • 2.  Re: locked out of hmc

    Posted Tue August 04, 2009 06:07 PM
      |   view attached

    Originally posted by: SystemAdmin


    More info.... When logging in with single user mode I get a "Cannot set process environment" error.

    thanks for any info.
    #AIX-Forum


  • 3.  Re: locked out of hmc

    Posted Wed August 05, 2009 06:41 AM

    Originally posted by: tony.evans


    Let's get some terminology straight before we go on. You're not locked out of the hmc, you've got an AIX instance you can't connect to, either remotely via ssh (did you try telnet?) or using the virtual console provided by the hmc?

    The errors your seeing can be caused by permissions being changed on the host preventing necessary files being accessible.

    The first question I would ask if I was you, is when did this start, and the second question is, what change was must just prior to when it started.

    It could be many things (disk corruption, permission issues, someone's attacked your server, etc.)

    Can you boot into maintenance mode using a CD or NIM?
    #AIX-Forum


  • 4.  Re: locked out of hmc

    Posted Thu August 06, 2009 02:47 PM

    Originally posted by: SystemAdmin


    Thanks Tony.

    I was able to get in via maintenance mode using a CD. What I found was that bash (root's shell) was on a mount that wasn't being mounted at startup.

    Neither /opt (or bash) are new to this machine.

    /opt:
    dev = /dev/hd10opt
    vfs = jfs2
    log = /dev/hd8
    mount = true
    check = true
    vol = /opt
    free = false
    In maintenance mode I changed the shell to ksh. fsck on /opt went through without any errors.

    When logged into the system I can do a mount -a and /opt gets mounted correctly.

    Any ideas on why /opt isn't being mounted at startup?

    Thanks again,
    Adam
    #AIX-Forum


  • 5.  Re: locked out of hmc

    Posted Fri August 07, 2009 03:38 AM

    Originally posted by: tony.evans


    Anything in bootlog? (alog -f /var/adm/ras/bootlog -o)
    #AIX-Forum


  • 6.  Re: locked out of hmc

    Posted Fri August 07, 2009 11:33 AM
      |   view attached

    Originally posted by: SystemAdmin


    I don't see anything, the below is all that is said about hd10opt

    ...
    Saving Base Customize Data to boot disk
    Starting the sync daemon
    Starting the error daemon
    System initialization completed.
    Starting Multi-user Initialization
    Performing auto-varyon of Volume Groups
    Activating all paging spaces
    0517-075 swapon: Paging device /dev/hd6 is already active.

    The current volume is: /dev/hd1
    Primary superblock is valid.

    The current volume is: /dev/hd10opt
    Primary superblock is valid.
    Performing all automatic mounts
    Multi-user initialization completed

    Attached is the complete alog output.

    What I will probably end up doing a complete reinstall unless you are able to see the problem from the log file.

    Thanks again for the help.
    #AIX-Forum

    Attachment(s)