[Veritas-bu] Downed Drives
2004-12-03 13:06:39
How about:
#!/bin/ksh
DOWNDRIVES=`/usr/openv/volmgr/bin/vmoprcmd | grep DOWN | awk '{print $1}'`
if [ "$DOWNDRIVES" != "" ] ; then
/usr/openv/volmgr/bin/vmoprcmd \
| mailx -s "Down drives found: $DOWNDRIVES" root
for each in $DOWNDRIVES
do
/usr/openv/volmgr/bin/vmoprcmd -up $each
done
fi
Schedule as you please with cron.
- Bluejay Adametz
If we all worked on the assumption that what is accepted as true is really
true, there would be little hope of advance - Orville Wright (1871-1948)
-----Original Message-----
From: Jennifer Hooper [mailto:jennifer.hooper AT peregrine DOT com]
Sent: Friday, December 03, 2004 12:41
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] Downed Drives
Hi Guys -
We're still running Netbackup 5.0, and we are having the dreaded
DOWN-TLD problem when a job runs and can't connect to a server or fails. We
have to live with it for just a little while longer, so I'm looking to write
a script that can check the status of the drive, and issue an UP Drive
command to bring them back up every 1/2 hour or so. Does anyone have any
idea where to start to look for info on how to do this?
Thanks,
Jennifer
Peregrine Systems, Inc.
Sr. Network Engineer
mailto:jennifer.hooper AT peregrine DOT com
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|