update to multipath scripts and code/error logging

This commit is contained in:
Rene Glover 2025-11-14 17:36:43 +00:00
parent 8e9316a5e5
commit f962978466
4 changed files with 4 additions and 3 deletions

View File

@ -178,7 +178,8 @@ public abstract class MultipathSCSIAdapterBase implements StorageAdaptor {
// validate we have a connection, if not we need to connect first.
if (!isConnected(address.getPath())) {
LOGGER.debug("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used.");
LOGGER.warn("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used.");
return null;
} else {
LOGGER.debug("Physical disk " + address.getPath() + " is connected, proceeding to get its size.");

View File

@ -29,7 +29,7 @@ WWID=${2:?"WWID required"}
WWID=$(echo $WWID | tr '[:upper:]' '[:lower:]')
START_CONNECT=$(dirname $0)/startConnect.sh
START_CONNECT=$(dirname $0)/startConnectVolume.sh
if [ -x "${START_CONNECT}" ]; then
echo "$(date): Starting connect process for ${WWID} on lun ${LUN}"
${START_CONNECT} ${LUN} ${WWID}
@ -49,7 +49,7 @@ while [ ! -e /dev/mapper/3${WWID} ]; do
sleep 1
done
FINISH_CONNECT=$(dirname $0)/finishConnect.sh
FINISH_CONNECT=$(dirname $0)/finishConnectVolume.sh
if [ -x "${FINISH_CONNECT}" ]; then
echo "$(date): Starting post-connect validation for ${WWID} on lun ${LUN}"
${FINISH_CONNECT} ${LUN} ${WWID}

0
scripts/storage/multipath/finishConnectVolume.sh Normal file → Executable file
View File

0
scripts/storage/multipath/startConnectVolume.sh Normal file → Executable file
View File