Veritas-bu

[Veritas-bu] RE: Netbackup tpconfig drive add failures

2005-02-18 12:22:12
Subject: [Veritas-bu] RE: Netbackup tpconfig drive add failures
From: jlightner AT water DOT com (Jeff C. Lightner)
Date: Fri, 18 Feb 2005 12:22:12 -0500
This is a multi-part message in MIME format.

------_=_NextPart_001_01C515DE.622D4E9E
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

All,

=20

This one has driven me nuts.   I don't see it in the archives.

=20

BASIC QUESTION: =20

=20

How can one reliably add Netbackup drives to media servers in Shared
Storage Option (SSO - SAN) configuration via command line?

=20

I already know about tpconfig and tpautoconf  - issue is with tpconfig -
don't want to use tpautoconf.  I have added the robot prior to
attempting to add the drives.  Command lines attempted using tpconfig
are at the end.=20

=20

=20

DETAILS:=20

=20

We are installing several new media servers on HP-UX 11.11 boxes for
Netbackup 4.5 Data Feature Pack 6.  =20

=20

When I attempt to add drives using the tpconfig command line (that is to
say non-interactively) I am getting:

=20

Cannot update drive in device configuration: Drive name is already in
use by another drive.

=20

The drive however is NOT already on the host in question though of
course it does exist on other media servers.  (We are adding it as an
SSO drive.)

=20

When I add the drive using tpconfig interactively it adds the drive
correctly.  =20

=20

What is driving me nuts is that the command line is working 90% of the
time and balking on occasion for no reason I or my co-worker can
discover.  We are adding 20 drives to each of 18 servers so adding the
drives interactively is a major pain.  =20

=20

Initially on adding to one new server the command line was successful
for 12 out of 20 drives.  My co-worker thought this might be a licensing
issue but we have since verified we have all licenses.  =20

=20

Due to an upgrade tpautoconf had been run on the master server some time
back there was a sequence mismatch between drive index numbers and drive
numbers.  (It is for this reason and because tpautoconf uses long names
rather than short names for device paths that we don't want to run
tpautoconf.)

=20

We suspected there could be an issue with tape drive serial numbers
mismatch between the hosts due to this and did find some evidence for
it.  Because of this we decided to redo the master (and robotic control)
server's drive mapping.   This was done by hand on the master/robotic
control host.   Once this was done I ran tpconfig -delete to delete all
drives from all other hosts.=20

=20

After the deletions were done I ran a script that gets the hardware path
of the drives from ioscans on the master and pairs that with the
tpconfig -d info for same drive on master to generate tpconfig command
line to add the drives to the host on which the script is being run.
This ran successfully for 13 out of 15 hosts attempted the first day.
My coworker added a couple of drives interactively then was able to run
the command line add for the remaining drives on the 14th host.   A day
later the command line which had not worked on the 15th host the
previous evening ran just fine!  =20

=20

Yesterday I was adding the remaining two hosts and the command line
worked fine for one but not the other.   I decided to wait until this
morning to see if it would work but it didn't.

=20

The above leads me to the conclusion that there is something about the
state of the Master server or one of the other hosts that is variable
which prevents addition of the drive at some points but allows it at
others.   However trying to tie this to actual drive activity (i.e.
backup or restore in progress) or ability to communicate with the other
media servers shows neither of these are the issue.

=20

On speaking with Veritas support they said tpconfig command line is not
supported which I don't accept.  It is true that tpautoconf has several
command line options that they don't detail in the man page because they
are not supported but this is not true of tpconfig.  Its man page goes
into great detail about how to use the command line.  Finally they
suggested attempting to add using the Java GUI with debugging on to
capture its command line.  This was done and minor variations in the
command line they used were found.   However on attempting to use the
command line they had used I STILL got the error so the issue isn't the
options I used.  (The fact that those options worked on 15 hosts proves
that anyway.)

=20

Command line used:

tpconfig -add -drive -type hcart -path /dev/rmt/6mnb -asciiname Ultrium1
-index 0 -shared yes -drstatus UP -robot 2 -robtype tld -DRIVE 1

=20

Alternate used based on debug capture:

  /usr/openv/volmgr/bin/tpconfig -add -drive -asciiname Ultrium1 -type
hcart -multihost yes -robot 2 -robtype tld -robdrnum 1 -altname
/dev/rmt/6mnb -noverbose

=20

TIA and I will summarize.

=20

P.S.  I originally asked this on the Dutchworks HP-UX list.  My
apologies if you're on both and are getting this the second time.  I
hadn't realized this list existed until it was pointed out by someone on
the other list.

=20

Jeffrey C. Lightner

Unix Systems Administrator

DS Waters of North America

678-486-3516

=20


