monitor mysql ndbcluster startup

on one of the ndb_mgmd nodes:

# while true; do j=`ndb_mgm -e show | grep starting |wc -l`; if [ $j -eq 0 ]; then echo "db done starting (or failed completely)" | mail 8005551212@vtext.com; break; fi; sleep 5m; done;
share:

Leave a Reply

Your email address will not be published. Required fields are marked *