Networker

Re: [Networker] jbverify error

2006-01-11 12:56:02
Subject: Re: [Networker] jbverify error
From: Will Parsons <w.parsons AT LEEDS.AC DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 11 Jan 2006 17:48:09 +0000
Hi Balki,
I was given a tip a couple of years ago which has proved fantastic for dealing with situations like this.

You can call the Tape Devices at the Solaris level anything you like (they're just links down into the /devices tree). So, our Networker server is configured with devices called:
/dev/UOL/CMRdrive1
/dev/UOL/CMRdrive2
/dev/UOL/CMRdrive3
/dev/UOL/CMRdrive....

/dev/UOL/HMRdrive1
/dev/UOL/HMRdrive2
/dev/UOL/HMRdrive3
/dev/UOL/HMRdrive....

Where CMR and HMR designate 2 different tape libraries, and "drive1" designates the drive number within the library.

The joy of configuring Networker this way is that WHEN your tape devices change Solaris name (/dev/rmt/2cbn becomes /dev/rmt/20cbn), you can just update some soft links, and not have to touch Networker!
server:ksh:# (11411) ls -l /dev/UOL
total 28
lrwxrwxrwx 1 root other 13 Sep 1 16:01 CMRdrive1 -> /dev/rmt/0cbn lrwxrwxrwx 1 root other 13 Sep 1 16:01 CMRdrive2 -> /dev/rmt/1cbn lrwxrwxrwx 1 root other 13 Sep 1 16:10 CMRdrive3 -> /dev/rmt/2cbn lrwxrwxrwx 1 root other 13 Sep 1 16:10 CMRdrive4 -> /dev/rmt/3cbn lrwxrwxrwx 1 root other 13 Sep 1 16:11 CMRdrive5 -> /dev/rmt/4cbn lrwxrwxrwx 1 root other 13 Sep 1 16:11 CMRdrive6 -> /dev/rmt/5cbn lrwxrwxrwx 1 root other 13 Sep 1 16:11 CMRdrive7 -> /dev/rmt/6cbn lrwxrwxrwx 1 root other 14 Sep 1 16:13 HMRdrive1 -> /dev/rmt/21cbn lrwxrwxrwx 1 root other 14 Sep 1 16:13 HMRdrive2 -> /dev/rmt/22cbn lrwxrwxrwx 1 root other 14 Sep 1 16:14 HMRdrive3 -> /dev/rmt/23cbn lrwxrwxrwx 1 root other 14 Sep 1 16:14 HMRdrive4 -> /dev/rmt/24cbn lrwxrwxrwx 1 root other 14 Sep 1 16:14 HMRdrive5 -> /dev/rmt/25cbn lrwxrwxrwx 1 root other 14 Sep 1 16:14 HMRdrive6 -> /dev/rmt/26cbn lrwxrwxrwx 1 root other 14 Sep 1 16:14 HMRdrive7 -> /dev/rmt/27cbn
server:ksh:# (11412)

This is also useful if you've got access to your tape drives through multiple HBA's, and wish to direct the IO for a specific tape drive over a specific HBA. You just change the link to point to the underlying tape drive on the second HBA.

We've got 3 Solaris servers sharing 14 devices, and this naming scheme is wonderful for un-confusing things.

HTH
Will




Chamkura, Balki wrote:

Thanks to Thierry, Peter and Chirsto for responding.

Actually, as Peter requested, I went and deleted devices from the
jukebox menu. And re-added them in the correct sequence.  Now jbverify
does not report any error.  But, as per Thierry, I did not do correct
thing.  I should have tried rename option.  I will try labeling.

Let me know if I need to take any other precautions.

Thanks,
-Balki

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of Faidherbe, Thierry
Sent: Tuesday, January 10, 2006 3:53 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] jbverify error

Balki,

Once you know the new mapping between drive# and /dev/rmt/...
naming, you have a simple way to correct the jbox resource
without having to recreate the entire lib :

Create a dummy device ( /dev/rmt/toto for sample) and disable the new networker device once created.

Unmount all drives from the lib.

Edit then the jbox resource and start swapping the names :
ex to swap 2cbn and 0cbn devices, look at devices field and replace /dev/rmt/2cbn -> /dev/rmt/toto then Apply
  then /dev/rmt/0cbn -> /dev/rmt/2cbn then Apply
then /dev/rmt/toto -> /dev/rmt/0cbn then Apply keeping in mind line #0 correspond to drive #0, line #1 -> Drive#1, ....
Then delete dummy /dev/rmt/toto device. Doing so, you will not
have to adapt your pool setting. Same way has to be done
if you are using DDS Sharing devices.

