Home Forums HDFS How to set HMC to Auto start at boot

This topic contains 1 reply, has 1 voice, and was last updated by  Sasha J 2 years, 1 month ago.

  • Creator
    Topic
  • #7538

    Sasha J
    Moderator

    steps to enable HMC to support chkconfig

Viewing 1 replies (of 1 total)

The topic ‘How to set HMC to Auto start at boot’ is closed to new replies.

  • Author
    Replies
  • #7539

    Sasha J
    Moderator

    As Root:

    1. HMC

    > edit /etc/init.d/hmc
    > add IMMEDIATELY AFTER #!/bin/sh

    # chkconfig: 35 95 25
    # description: starts up the hmc service
    # processname: hmc

    > change the checkLicense() function to match:

    checkLicense() {
    touch /var/run/hmc/license;
    }

    > save and exit
    > add and enable hmc with chkconfig

    chkconfig –add hmc
    chkconfig hmc on

    2. HMC AGENT

    > edit the /etc/init.d/hmc-agent
    > change the run levels for hmc-agent

    # chkconfig: 35 95 25

    > add and enable hmc with chkconfig

    chkconfig –add hmc-agent
    chkconfig hmc-agent on

    3. SAFE REBOOT

    > if your cluster is running – use the management console to shutdown all services
    > when all services are down, reboot

    4. VERIFY

    > when the host is back up, log into the console and start all the services
    > validate all services start with no errors

    if both services did not start, then manually start the services:

    service start hmc
    service start hmc-agent

    Collapse
Viewing 1 replies (of 1 total)