mirror of https://github.com/apache/cloudstack.git
update to multipath scripts and code/error logging
This commit is contained in:
parent
8e9316a5e5
commit
f962978466
|
|
@ -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.");
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue