[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

661.0. "What is the default server?" by SANITY::LEMONS (And we thank you for your support.) Tue May 06 1997 14:44

    If I enter a save command and don't specify a server, what server does
    the save command use?  Is it the first one listed in /nsr/res/servers,
    or something else?
    
    Thanks!
    tl
T.RTitleUserPersonal
Name
DateLines
661.1DECWET::FARLEEInsufficient Virtual um...er....Tue May 06 1997 15:399
(on UNIX the way it works is:)
First it looks for a node with the alias nsrhost.  If one is found, it
will use that.

Failing that, it broadcasts to the net searching for any NetWorker 
server which has this  node defined as a client.  The first one found
is used.

Kevin
661.2SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 16:1422
    More details on my question.  I'm using NetWorker Server for Digital
    UNIX V4.3 and the NetWorker Client for Digital UNIX V4.2.  When I run a
    save on the client, I see:
    
    # save -g SAP_Backup /usr/opt/DTO100
    save: Using nw12880.hlo.dec.com as server for amber.gppc.dec.com
    save: SYSTEM error, no group `SAP_Backup' configured on server
    save: Cannot open save session with nw12880.hlo.dec.com
    #
    
    Where is the NetWorker client getting this value from?
    
    Thanks!
    tl
    Yet, I see:
    
    # cat /nsr/res/servers
    nw134208.gppc.dec.com
    nw12880.hlo.dec.com
    #
    
    
661.3SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 16:1712
    Ooops!  Notes collision; thanks, Kevin!  So, if I want to force the
    client to use only two servers, and I want it to use the first server
    in the list always, and the second server if the first server is down,
    will this work:
    
    nsrexexd -s serverA -s serverB
    
    If yes, into what file should I add this command so it gets started
    everytime?  Or, should this already be somewhere?
    
    Thanks again!
    tl
661.4SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 16:2821
    Rats.  This doesn't seem to work.  With this running:
    
    # ps ax | grep nsr
    30562 ??       I        0:00.02 /usr/bin/nsrexecd -s
    nw134208.gppc.dec.com -s n
    30631 ttyp8    S  +     0:00.00 grep nsr
    #
    
    I still see:
    
    # save -v -n -g SAP_Backups README
    save: Using nw12880.hlo.dec.com as server for amber.gppc.dec.com
    .
    .
    
    
    Why is it using nw12880, rather than the first server in the list on
    both the nsrexexd command line and /nsr/res/servers?
    
    Thanks!
    tl
661.5SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 16:5240
    I added this entry to /etc/hosts:
    
    16.134.208.4 nw134208.gppc.dec.com   nsrhost
    
    It's the only nsrhost entry in the file:
    
    # cat /etc/hosts | grep nsr
    16.134.208.4 nw134208.gppc.dec.com   nsrhost
    #
    
    I can use nsrhost, and it does take the correct route:
    # traceroute nsrhost
    traceroute to nw134208.gppc.dec.com (16.134.208.4), 30 hops max, 40
    byte packets
     1  nw134208 (16.134.208.4)  1 ms  1 ms  0 ms
    #
    
    But, the save command still uses a different server:
    
    # save -v -n -g SAP_Backups README
    save: Using nw12880.hlo.dec.com as server for amber.gppc.dec.com
    save: got prototype for /
    save: got prototype for /usr/
    save: got prototype for /
    chdir(/u04/crsupp/)
    Name=`/u04/crsupp/README', name=`/u04/crsupp/README', fname=`README'
    save: found protofile spec for /:
      mntasm : u04
    walk(/u04/crsupp/README, README)
    uasm -s /u04/crsupp/README
    
    save: /u04/crsupp/README 1 records 1 KB header 3 KB data
    
    save: /u04/crsupp/README 3 KB estimated
    #
    
    Thoughts?
    
    Thanks!
    tl
661.6SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 18:306
    I did find a workaround for my problem in that the script file
    executing the command save command did allow for specification of the
    server name, thank goodness.
    
    Wes and Kevin, thanks very much for your help!
    tl
661.7??USCTR1::ASCHERDave AscherThu May 08 1997 11:4810
re:    <<< Note 661.6 by SANITY::LEMONS "And we thank you for your support." >>>

    I htought that I had noticed that putting nsrhost into /etc/hosts
    as an alias did not work anymore. I didn't have time to check into
    it but I believe that I noticed this behavior at at least 2
    different sites running 4.something. 
    
    Perhaps this fell through some crack?
    
    d
661.8SANITY::LEMONSAnd we thank you for your support.Thu May 08 1997 14:1813
    Kevin clarified this for me.  The following are only used by 
    server-initiated backups, and are ignored by client-initiated backups
    (like running the 'save' program in a script):
    
    o nsrhost
    o the entries in /nsr/res/servers
    o the nsrexecd -s option
    
    Kevin read the code and mentioned the logic used by save to select a
    server, but I didn't memorize it alas.
    
    Hope this help.
    tl