Configuring iSCSI in a HA deployment

To use an iSCSI device in an HA environment, you must configure the primary and secondary HA hosts to use the same iSCSI external storage device. Only iSCSI single path is supported for the HA deployment.

About this task

Ensure that you use a different initiatorname on the primary and secondary HA hosts. Your iSCSI device must be configured to enable each initiatorname to access the same volume on the iSCSI device.

Important: Configure iSCSI for your secondary HA host before you create your HA cluster.

Procedure

  1. Use SSH to log in to the secondary HA host as the root user.
  2. To configure your HA secondary host to identify the iSCSI device volume, add the iSCSI qualified name for your host to the /etc/iscsi/initiatorname.iscsi file.
    Initiatorname=iqn.<yyyy-mm>.{reversed domain name}:<hostname>
    Important: The initiatorname for your secondary HA host must be different than the initiatorname for your primary HA host.
    Example: InitiatorName=iqn.2008-11.com.qradar:pl14
  3. Restart the iSCSI service to open a session to the server by typing the following command:
    systemctl restart iscsi
  4. To detect the volume on the iSCSI server, type the following command:
    iscsiadm -m discovery --type sendtargets --portal <IP_address>:[<port>]
    Note: The port is optional.
  5. Verify the login to your iSCSI server by typing the following command:
    iscsiadm -m node --targetname <initiator_name_from_the_previous_step> --portal <IP_address>: [<port>] --login
  6. To find the iSCSI device volume name, type the following command:
    dmesg | grep "Attached SCSI disk"
  7. Configure the mount point for the secondary HA host.
    1. If you are moving the /store file system, unmount the file systems by typing the following commands:
      umount /store
    2. Identify the UUID of the iSCSI device partition by typing the following command:
      blkid /dev/<partition>
    3. To move the /store file system, edit the file settings in the /etc/fstab file to be the same as the mount points that might be listed in the /etc/fstab file on the HA primary host:
      • /store
      • For the /store partition, use the same UUID value that is used for the /store partition on the primary.
    4. If you are moving the /store/ariel file system, edit the settings in the /etc/fstab file to be the same as the mount point that is listed in the /etc/fstab file on the HA primary host for /store/ariel.
  8. Configure the secondary HA host to automatically mount the iSCSI volume.
    1. Add the iSCSI script to the startup information by typing the following commands:
      systemctl enable iscsi
    2. Enable the iscsi-mount service by typing the following command:
      systemctl enable iscsi-mount
    3. If you are moving the /store file system, rename the local copy of /store by typing the following commands:
      lvchange -an /dev/storerhel/store 2>/dev/null
      lvrename /dev/storerhel/store /dev/storerhel/storeold 2>/dev/null

What to do next

Create an HA cluster. For more information, see IBM QRadar High Availability Guide.

See Verifying iSCSI connections.