Categories
Knowledge Support Support Categories Products exacqVision Integrations

Troubleshooting a Corrupt iSCSI Configuration

An iSCSI configuration could be corrupt if the following are true:

  1. Linux-based exacqVision Server
  2. iSCSI used as extended storage
  3. Extended Storage portal status displayed in exacqVision Client as anything other than OK
  4. Server logs contain the following messages:

    8/21/2014 1:48:12 PM ArchivePI Warning Errors from /usr/local/exacq/server/scripts/iscsiprep.py addportal -portaladdr 10.16.1.106 -portalport 3260
    8/21/2014 1:48:12 PM ArchivePI Warning Error: while running command iscsiadm -m discovery -t sendtargets -p 10.16.1.106:3260 -o new. Exit code=255
    8/21/2014 1:48:12 PM ArchivePI Warning iscsiadm: Cannot resolve host . getaddrinfo error: [Name or service not known]
    8/21/2014 1:48:12 PM ArchivePI Warning iscsiadm: cannot resolve host name
    8/21/2014 1:48:12 PM ArchivePI Warning iscsiadm: Could not perform SendTargets disco

Perform the following steps to resolve the possible corruption:

  1. In exacqVision Client, delete the affected portal from the Extended Storage tab on the Storage page.
  2. Open Terminal.
  3. Execute command sudo su.
  4. Execute command cd /etc/iscsi/send_targets.
  5. Execute command ls -l
  6. Note the directories listed from the ls command and the portal’s IP address in the name of a directory (such as 10.16.1.106,3260).
  7. Execute command cd 10.16.1.106,3260 (using the address from the previous step).
  8. Execute command ls -l.
  9. Open the file st_config for editing. It should look like this (using the portal’s IP address and port as appropriate):

    # BEGIN RECORD 2.0-871
    discovery.startup = manual
    discovery.type = sendtargets
    discovery.sendtargets.address = 10.16.1.106
    discovery.sendtargets.port = 3260
    discovery.sendtargets.auth.authmethod = None
    discovery.sendtargets.timeo.login_timeout = 15
    discovery.sendtargets.reopen_max = 5
    discovery.sendtargets.timeo.auth_timeout = 45
    discovery.sendtargets.timeo.active_timeout = 30
    discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
    # END RECORD
  10. Save changes to the st_config file.
  11. Execute command cd ~
  12. Execute command iscsiadm -m discovery -p 10.16.1.106 -o delete (use the portal’s IP address; this command deletes the portal from the iscsiadm configuration database).
  13. Execute command iscsiadm -m discovery (the affected portal should NOT be included in the output).
  14. In exacqVision Client, re-create the Extended Storage configuration for the portal. It should connect with no problem and report a status of OK.