Please help: Try to backup a smb share

2001-02-16 Thread m . krips

Dear reader,

I try to integrate an smb share hosted on an amanda client. After

  amcheck DailySet1

I find in amandad.debug:

...


amandad: running service "/usr/local/libexec/selfcheck"
added interface ip= ...[snip] ...
Anonymous login successful
Domain=[BERLIN] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
amandad: sending REP packet:

Amanda 2.4 REP HANDLE 000-484A0508 SEQ 982164839
OPTIONS ;
running /usr/bin/smbclient ntbox\\TestDir -E -U (see amandapass) -c quit
ERROR [PC SHARE //ntbox/TestDir access error: host down or invalid password?]
OK /home/oracle
OK /sbin/dump executable
OK /sbin/restore executable
OK /bin/gtar executable
OK /etc/amandates read/writable
OK /usr/local/var/amanda/gnutar-lists/. read/writable
OK /usr/bin/smbclient executable
OK [/etc/amandapass is readable, but not by all]
OK /usr/bin/gzip executable
OK /etc/dumpdates read/writable
OK /dev/null read/writable
OK /tmp/amanda has more than 64 KB available.
OK /var/adm/amanda has more than 64 KB available.
OK /etc has more than 64 KB available.

...

Is there something missconfigured during installing amanda? I miss the
password phrase in the logoutput

  /usr/bin/smbclient ntbox\\TestDir -E -U (see amandapass) -c quit

If I try

  /usr/bin/smbclient ntbox\\TestDir PASSWD -E -U  AMANDAUSER -c quit

with PASSWORD defined in /etc/amandapass and AMANDAUSER used in
--with-user=... at config time it works.

Any idea?


Thank you
mike






Re: Can you set eject keyword with chg-chio?

2001-02-16 Thread Benjamin Lewis

Paul-

I ended up hacking up "chg-chs" to issue the appropriate chio commands to
work with my Adic 1200C on FreeBSD, since it too reads a config file.

It's pretty simple to do; you just look through the code for the string
"$CHS" and replace that line with an appropriate chio command.  I'd include
the code, but I've hacked it up yet again to work with my own changer
program that talks to a Lago LS/380L via a serial port.

Ultimately, chg-scsi would be the preferred changer.  Unfortunately, it 
doesn't seem to build on FreeBSD since the introduction of CAM and the
subsequent (much later) removal of the older SCSI subsystem.  I think
I'll dig out the Adic and see if I can get chg-scsi working sometime.

-Ben

-- 
Benjamin LewisThank goodness modern convenience is a 
Database Analyst/Programmer  thing of the remote future.
Purdue University Computing Center  -- Pogo, by Walt Kelly
[EMAIL PROTECTED] 





Please help with restore

2001-02-16 Thread Patrick LIN

I am using Amanda 2.4.2p1
on solaris 2.6 
with sst driver

my backup work fine but
when i try to make a restore on my Exabyte M2 EZ17
i have this :

Load tape Unix06 now
Continue? [Y/n]: y
amrecover: error reading tape: Connection reset by peer
extract_list - child returned non-zero status: 1
Continue? [Y/n]: y

what ever the tape i use.

On my amrecover.debug :
--
Started amidxtaped with arguments "6 -h -p /dev/rmt/1mn spoon ^c1t5d0s0$
20010208"
error reading tape: Connection reset by peer
amrecover: pid 21783 finish time Fri Feb 16 10:00:34 2001


Any help or suggestion

thanks 
patrick



Re: Please help: Try to backup a smb share

2001-02-16 Thread Robert Cavey

Mike,

  Back when I was doing samba shares a while back I
had one share I could never get sucessfully backed up.
The reason I think is that we had had "multiple NT
domains"  and the permissions were "whacked out"..

Here are some things to check:

When you configured amanda did you specify:
--with-samba-user=

The default according to the docs is "backup"

Did you create a "backup" account in your NT domain?
If so does the "share" allow the backup account Full
access??

Those are somethings to check.

Also:
Try running smbclient command line, authenticate, and
list the share through the "backup" account until you
get it worked out... then try amcheck again.

Bob
--- [EMAIL PROTECTED] wrote:
 Dear reader,
 
 I try to integrate an smb share hosted on an amanda
 client. After
 
   amcheck DailySet1
 
 I find in amandad.debug:
 
 ...
 
 
 amandad: running service
 "/usr/local/libexec/selfcheck"
 added interface ip= ...[snip] ...
 Anonymous login successful
 Domain=[BERLIN] OS=[Windows NT 4.0] Server=[NT LAN
 Manager 4.0]
 tree connect failed: ERRDOS - ERRnoaccess (Access
 denied.)
 amandad: sending REP packet:
 
 Amanda 2.4 REP HANDLE 000-484A0508 SEQ 982164839
 OPTIONS ;
 running /usr/bin/smbclient ntbox\\TestDir -E -U
 (see amandapass) -c quit
 ERROR [PC SHARE //ntbox/TestDir access error: host
 down or invalid password?]
 OK /home/oracle
 OK /sbin/dump executable
 OK /sbin/restore executable
 OK /bin/gtar executable
 OK /etc/amandates read/writable
 OK /usr/local/var/amanda/gnutar-lists/.
 read/writable
 OK /usr/bin/smbclient executable
 OK [/etc/amandapass is readable, but not by all]
 OK /usr/bin/gzip executable
 OK /etc/dumpdates read/writable
 OK /dev/null read/writable
 OK /tmp/amanda has more than 64 KB available.
 OK /var/adm/amanda has more than 64 KB available.
 OK /etc has more than 64 KB available.
 
 ...
 
 Is there something missconfigured during installing
 amanda? I miss the
 password phrase in the logoutput
 
   /usr/bin/smbclient ntbox\\TestDir -E -U (see
 amandapass) -c quit
 
 If I try
 
   /usr/bin/smbclient ntbox\\TestDir PASSWD -E -U
  AMANDAUSER -c quit
 
 with PASSWORD defined in /etc/amandapass and
 AMANDAUSER used in
 --with-user=... at config time it works.
 
 Any idea?
 
 
 Thank you
 mike
 
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Submitting a chg-zd-mtx, with barcode support, and 9 slot support

2001-02-16 Thread Jason Hollinden

This is my latest update to chg-zd-mtx, and most likely my last, barring
any bugs in this one.  It incorporates all bugfixes posted to me in the last
week (thank you).

Changes:

- moved 'all' user set variables to a separate config file called
  'changerfile'.conf.  By this, I mean if you have this in amanda.conf

changerfile "/etc/amanda/DailySet1/something"
  then your config file will be /etc/amanda/DailySet1/something.conf.  I
  have included mine ADIC.conf as an example of _all_ the variables that 
  are to be set in it.  Set up in amanda.conf has not changed.

- added a new internal variable:
$drivenum - returns the /dev/nst# number.  Whould work with
other device names also.

The above 2 changes gives this chg-zd-mtx the ability to work on
multiple drives at the same time, instead of having multiple copies of
it for each Amanda config.

Bugs:

I don't believe it is a bug with this script, but rather amtape.  Some
times when running 'amtape update', it will cycle through the tapelist
multiple times.  I had this happen a few times before the above changes
also, but maybe only once or twice (I don't run update that often, since
30 DLT's take for ever.)  However, if someone sees what's causing it, I
appreciate it.

--
   Jason Hollinden

   SMG Systems Admin

 chgzdmtx.tar.gz


Trying to use GNUTAR

2001-02-16 Thread Sergio Pereira

Hi,
first of all thanks for the people that help me. So, now I'm trying
to use gnutar because when I try to use dump a error message appear on
the log file :

--cut-- (client side)
sendbackup: debug 1 pid 25232 ruid 502 euid 502 start time Fri Feb 16
11:16:52 2001
/usr/local/libexec/sendbackup: got input request: DUMP /etc 0
1970:1:1:0:0:0 OPTIONS |;bsd-auth;
  parsed request as: program `DUMP' disk `/etc' lev 0 since
1970:1:1:0:0:0 opt `|;bsd-auth;'
  waiting for connect on 2595, then 2596
  got all connections
sendbackup: spawning "/sbin/dump" in pipeline
sendbackup: argument list: "dump" "0usf" "1048576" "-" "/etc"
error [/sbin/dump returned 1]
error [/sbin/dump returned 1]
sendbackup: pid 25232 finish time Fri Feb 16 11:16:52 2001
--cut--



and .. .trying to use gnutar ...
---cut---(server side)
START driver date 20010216
START planner date 20010216
INFO planner Adding new disk bastian.inetpres.com:/etc.
FAIL planner host.com /etc 0 [disk /etc offline on host.com?]
FINISH planner date 20010216
WARNING driver WARNING: got empty schedule from planner
STATS driver startup time 0.038
ERROR taper no-tape [cannot overwrite active tape Daily006]
FINISH driver date 20010216 time 0.043
---cut---

somebody can help me ?

thanks,

sergio




Re: dump problem on SCO OpenServer client?

2001-02-16 Thread Erick Bodine

Alexandre Oliva,

I did some checking and the dump program that Amanda found is used for dumping 
selected parts of an object file given to it.  However, I could not find the "actual" 
dump" program on the system. I did find a "sysdump" utility that dumps memory images, 
but I
do not think this is what you had in mind.   I have a sneaking suspicion that SCO left 
it out on purpose as they have their own "Backup Manager" software that comes with the 
system  "ArcServe" (crap) tape server software that you must purchase.

Looks like it is back to the crappy SCO ArcServe software.

--Erick Bodine

Alexandre Oliva wrote:

 On Feb 14, 2001, Erick Bodine [EMAIL PROTECTED] wrote:

  sendsize: running "/bin/dump 0Esf 1048576 - /dev/rroot"
  running /usr/local/libexec/killpgrp
  Usage: dump [-?CDVcgl -L[v] -a[v] -f[v] -h[dnv] -o[v] -r[dnv] -s[dnv] -t[nv] -T
  index1[, index2]] file(s) ...

 This doesn't look like the filesystem dump program.  Looks like some
 other dump program with unrelated purposes.  Check the OpenServer
 manual for the location of the actual dump program, and tell Amanda
 where it is, by removing config.cache and setting the DUMP environment
 variable before re-running configure.

 The actual dump is likely to be in the same directory as restore.
 Hopefully, configure found that one.  `amadmin config version' will
 tell you where.

 --
 Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
 Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
 CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
 Free Software Evangelist*Please* write to mailing lists, not to me




Re: dump problem on SCO OpenServer client?

2001-02-16 Thread John R. Jackson

...   I have a sneaking suspicion that SCO left it out ...

That's my recollection of the one SCO system I had the misfortune of
running across.

Looks like it is back to the crappy SCO ArcServe software.

Why not build GNU tar and use it with Amanda?

--Erick Bodine

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



chg-manual setup

2001-02-16 Thread Vijay Parthasarathy

Hi, 

I am trying to set up a manual changer. I set the tapedev and and set the 
tpchanger, but i am not able to find the file where i can set up the 
parameters for the manual changer.(eg. changer-src)

Can someone please tell me, where i can find this file. 

Thanks, 

-vijay



Re: Pre-compiled Sun 2.5.1 binaries?

2001-02-16 Thread Alexandre Oliva

On Feb 15, 2001, "Steve Fulton" [EMAIL PROTECTED] wrote:

 Basically, it will not compile

And the error is?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: amrestore problem

2001-02-16 Thread Alexandre Oliva

On Feb 16, 2001, Juergen  Knott [EMAIL PROTECTED] wrote:

 root@fileserver:/usr/local/sbin  ./amrestore /dev/sg5 king

/dev/sg5 is a changer.  The tape device is /dev/nst0, and that's what
amrestore wants.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: Help ! amflush not working !

2001-02-16 Thread Alexandre Oliva

On Feb 13, 2001, Aharon Schkolnik [EMAIL PROTECTED] wrote:

 amflush: could not lock log file /var/log/amanda/DatDay/log: Invalid argument 
Is /var/log/amanda/DatDay/log an existing file?

Did you consider building from sources, as per the recommendation in
the Amanda manual?  It might be that Amanda configure found some
options inappropriate for your environment.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: amanda on macos x

2001-02-16 Thread Alexandre Oliva

On Feb 16, 2001, Chris Stone [EMAIL PROTECTED] wrote:

 for some reason inetd won't spawn amandad

Did you try the suggestions in the FAQ?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: Trying to use GNUTAR

2001-02-16 Thread Alexandre Oliva

On Feb 16, 2001, Sergio Pereira [EMAIL PROTECTED] wrote:

 error [/sbin/dump returned 1]

is /sbin/dump installed on the client machine?  It's odd that it
doesn't print anything at all.  Try to run it, as the Amanda user,
with the command line printed in sendbackup.debug.

 somebody can help me ?

To switch over to GNU tar or to fix dump?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: amanda on macos x

2001-02-16 Thread John R. Jackson

I've gotten amanda v2.4.1p1 client to build and install on Mac OS X.  ...
for some reason inetd won't spawn amandad.  ...

Did you use NetInfoManager to add the Amanda services?  Were there any
complaints in /var/log/system.log when you HUP'd inetd?

Chris Stone

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



dlt1 40/80 dlt 8000

2001-02-16 Thread Holm-Hansen

I need a tapetype definition.  I'm running tapetype right now but I'm 
impatient (I've been reading stories about this possibly taking more than 5 
days.)

Anyhow, I haven't been able to discern what information is actually important 
so I'll tell you what I know and hopefully someone can fill me in on the 
details.

I am using a Dell PowerVault 110T DLT1 tape drive.  This uses FujiFilm DLTtape 
IV 1/2" Data tape.  40GB/80GB DLT 8000.

I hope that is enough information.

Thanks,

Andrew





Re: dump problem on SCO OpenServer client?

2001-02-16 Thread Erick Bodine

Unfortunately, my misfortune extends to more than just one SCO system.  I have built a 
GNU tar on the system, and rerun configure (--with-gnutar=/usr/local/bin/tar) after 
"make distclean".  With the following dumptype defined in amanda.conf on the tape
server I assume I am good to go.

define dumptype SCOcvs-tar {
global
program "GNUTAR"
comment "SCO cvs dumped with tar"
compress client best
index
exclude list "/usr/local/etc/amanda/BackUp1/exclude.gtar"
priority high
}

Thanks, 

--Erick Bodine


"John R. Jackson" wrote:
 
 ...   I have a sneaking suspicion that SCO left it out ...
 
 That's my recollection of the one SCO system I had the misfortune of
 running across.
 
 Looks like it is back to the crappy SCO ArcServe software.
 
 Why not build GNU tar and use it with Amanda?
 
 --Erick Bodine
 
 John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: dump problem on SCO OpenServer client?

2001-02-16 Thread John R. Jackson

...  I have
 built a GNU tar on the system, and rerun configure (--with-gnutar=/usr/local/
bin/tar) after "make distclean".  With the following dumptype defined in amand
a.conf on the tape
server I assume I am good to go.

I'd run amcheck to make sure it's happy, but what you have certainly
looks reasonable.

--Erick Bodine

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: dump problem on SCO OpenServer client?

2001-02-16 Thread Alexandre Oliva

On Feb 16, 2001, Erick Bodine [EMAIL PROTECTED] wrote:

 I assume I am good to go.

If amcheck says so... :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



Re: dlt1 40/80 dlt 8000

2001-02-16 Thread John R. Jackson

I need a tapetype definition.  I'm running tapetype right now but I'm 
impatient (I've been reading stories about this possibly taking more than 5 
days.)

Those reports are probably based on the 2.4.1 version of tapetype.
The 2.4.2 version is **much** faster.

I am using a ... 40GB/80GB DLT 8000.

Most drives of a particular type (DLT 8000 in this case), regardless
of reseller label, are going to behave close enough to the same for
your purposes.  Here's a typical one:

  http://amanda.sourceforge.net/fom-serve/cache/189.html

Andrew

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: dlt1 40/80 dlt 8000

2001-02-16 Thread Alexandre Oliva

On Feb 16, 2001, Holm-Hansen [EMAIL PROTECTED] wrote:

 I need a tapetype definition.  I'm running tapetype right now but I'm 
 impatient (I've been reading stories about this possibly taking more than 5 
 days.)

I hope you're using the tapetype program in 2.4.2 or 2.4.2p1.  The one
in 2.4.1p1 may indeed take days to complete.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



How to specify TAR or DUMP

2001-02-16 Thread Adams, Christopher
Title: How to specify TAR or DUMP





Hi all,


Where in the amanda.conf do I specify what form of backup Amanda is supposed to use. Like TAR or DUMP?





Re: Pre-compiled Sun 2.5.1 binaries?

2001-02-16 Thread John R. Jackson

 And the error is?

  configure: error: installation or configuration problem: C compiler cannot
create executables.

What's in config.log?  That should show the command it tried to run and
the output.

Steve.

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: amrecover error

2001-02-16 Thread John R. Jackson

Hi.  When running `amrecover', I am getting the following error message:

  AMRECOVER Version 2.4.2. Contacting server on scooby ...
...
  amrecover: Unexpected server end of file

What's in amindexd*debug on scooby?

Did you give amrecover a valid config name on the command line?

Ben

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: How to specify TAR or DUMP

2001-02-16 Thread John R. Jackson

Where in the amanda.conf do I specify what form of backup Amanda is supposed
to use.  Like TAR or DUMP?

The "program" keyword in a "dumptype".  See amanda(8).

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

P.S.  Please turn off "send as HTML" in your mailer.  It's just a waste
of bandwidth.



Re: confused by .amandahosts (was Re: Client problem)

2001-02-16 Thread John R. Jackson

... Thats the normal behaviour of an hosts file, but I can't find any on my
client. Why does the amanda server (2.4.1) back him up properly without having
 an .amandahosts file?

Look at one of your amandad*debug files on the client and see if it
has the USE_AMANDAHOSTS flag.  If that is not there, but BSD_SECURITY
flag is, you're using /etc/hosts.equiv or .../.rhosts rather than just
.../.amandahosts.

Another possibility is that you didn't look in the right place.  What user
is running amandad (look at the inetd.conf line)?  What's the home
directory for that user on the client?  That's where the .amandahosts
file should be.

mike

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Re: Pre-compiled Sun 2.5.1 binaries?

2001-02-16 Thread Steve Fulton

Here is the output from config.log .. as you will see, there is an I/O.  In
a nutshell, the /usr partition is fragged - due to some poor administration
by a previous sysadmin.  Since it is a production machine, I cannot take it
down to fix - at least not for the short-term, but I need to back it up -
which is why I want to install the Amanda client on it - which is why I need
a pre-compilied binary to test.

Steve

configure:4153: checking for gcc
configure:4230: checking whether the C compiler (gcc  -g) works
configure:4244: gcc -o conftest  -g conftest.c   15
conftest.c:0: /usr/include/.: I/O error
configure: failed program was:
#line 4240 "configure"
#include "confdefs.h"
main(){return(0);}

- Original Message -
From: "John R. Jackson" [EMAIL PROTECTED]
To: "Steve Fulton" [EMAIL PROTECTED]
Cc: "Alexandre Oliva" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, February 16, 2001 6:54 PM
Subject: Re: Pre-compiled Sun 2.5.1 binaries?


  And the error is?
 
   configure: error: installation or configuration problem: C compiler
cannot
 create executables.

 What's in config.log?  That should show the command it tried to run and
 the output.

 Steve.

 John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]