[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

687.0. "save fails with 'save: getcwd failed'" by BLKRUS::LEMONS (And we thank you for your support.) Mon May 19 1997 12:19

    NetWorker Save and Restore Client for Digital UNIX V4.2B with -12
    patchs applied.
    
    jade.gppc.dec.com:oradpa 8% save -vg SAP_Backups -s
    nw134208.gppc.dec.com /oraco
    save: got prototype for /
    save: got prototype for /usr/
    save: got prototype for /
    chdir(/oracle/DPA/)
    save: getcwd failed
    jade.gppc.dec.com:oradpa 9%
    
    I think this is being caused by bad protection and/or ownership on some
    of NetWorker's files.  Is there a debugging option I can turn on to
    verify this?
    
    Thanks!
    tl
T.RTitleUserPersonal
Name
DateLines
687.1BLKRUS::LEMONSAnd we thank you for your support.Mon May 19 1997 12:596
    Hmm.  I've compared the file ownerships and protections of all the
    files in the patch kit, and everything looks okay.  What else could
    this be?
    
    Thanks
    tl
687.2BLKRUS::LEMONSAnd we thank you for your support.Mon May 19 1997 13:4049
    More data:
    
    jade.gppc.dec.com:oradpa 2% save -vg SAP_Backups -s
    nw134208.gppc.dec.com kw.foo
    save: got prototype for /
    save: got prototype for /usr/
    save: got prototype for /
    chdir(/oracle/DPA/)
    save: getcwd failed
    jade.gppc.dec.com:oradpa 3% whoami
    oradpa
    jade.gppc.dec.com:oradpa 4% ls -l kw.foo
    -rw-r--r--   1 oradpa   dba           19 May 19 10:19 kw.foo
    jade.gppc.dec.com:oradpa 5% whereis save
    save: /usr/bin/save /usr/share/man/man8/save.8
    jade.gppc.dec.com:oradpa 6% ls -l /usr/bin/save
    -rws--x--x   1 root     bin      1089536 Mar 21 13:21 /usr/bin/save
    jade.gppc.dec.com:oradpa 7% ls -l /usr/bin/savefs
    -rws--x--x   1 root     bin       811008 Mar 21 13:21 /usr/bin/savefs
    jade.gppc.dec.com:oradpa 8% logout
    # save -vg SAP_Backups -s nw134208.gppc.dec.com /oracle/DPA/kw.foo
    save: got prototype for /
    save: got prototype for /usr/
    save: got prototype for /
    chdir(/oracle/DPA/)
    Name=`/oracle/DPA/kw.foo', name=`/oracle/DPA/kw.foo', fname=`kw.foo'
    save: found protofile spec for /:
      mntasm : u04
    walk(/oracle/DPA/kw.foo, kw.foo)
    uasm -s /oracle/DPA/kw.foo
    /oracle/DPA/kw.foo file opened for AdvFS extended attrs
    Connecting directories...
    dir: /oracle/DPA/, fstype: 3, fsid: 0
    uasm -s /oracle/DPA/
    /oracle/DPA/ file opened for AdvFS extended attrs
    dir: /oracle/, fstype: 2, fsid: 0
    uasm -s /oracle/
    dir: /, fstype: 2, fsid: 0
    uasm -s /
    
    save: /oracle/DPA/kw.foo  4 KB 00:00:04      4 files
    #
    
    The file ownership and protection on save and savefs look okay to me. 
    Any reason why this backup would work from root, but not from the
    oradpa account?
    
    Thanks
    tl
687.3BLKRUS::LEMONSAnd we thank you for your support.Mon May 19 1997 14:258
    I re-installed the V4.2B client kit, and didn't install any patches,
    thinking I was messing things up when I did that.  And I still see the
    same errors as in .-1.
    
    Any thoughts?
    
    Thanks!
    tl
687.4what does ls -ld show for /oracle??DECWET::EVANSNSR EngineeringMon May 19 1997 15:060
687.5SANITY::LEMONSAnd we thank you for your support.Tue May 20 1997 08:5717
    Hi Bruce
    
    Yep, that was it:
    
    	/oracle was:
    d--x--x--x   4 root     system        512 May  8 16:29 oracle
    	and is now:
    drwxr-xr-x   4 root     system        512 May  8 16:29 oracle
    
    Once the change in directory protection was made, NetWorker worked
    again.  The cure was obvious, once the problem was understood.
    
    But is there a debugging mode that I can run save in that would have
    told me what was wrong?
    
    Thanks again
    tl
687.6any debugging to help??DECWET::EVANSNSR EngineeringTue May 20 1997 10:459
>    But is there a debugging mode that I can run save in that would have
>    told me what was wrong?

  well, you ran the correct comand in .2 (
	save -vg SAP_Backups -snw134208.gppc.dec.com kw.foo
  ), but it's just knowing the code, and having recently crawled through
  this with another customer... :-)

that's why they pay us the big bucks...  :-|
687.7SANITY::LEMONSAnd we thank you for your support.Tue May 20 1997 13:135
    Thanks.  It's helpful to know that I did all that I could before
    running here for help!
    
    Thanks again
    tl