From: Christopher McNabb (cmcnabb@vt.edu)
Date: Thu Dec 08 2005 - 07:48:17 EST
I recently had a problem on a bunch of servers where a communications
glitch with our SAN left a whole slew of Veritas plexes stuck in a
"RECOVER" state. I wrote the below script to batch force the plexes
into a "STALE" and then a "CLEAN" state. Hopefully others here will be
able to use it as well. The script must be run as root.
------------------------------CUT--------------------------------------
for i in `vxprint | grep "Disk group:" | awk '{ print $3 }'` ; do
for j in `vxprint -g $i | grep "RECOVER" | awk '{ print $2 }'` ; do
vxmend -g $i fix stale $j
vxmend -g $i fix clean $j
done
done
------------------------------CUT--------------------------------------
-- Christopher L McNabb Tel: 540 231 7554 Operating Systems Analyst Email: cmcnabb@vt.edu Virginia Tech ICBM: 37.205622N 80.414595W GMRS: WPSR255 ARS: N2UX Grid Sq: EM97SD [demime 1.01b removed an attachment of type application/pgp-signature which had a name of signature.asc] _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:37:35 EDT