------_=_NextPart_001_01C515DE.622D4E9E
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>All,</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>This one has driven me nuts.&nbsp;&nbsp; I =
don&#8217;t see
it in the archives.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>BASIC QUESTION:&nbsp; <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>How can one reliably add Netbackup drives to media =
servers
in Shared Storage Option (SSO &#8211; SAN) configuration via command =
line?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I already know about tpconfig and tpautoconf&nbsp; - =
issue
is with tpconfig &#8211; don&#8217;t want to use tpautoconf.&nbsp; I =
have added
the robot prior to attempting to add the drives.&nbsp; Command lines =
attempted
using tpconfig are at the end. <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>DETAILS: <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We are installing several new media servers on HP-UX =
11.11
boxes for Netbackup 4.5 Data Feature Pack 6.&nbsp;&nbsp; =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I attempt to add drives using the tpconfig =
command line
(that is to say non-interactively) I am =
getting:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-indent:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'text-indent:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Cannot update drive in =
device
configuration: Drive name is already in use by another =
drive.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The drive however is NOT already on the host in =
question
though of course it does exist on other media servers.&nbsp; (We are =
adding it
as an SSO drive.)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I add the drive using tpconfig interactively it =
adds
the drive correctly.&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>What is driving me nuts is that the command line is =
working
90% of the time and balking on occasion for no reason I or my co-worker =
can
discover.&nbsp; We are adding 20 drives to each of 18 servers so adding =
the
drives interactively is a major pain.&nbsp;&nbsp; =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Initially on adding to one new server the command =
line was
successful for 12 out of 20 drives.&nbsp; My co-worker thought this =
might be a
licensing issue but we have since verified we have all =
licenses.&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Due to an upgrade tpautoconf had been run on the =
master
server some time back there was a sequence mismatch between drive index =
numbers
and drive numbers.&nbsp; (It is for this reason and because tpautoconf =
uses
long names rather than short names for device paths that we don&#8217;t =
want to
run tpautoconf.)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We suspected there could be an issue with tape drive =
serial
numbers mismatch between the hosts due to this and did find some =
evidence for
it.&nbsp; Because of this we decided to redo the master (and robotic =
control)
server&#8217;s drive mapping.&nbsp;&nbsp; This was done by hand on the
master/robotic control host.&nbsp;&nbsp; Once this was done I ran =
tpconfig
&#8211;delete to delete all drives from all other hosts. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>After the deletions were done I ran a script that =
gets the
hardware path of the drives from ioscans on the master and pairs that =
with the
tpconfig &#8211;d info for same drive on master to generate tpconfig =
command
line to add the drives to the host on which the script is being =
run.&nbsp; This
ran successfully for 13 out of 15 hosts attempted the first =
day.&nbsp;&nbsp; My
coworker added a couple of drives interactively then was able to run the
command line add for the remaining drives on the 14<sup>th</sup>
host.&nbsp;&nbsp; A day later the command line which had not worked on =
the 15<sup>th</sup>
host the previous evening ran just fine!&nbsp;&nbsp; =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Yesterday I was adding the remaining two hosts and =
the
command line worked fine for one but not the other.&nbsp;&nbsp; I =
decided to
wait until this morning to see if it would work but it =
didn&#8217;t.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The above leads me to the conclusion that there is =
something
about the state of the Master server or one of the other hosts that is =
variable
which prevents addition of the drive at some points but allows it at
others.&nbsp;&nbsp; However trying to tie this to actual drive activity =
(i.e.
backup or restore in progress) or ability to communicate with the other =
media
servers shows neither of these are the =
issue.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>On speaking with Veritas support they said tpconfig =
command
line is not supported which I don&#8217;t accept.&nbsp; It is true that
tpautoconf has several command line options that they don&#8217;t detail =
in the
man page because they are not supported but this is not true of =
tpconfig.&nbsp;
Its man page goes into great detail about how to use the command =
line.&nbsp;
Finally they suggested attempting to add using the Java GUI with =
debugging on
to capture its command line.&nbsp; This was done and minor variations in =
the
command line they used were found.&nbsp;&nbsp; However on attempting to =
use the
command line they had used I STILL got the error so the issue =
isn&#8217;t the
options I used.&nbsp; (The fact that those options worked on 15 hosts =
proves
that anyway.)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Command line used:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>tpconfig -add -drive -type hcart -path /dev/rmt/6mnb
-asciiname Ultrium1 -index 0 -shared yes -drstatus UP -robot 2 -robtype =
tld
-DRIVE 1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Alternate used based on debug =
capture:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; /usr/openv/volmgr/bin/tpconfig -add -drive =
-asciiname
Ultrium1 -type hcart -multihost yes -robot 2 -robtype tld -robdrnum 1 =
-altname
/dev/rmt/6mnb -noverbose<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>TIA and I will =
summarize.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>P.S.&nbsp; I originally asked this =
on the
Dutchworks HP-UX list.&nbsp; My apologies if you&#8217;re on both and =
are
getting this the second time.&nbsp; I hadn&#8217;t realized this list =
existed
until it was pointed out by someone on the other =
list.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Jeffrey C. Lightner<o:p></o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Unix Systems Administrator<o:p></o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>DS Waters of <st1:place w:st=3D"on">North =
America</st1:place><o:p></o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>678-486-3516<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C515DE.622D4E9E--

<Prev in Thread] Current Thread [Next in Thread>
  • [Veritas-bu] RE: Netbackup tpconfig drive add failures, Jeff C. Lightner <=