increase ioc/mpt timeouts and exit on timeout
This commit is contained in:
parent
13e2d5f280
commit
abae3653a3
|
@ -35,7 +35,7 @@ function wait_for_ioc {
|
||||||
echo -n "Waiting for IOC to become ready..."
|
echo -n "Waiting for IOC to become ready..."
|
||||||
while ! lsirec/lsirec ${LSIREC_ADDR} info | grep -E "IOC is (OPERATIONAL|READY)"
|
while ! lsirec/lsirec ${LSIREC_ADDR} info | grep -E "IOC is (OPERATIONAL|READY)"
|
||||||
do
|
do
|
||||||
(( c > 20 )) && echo "timed out" && break
|
(( c > 180 )) && echo "timed out" && echo && echo "Operation incomplete, exiting early. Please check the state of the device." && exit 1
|
||||||
((c++))
|
((c++))
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -48,7 +48,7 @@ function wait_for_mpt {
|
||||||
echo -n "Waiting for MPT..."
|
echo -n "Waiting for MPT..."
|
||||||
while ! lsiutil/lsiutil -e -p1 -a 0 | grep -E "LSI.+SAS2[0-9]{3}"
|
while ! lsiutil/lsiutil -e -p1 -a 0 | grep -E "LSI.+SAS2[0-9]{3}"
|
||||||
do
|
do
|
||||||
(( c > 20 )) && echo "timed out" && break
|
(( c > 180 )) && echo "timed out" && echo "Operation incomplete, exiting early. Please check the state of the device." && exit 1
|
||||||
((c++))
|
((c++))
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -277,4 +277,4 @@ echo
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "All done. Copy /tmp/${SAS_ADDRESS}/ to persistent media and reboot."
|
echo "All done. Copy /tmp/${SAS_ADDRESS}/ to persistent media and reboot."
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue