What sets variable HACMP_HCI_ROOT?

Clovertech Forums Cloverleaf What sets variable HACMP_HCI_ROOT?

  • Creator
    Topic
  • #119489
    Michael Brande
    Participant

      Looking around to see what sets this variable:

      HACMP_HCI_ROOT

      Is this supposed to be available on the root account?

    Viewing 0 reply threads
    • Author
      Replies
      • #119490
        Jay Hammond
        Participant

          I found the following in the hci.profile file located (on AIX) at/home/hci/.cluster:

          export HACMP_HCI_ROOT=$QUOVADX_INSTALL_DIR/integrator

          The scripts in this folder are used to stop/start Cloverleaf on AIX failover.  They are owned by hci.

          We’re currently on Cloverleaf 20.1, which came with some newer failover scripts (in the auto_start folder) that don’t have HACMP_HCI_ROOT, but I haven’t migrated to those scripts yet.

          • #119492
            Michael Brande
            Participant

              Very cool! In our Environment it is the root account that is calling these scripts.

              Also I see that many of these scripts appear to run as root and then substitute user (su) to the HCI account.

              su – hci – c “setroot $HACMP_HCI_ROOT;hciss -k h”

              So the /home/hci/.cluster/hci.profile is not called.

              I am looking at putting some of these into the root .profile.

              I wonder, how… would anyone run these as hci and then su to hci?

            • #119520
              Michael Brande
              Participant

                Ok I get it now. This does run under root.

          Viewing 0 reply threads
          • You must be logged in to reply to this topic.