Veritas-bu

[Veritas-bu] Drive control via command line

2002-04-17 15:29:33
Subject: [Veritas-bu] Drive control via command line
From: david AT xbpadm-commands DOT com (David A. Chapa)
Date: Wed, 17 Apr 2002 14:29:33 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_006B_01C1E61C.4ADC7840
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I wrote a script to do just that, its called drivewatch.

You can find that and more at my website

http://www.xbpadm-commands.com

Or easier to remember...

http://www.netbackupcentral.com

David

<><><><><><><><><><><><><><><><><><><><>
David A. Chapa
NetBackup Consultant
DataStaff, Inc.
http://www.consulting.datastaff.com
847 413 1144
---------------------------------------
NBU-LSERV AT datastaff DOT com - Adv. Scripting
http://www.xbpadm-commands.com

  -----Original Message-----
  From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of David 
Markham
  Sent: Monday, April 15, 2002 3:58 AM
  To: veritas-bu AT mailman.eng.auburn DOT edu
  Subject: [Veritas-bu] Drive control via command line


  I am running Netbackup 3.2GA on Solaris.

  I have done various things from the command line, but currently have a
problem I am not sure how to rectify.

  Most morning when I check the backup with xnb running on X windows, I
notice under the Device Management tab that 1 or more drives are down.
  I use an Sun L1000 storage unit by the way. Some times backups are hung
due to this and are just sitting there.
  I just action a drive control command on each drive that is down by
selecting the drive, hitting drives, drive control and selecting UP (AVR
CONTROL).

  Now I need to try and monitor this by a script which will run, but I need
it to automatically change the drive to UP if it is noticed as being in a
down state.
  I have found /usr/openv/volmgr/bin/vmoprcmd which I can manipulate to find
the drive status, but I do not now how to do this "drive control" from
command line so can anyone help please please.

  If so please let me know

  Thank you

  Dave

------=_NextPart_000_006B_01C1E61C.4ADC7840
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
wrote a script to do just that, its called =
drivewatch.</FONT></SPAN></DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =
size=3D2>You=20
can find that and more at my website</FONT></SPAN></DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =
size=3D2><A=20
href=3D"http://www.xbpadm-commands.com";>http://www.xbpadm-commands.com</A=
></FONT></SPAN></DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =
size=3D2>Or=20
easier to remember...</FONT></SPAN></DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =
size=3D2><A=20
href=3D"http://www.netbackupcentral.com";>http://www.netbackupcentral.com<=
/A></FONT></SPAN></DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D483172819-17042002><FONT face=3DArial color=3D#0000ff =

size=3D2>David</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<P><FONT=20
size=3D2>&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;=
&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&=
lt;&gt;&lt;&gt;&lt;&gt;<BR>David=20
A. Chapa<BR>NetBackup Consultant<BR>DataStaff, Inc.<BR><A=20
href=3D"http://www.consulting.datastaff.com/"=20
target=3D_blank>http://www.consulting.datastaff.com</A><BR>847 413=20
1144<BR>---------------------------------------<BR>NBU-LSERV AT datastaff DOT 
co=
m -=20
Adv. Scripting<BR><A href=3D"http://www.xbpadm-commands.com/"=20
target=3D_blank>http://www.xbpadm-commands.com</A></FONT> </P>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu=20
  [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]<B>On Behalf Of =
</B>David=20
  Markham<BR><B>Sent:</B> Monday, April 15, 2002 3:58 AM<BR><B>To:</B>=20
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] =
Drive=20
  control via command line<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>I am =
running=20
  Netbackup 3.2GA on Solaris.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>I =
have done=20
  various things from the command line, but currently have a problem I =
am not=20
  sure how to rectify.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>Most =
morning when=20
  I check the backup with xnb running on X windows, I notice under the =
Device=20
  Management tab that 1 or more drives are down.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>I =
use an Sun L1000=20
  storage unit by the way. Some times backups are hung due to this and =
are just=20
  sitting there.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>I =
just action a=20
  drive control command on each drive that is down by selecting the =
drive,=20
  hitting drives, drive control and selecting UP (AVR=20
  CONTROL).</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>Now =
I need to try=20
  and monitor this by a script which will run, but I need it to =
automatically=20
  change the drive to UP if it is noticed as being in a down=20
  state.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>I =
have found=20
  /usr/openv/volmgr/bin/vmoprcmd which I can manipulate to find the =
drive=20
  status, but I do not now how to do this "drive control" from command =
line so=20
  can anyone help please please.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial size=3D2>If =
so please let=20
  me know</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial =
size=3D2>Thank=20
  you</FONT></SPAN></DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D582454608-15042002><FONT face=3DArial=20
  size=3D2>Dave</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_006B_01C1E61C.4ADC7840--


<Prev in Thread] Current Thread [Next in Thread>