6 Replies Latest reply: Oct 29, 2013 4:04 PM by Dude! RSS

    Oracle Enterprise Linux hangs on reboot at xinetd

    user5381503

      Hello, I rebooted my machine from within Linux.  The machine starts up normally.  Just stops.  Black screen.  Reboot with ctrl-alt-delete.  Hit esc.  I have a kdump failed but it continues.  It finally hangs at Starting xinetd [OK].  If I restart with cad, I can see where it stops the various services and restarts.  I tried the "Oracle Linux Server Red Hat Compatible Kernel" and got the same things (no kdump failed, ok this time).  Unbreakable and Compatible stop.

       

      It just stops.  I'm not sure how to proceed to fix it.  Does anyone know how to begin fixing this?  I am using this box to learn and didn't expect this as this was a fresh install.  This is a good time for me to learn .

       

      Oracle 11gR2 is installed as well.  No RAC.  No cluster.

       

      Thanks.

       

      edit:  I should add that I rebooted because my system was going very slow.  "top" indicated "metacity" and Firefox were eating the CPU.  I sudo killed the metacity process.  Rebooted.

        • 1. Re: Oracle Enterprise Linux hangs on reboot at xinetd
          Dude!

          I suggest to press any key to enter the boot screen when you restart your system and remove the words "rhgb quiet" from the kernel parameter. This way you will receive more info during system startup that may explain where the system fails.

          • 2. Re: Oracle Enterprise Linux hangs on reboot at xinetd
            user5381503

            At the moment I am in the rescue dvd.  I will try that.

            • 3. Re: Oracle Enterprise Linux hangs on reboot at xinetd
              Dude!

              Also let us know what OS version and CPU architecture you are running, e.g. OL 6.4 x64.

              • 4. Re: Oracle Enterprise Linux hangs on reboot at xinetd
                user5381503

                OEL 6.4 and x64.  I'm not sure where to look in the log files.  Still looking.  I switched the boot mode to 3.  Hangs.

                 

                edit:  It also keeps doing SELinux target policy relabel when I reboot.

                • 5. Re: Oracle Enterprise Linux hangs on reboot at xinetd
                  user5381503

                  I changed log xinetd.conf to log to a different location.  For whatever reason that allowed me to get a message onscreen just after xinetd said OK.  It had a mysqld "problem."  It didn't say what it was.  Just this,

                   

                  mysqld_safe logging to /var/log/mysqld.log

                  starting mysqld daemon with databases from /var/lib/mysql

                   

                  I booted into the Oracle Linux Rescue disk, and at /etc/init.d and,

                   

                  mv mysqld mysqld.disabled

                   

                  was able to get to the desktop after that.  BTW, it never did log to my new location /var/log/somelogfile

                   

                  However, when I start mysqld manually with mysqld.disabled start it works.  No errors.  I don't know.  I can't find anything useful in any log, but there are tons of them, so I'm sure I'm looking in the wrong place.  It only gets hung (that I can tell) when xinetd tries to start mysqld.  I can reproduce this problem by doing the reverse above..

                   

                  I think the SELinux thing was because I was editing the files with the rescue cd.  When I stopped doing that I didn't get the problem anymore.

                  • 6. Re: Oracle Enterprise Linux hangs on reboot at xinetd
                    Dude!

                    You can ask me about Oracle database, but I'm afraid I do not have the slightest clue about anything to do with mysql. FWIW, SELinux can be the reason for strange issues. Anyway, the system should not be doing a SELinux policy relabel on restart. What did you do? Did you  restore the system to a new drive. Did you rename or change the root user?

                     

                    I suggest to see if you have a /.autorelabel file, and verify its owned by root. You can also try to disable SELinux or set it to permissive in /etc/selinux/config and reboot the system to see if helps with your mysql startup. Perhaps you have to restore the SELinux security context of your my.cnf file.

                     

                    There are several articles about mysql and SELinux on the web. Perhaps the following is useful - I have no idea, it was just the first to pop up in Google.

                    https://blogs.oracle.com/jsmyth/entry/selinux_and_mysql