HTH,

Th


Kind regards - Bien cordialement - Vriendelijke groeten,

Thierry FAIDHERBE

HP Services - Storage Division
Tru64 Unix and Legato Enterprise Backup Solutions Consultant
********* ********* HEWLETT - PACKARD
*******    h      *******   1 Rue de l'aeronef/Luchtschipstraat
******    h        ******   1140 Bruxelles/Brussel/Brussels
***** hhhh pppp ***** ***** h h p p ***** 100/102 Blv de la Woluwe/Woluwedal
*****  h  h  pppp   *****   1200 Bruxelles/Brussel/Brussels
******      p      ******   BELGIUM
******* p ******* ********* ********* Phone : +32 (0)2 / 729.85.42 Mobile : +32 (0)498/ 94.60.85 Fax : +32 (0)2 / 729.88.30 I N V E N T Email/MSN : thierry.faidherbe(at)hp.com Internet : http://www.hp.com/ ________________________________________________________________________

MOBISTAR SA/NV
CSO/CTO/CEO/SSD/SBI
SYSTEM Team Charleroi, Mermoz 2 Phone : +32 (0)2 / 745.75.81 Avenue Jean Mermoz, 32 Fax : +32 (0)2 / 745.89.56 6041 GOSSELIES Email : tfhaidhe(at)mail.mobistar.be
BELGIUM                         Web :   http://www.mobistar.be/
________________________________________________________________________



-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of Chamkura, Balki
Sent: Monday, January 09, 2006 8:12 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] jbverify error

All:

i am having some configuration issues with jukebox.  I am using
Networker 7.2 on solaris 8.  The drive and device  mapping has changed.

part of nsrjb command , drive 1 (/dev/rmt/0cbn) slot : drive 2 (/dev/rmt/2cbn) slot : drive 3 (/dev/rmt/3cbn) slot : drive 4 (/dev/rmt/1cbn) slot : Like you can see, now drive 2 maps to 2cnb. Earlier it was mapping to 1cbn.
Likes drive 3 and 4 are wrongly mapped.

I am not able to use drive 2,3 and 4.
How can I fix this.

I am enclosing the jbverify log below.

Thanks,
-Balki


KSH#jbverify

Jbverify is running on host piaqsvr02

no enabled stand alone devices found.


Processing jukebox devices...

Processing jukebox piaq_jb:

Testing drive 1 (/dev/rmt/0cbn) of JB piaq_jb

Testing drive 2 (/dev/rmt/2cbn) of JB piaq_jb
failed to detect loaded volume on drive /dev/rmt/2cbn even after 10 tries. Giving up...
Error reported in eject tape from drive /dev/rmt/2cbn! But device is
offline.
Failed in testing drive 2(/dev/rmt/2cbn) of JB piaq_jb:  Unable to
detect loaded state!
Testing drive 3 (/dev/rmt/3cbn) of JB piaq_jb failed to detect loaded volume on drive /dev/rmt/3cbn even after 10 tries. Giving up...
Error reported in eject tape from drive /dev/rmt/3cbn! But device is
offline.
Failed in testing drive 3(/dev/rmt/3cbn) of JB piaq_jb:  Unable to
detect loaded state!
Testing drive 4 (/dev/rmt/1cbn) of JB piaq_jb
failed to detect loaded volume on drive /dev/rmt/1cbn even after 10 tries. Giving up...
Error reported in eject tape from drive /dev/rmt/1cbn! But device is
offline.
Failed in testing drive 4(/dev/rmt/1cbn) of JB piaq_jb:  Unable to
detect loaded state!

Jukebox piaq_jb on piaqsvr02 successfully processed.


Finished processing jukebox devices.

**********************************************************************

                Summary report of jbverify
                ======= ====== == ========

Hostname   Device Handle    Blocksize  Jukebox  Drv No. Status
--------   -------------    ---------  -------  ------- ------
piaqsvr02  /dev/rmt/0cbn    65536      piaq_jb  1       Pass
piaqsvr02  /dev/rmt/2cbn    65536      piaq_jb  2       Fail
piaqsvr02  /dev/rmt/3cbn    65536      piaq_jb  3       Fail
piaqsvr02  /dev/rmt/1cbn    65536      piaq_jb  4       Fail

**********************************************************************


Exiting jbverify successfully.

To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER


--


w.parsons AT leeds.ac DOT uk
UNIX Support
Information Systems Services
The University of Leeds
+44 113 343 5670

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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