[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::networker

Title:NetWorker
Notice:kits - 12-14, problem reporting - 41.*, basics 1-100
Moderator:DECWET::RANDALL.com::lenox
Created:Thu Oct 10 1996
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:750
Total number of notes:3361

584.0. "NSRJB -n -l with NON-NSR tape..." by BRSDVP::DEVOS (Manu Devos NSIS Brussels 856-7539) Wed Apr 16 1997 09:47

    Hi,
    
    I read in the man pages of nsrjb(8) that the option -n can be used (in
    conjunction with -l) to load (without mounting) a "non-NSR" tape used
    by another program like vdump for example.
    
    It is perfect, and nsrjb -C is even displaying that a NON-NSR (-) is 
    present in the drive, coming from the slot X. Well.
         
    I started a "vdump -0 -f /dev/nrmt1h /" on that tape, and suddently
    nwadmin displayed a message saying that TAPE.002 is needed for a
    recover and it unmounted my in-use vdump tape causing an I/O error, 
    vdump asking "do you want to retry?
    
    Is it the expected behaviour, or do I miss something? Is it a solution?
    
    Thanks for any clue, 
    
    Manu.
T.RTitleUserPersonal
Name
DateLines
584.1it is possible behaviorDECWET::LENOXPass the popcorn, on with the show.Wed Apr 16 1997 10:427
NSR doesn't share jukeboxes, it assumes it has
full control of them (don't go messing with them
behind NSR's back, or NSR could end up in a very
confused state).  If you had disabled that
tape drive, then it would not have assumed it
could use the drive.
584.2Thanks, but ...BRSDVP::DEVOSManu Devos NSIS Brussels 856-7539Wed Apr 16 1997 10:555
    
    maybe, then, you can give me an explanation of the  nsrjb -l -n option
    described in the nsrjb(8) man page. It is simply an unusefull option.
    
    Manu.
584.3you needed two things, that command only does oneDECWET::LENOXPass the popcorn, on with the show.Wed Apr 16 1997 11:247
It will keep NSR in track, but it does not stop NSR
from assuming it can use the device, should it need
it, i.e. what you also needed.  Assuming you knew nothing
else would be happening, then your operation would have
worked ok.  That is possible for some environments, but not
for most.
584.4DECWET::FARLEEInsufficient Virtual um...er....Wed Apr 16 1997 11:4610
So the workaround is to use nsrjb -l -n to load your non-NetWorker
tape into the drive, and then use the Media->devices menu to
disable the drive (to NetWorker) for the duration of your external
use.  This will prevent NetWorker from choosing it as a candidate for
activity.

In general, NetWorker is NOT going to be friendly about sharing jukebox
or tape access with any other application.

Kevin
584.5BACHUS::DEVOSManu Devos NSIS Brussels 856-7539Thu Apr 17 1997 03:3626
    Thanks Kevin,
    
    This is just the advice I needed. I play with NSR since 1992, so I know
    that NSR does not like sharing a JUKEBOX.
    
    But, we, in the field, are confronted to the promise of our salesmen by
    our customer and we only "try" to "find" an "acceptable" solution for
    both "Mister the customer" and "Mister the digital support" ... :-)
    
    And keep in mind that every solution we implement at the customer site
    which are NOT supported by the official CSC channels is finally falling
    in OUR hands !!! So, it is not by unselfconsciousness  that we propose
    some "strange" solutions... I could have added this paragraph in a lot
    of notes concerning ASE-ADVFS-LSM-NSR integration.
    
    So, I am sorry to exercise some pressure on you, Engineering guys, but
    it is simply in order to stay in the market with the most beautifull
    UNIX integrated cluster solution...
    
    And, also, when we come to you with strange requests, we are only
    waiting for help and not to receive at first the statement : "it is not
    supported" that we already know.
    
    Thanks Kevin, and best regards,
    
    Manu.
584.6Timing is everthingCUSTOM::STAFFORDThu Apr 17 1997 10:1518
    
    
    	I am also looking to perform a vdump using the NSR jukebox, the
    	concern I have is making it automatic. I would like to write
    	a shell script to mount the tape nsrjb and hve NSR ignor it. 
    	Using the nsrjb command is ok, but how do we disble the device 
    	and insure that NSR will not try a nsrjb command between our nsrjb
    	mount command and the disble device command. If nsrjb is busy doing
    	work like loading our tape, other nsrjb commands wait until the
    	previous complete. This could allow a pending NSR nsrjb command to
    	come in and mount a tape before we disable the device. 
    	The worst case I could think is to have a vdump overwrite a NSR 
    	volume losing the data.
    
    	I will try and play with it and see what I can see.
    
    
     
584.7A script to disable a drive...DECWET::FARLEEInsufficient Virtual um...er....Thu Apr 17 1997 12:3319
You can use the following script as a basis to disable the drive
from a script, minimizing the window when NSR could access the tape:

#!/bin/sh
#
# First load the tape in the drive.  Obviously, you'll need to 
# customize this for your configuration, and the slot could easily
# be a parameter to the script.
#
nsrjb -l -n -S45
#
# Now, we disable the drive for NetWorker's use.
#
nsradmin -i - <<EOF
. type:NSR device; name:/dev/nrmt0h
update enabled:No
quit
EOF
#
584.8Thanks Kevin, for your support!BACHUS::DEVOSManu Devos NSIS Brussels 856-7539Thu Apr 17 1997 13:131