An iSCSI configuration could be corrupt if the following are true:
- Linux-based exacqVision Server
- iSCSI used as extended storage
- Extended Storage portal status displayed in exacqVision Client as anything other than OK
- 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:
- In exacqVision Client, delete the affected portal from the Extended Storage tab on the Storage page.
- Open Terminal.
- Execute command sudo su.
- Execute command cd /etc/iscsi/send_targets.
- Execute command ls -l
- 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).
- Execute command cd 10.16.1.106,3260 (using the address from the previous step).
- Execute command ls -l.
- 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 - Save changes to the st_config file.
- Execute command cd ~
- 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).
- Execute command iscsiadm -m discovery (the affected portal should NOT be included in the output).
- In exacqVision Client, re-create the Extended Storage configuration for the portal. It should connect with no problem and report a status of OK.