Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1033

bigdataHA invoking HARestore: Check for Volume before mounting

    XMLWordPrintable

    Details

      Description

      This block in src/resources/etc/init.d/bigdataHA that invokes the HARestore script needs a strong test condition:

      if [ ! -d "$DATA_DIR/lost+found" ]; then
      mount /dev/vg/lv_bigdata $DATA_DIR
      action $"date : hostname : restoring bigdata journal file: " sudo -u $BD_USER -g $BD_GROUP bin/HARestore
      fi

      At issue is using init.d/bigdataHA in deployments that are not on AWS or do not use a separate volume to store the bigdata journal. A better test would be something like:

      if [ (-f /dev/vg/lv_bigdata) && ( ! -d "$DATA_DIR/lost+found" ) ]

      Presently a harmless error is echoed by the script when the lv_bigdata logical volume is not found.

        Attachments

          Activity

            People

            Assignee:
            beebs Brad Bebee
            Reporter:
            danielmekonnen danielmekonnen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: