diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ab45dcca..f1d27d1c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -879,6 +879,21 @@ MAINTENANCE_MODE(){ } +ESXI_ISCSI_STORAGE_RESCAN(){ + + [ "${1}" != "now" ] && sleep 30s + + for NIP in "${ESXIHOSTS[@]}"; do + if [ $(CHECK_HOST ${NIP}) == true ]; then + ssh root@${NIP} esxcli storage core adapter rescan --all & + ssh root@${NIP} vmkfstools -V & + fi + done + + exit 0 + +} + SETUPSSH(){ echo -e "\n${idsST[Bold]}${idsCL[LightCyan]}Beginning SSH verifiication, you may get prompted for crednetials along the way\n" for NTYPE in "${NM_NODE_TYPES[@]}"; do