Re: Can load but can't eject tapes...

2001-05-09 Thread Lennart Hansen

On Tuesday 08 May 2001 16:55, [EMAIL PROTECTED] wrote:

 Try setting OFFLINE_BEFORE_UNLOAD=1.

 This will cause Amanda to issue a
 mt -f /dev/tape device offline
 command before attempting the eject.


It works if i issue the command... But where does i specify the 
OFFLINE_BEFO... ???

-Lennart

-- 

Lennart Hansen, System Administrator.

 Email: [EMAIL PROTECTED] DixaNet (UK) Ltd.
 Mobile:[+45] 51 39 67 42   Vedbæk Strandvej 341
 Phone: [+45] 45 67 67 42   DK-2950 Vedbæk
 Fax.:  [+45] 45 67 67 45   [Enrum Castle]


Quitters Never Win, Winners Never Quit, But Those Who Never Win 
AND Never Quit Are Idiots. 



Re: Can load but can't eject tapes...

2001-05-09 Thread Lennart Hansen

On Wednesday 09 May 2001 09:10, Lennart Hansen wrote:
 On Tuesday 08 May 2001 16:55, [EMAIL PROTECTED] wrote:
  Try setting OFFLINE_BEFORE_UNLOAD=1.
 
  This will cause Amanda to issue a
  mt -f /dev/tape device offline
  command before attempting the eject.

 It works if i issue the command... But where does i specify the
 OFFLINE_BEFO... ???

I use the chg-scsi software.. i found the OFFLINE_BE.. in chg-zd-mtx, but 
is that connected in some way with chg-scsi ??

-- 

Lennart Hansen, System Administrator.

 Email: [EMAIL PROTECTED] DixaNet (UK) Ltd.
 Mobile:[+45] 51 39 67 42   Vedbæk Strandvej 341
 Phone: [+45] 45 67 67 42   DK-2950 Vedbæk
 Fax.:  [+45] 45 67 67 45   [Enrum Castle]


Quitters Never Win, Winners Never Quit, But Those Who Never Win 
AND Never Quit Are Idiots. 



Amanda has stop daily e-mail reports.

2001-05-09 Thread rod

Hi All,

Has anybody come across this before.  Amanda appears to be working fine,
but has stop mailing reports out after backups or flushes. I have tested
mailing service on the server and they appear fine.  Also what is the
script that runs the mailed report? 

best regards

R L EDWARDS



patch

2001-05-09 Thread Olivier Collet

Hello,

Few month ago, I was told to apply this patch :

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/amanda/server-src/taper.c.diff?cvsroot=amandaonly_with_tag=amanda-242-branchr1=texttr1=1.47.2.15r2=texttr2=1.47.2.16r2=textf=u

but now the page doesn't exist anymore, and when I follow the link to the
new page I don't know which patch to choose.
Anyone can help ?

Thanks in advance
regards
-- 
Olivier Collet

System Administrator

If you ask questions, you might look stupide,
but if you don't, you will be stupide.






(no subject)

2001-05-09 Thread Marcelo G. Narciso

unsubscribe




Re: Large partition not backing up

2001-05-09 Thread Kevin M. Myer

On Mon, 7 May 2001, John R. Jackson wrote:

 ... the backup of my file server parition
 is failing with a rather uninformative error message:
 
 ironwood   /mnt/files lev 0 FAILED [dump to tape failed]

 There should have been other messages besides this one, perhaps at the
 top of the report or in the NOTES section.

There are but they are useless in diagnosing why its failing.  Here's what
I've got as far as messages:

FAILURE AND STRANGE DUMP SUMMARY:
  ironwood   /mnt/files lev 0 FAILED [dump to tape failed]

NOTES:
  planner: Forcing full dump of ironwood:/mnt/files as directed.




 ...  I exclude a number of directories because
 they are backed up with my Macintosh backup program and sendsize
 calculates a size of 15Gb to be backed up.  The file server partition also
 holds the amanda holding disk directory.  ...

 If you're trying to back up the file system that has the holding disk
 area, you should use holdingdisk no in the dumptype to force it to go
 direct to tape.

Actually, I was using an exclude file to exclude the amanda directory.
I've switched it over to a holdingdisk no config.  Hopefully a direct
dump to tape will solve this problem. [Update - the backup ran over night
with this option:  the exact same messages were output as listed above].

I'm curious what is causing this though.  My debug files show nothing out
of the ordinary.  There are no errors listed and the sendsize estimate
completes fine.  The only thing that doesn't happen is sendbackup is never
executed for this filesystem.  Its as if its silently failing and it
couldn't be happening to a worse partition than my main file server/home
directory partition.  Ugh.

Kevin

-- 
Kevin M. Myer
Systems Administrator
Lancaster-Lebanon Intermediate Unit 13
(717)-560-6140





(no subject)

2001-05-09 Thread Marcelo G. Narciso

unsubscribe [EMAIL PROTECTED]




Re: Can load but can't eject tapes...

2001-05-09 Thread Patrick_Scannell


Instead of chg-scsi, try using chg-zd-mtx.  That's what  I use.




On Wednesday 09 May 2001 09:10, Lennart Hansen wrote:
 On Tuesday 08 May 2001 16:55, [EMAIL PROTECTED] wrote:
  Try setting OFFLINE_BEFORE_UNLOAD=1.
 
  This will cause Amanda to issue a
  mt -f /dev/tape device offline
  command before attempting the eject.

 It works if i issue the command... But where does i specify the
 OFFLINE_BEFO... ???

I use the chg-scsi software.. i found the OFFLINE_BE.. in chg-zd-mtx, but

is that connected in some way with chg-scsi ??







One-time Full backup

2001-05-09 Thread David Carter


I often have systems about to go through scheduled hardware maintenance, and
I want to run a one-time level 0 backup of it prior to the maintenance and
outside of its normal schedule. Once the maintenance is successful, this
particular backup isn't needed any longer.  I've created a configuration for
it, and I'm just wondering if amanda will work correctly with:

dumpcycle 1
runspercycle 1
tapecycle 1

and allow me to re-use the tape for the same thing next time.  Just trying
to avoid having to do an amrmtape  amlabel every time...

David Carter
McLeodUSA Information Systems
[EMAIL PROTECTED]
281-465-1835




Amanda Disaster Recovery...

2001-05-09 Thread Nicki Messerschmidt

Hi folks,
I'm runnig several Amanda hosts and an Amanda server. Everything works fine, 
but...
theres one thing I really don't know how to do the simplest possible way:
How to revocer an Amanda Client if the whole disk is corrupt and I have to
replace it.
Is there a simple method without installing a complete new linux and then 
amanda?
I know how to restore files with amrecover and amrestore, never done it via 
dd... 

In hope for a positive answer
Nicki Messerschmidt



Re: missing files

2001-05-09 Thread George Herson

John R. Jackson wrote:
 
 I got all nine items of my /home/amanda directory archived, unlike when
 amdump ran it with option --listed-incremental
 /usr/local/var/amanda/gnutar-lists/dellmachine_home_amanda_0.new.  What
 does this mean?
 
 I don't know what it means yet, except that tar is probably OK, it's
 just something about the way Amanda is calling it.
 
 What does amcheck have to say about your system?

Amcheck has no complaints, including with the write test, though it was
skipped below.  (How do i put a tape back to inactive status? I tried
re-labeling, but couldn't: tape is active.)

# /usr/local/sbin/amcheck Dell-Full
Amanda Tape Server Host Check
-
Holding disk /dumps/amanda: 2205816 KB disk space available, that's
plenty
ERROR: cannot overwrite active tape Dell-Full010503
   (expecting a new tape)
NOTE: skipping tape-writable test
Server check took 12.971 seconds

Amanda Backup Client Hosts Check

Client check: 1 host checked in 2.345 seconds, 0 problems found

(brought to you by Amanda 2.4.2p2)

 
 Does your Amanda user have sufficient permissions to create files in
 /usr/local/var/amanda/gnutar-lists?

That dir is amanda owned and operated.

 What are the complete contents a typical /tmp/amanda/sendbackup*debug
 file for one of the failed runs?

Don't have any from a failed run. Below is my only sendbackup*debug
file, which is from the successful run.  

# cat /tmp/amanda/sendbackup*debug
sendbackup: debug 1 pid 17143 ruid 507 euid 507 start time Fri May  4
20:45:05 2001
/usr/local/libexec/sendbackup: version 2.4.2p2
sendbackup: got input request: GNUTAR /home/amanda 0 1970:1:1:0:0:0
OPTIONS |;bsd-auth;
  parsed request as: program `GNUTAR'
 disk `/home/amanda'
 lev 0
 since 1970:1:1:0:0:0
 opt `|;bsd-auth;'
sendbackup: try_socksize: send buffer size is 65536
sendbackup: stream_server: waiting for connection: 0.0.0.0.2865
sendbackup: stream_server: waiting for connection: 0.0.0.0.2866
  waiting for connect on 2865, then 2866
sendbackup: stream_accept: connection from 192.168.1.100.2867
sendbackup: stream_accept: connection from 192.168.1.100.2868
  got all connections
sendbackup-gnutar: doing level 0 dump as listed-incremental to
/usr/local/var/amanda/gnutar-lists/dellmachine_home_amanda_0.new
sendbackup-gnutar: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning /usr/local/libexec/runtar in pipeline
sendbackup: argument list: gtar --create --file - --directory
/home/amanda --one-file-system --listed-incremental
/usr/local/var/amanda/gnutar-lists/dellmachine_home_amanda_0.new
--sparse --ignore-failed-read --totals .
sendbackup-gnutar: /usr/local/libexec/runtar: pid 17144
sendbackup: pid 17143 finish time Fri May  4 20:45:05 2001

thx,
george



Re: Amanda Disaster Recovery...

2001-05-09 Thread Ron Stanonik

On Wed, 9 May 2001, Nicki Messerschmidt wrote:
 I'm runnig several Amanda hosts and an Amanda server. Everything works fine,
 but...
 theres one thing I really don't know how to do the simplest possible way:
 How to revocer an Amanda Client if the whole disk is corrupt and I have to
 replace it.
 Is there a simple method without installing a complete new linux and then
 amanda?
 I know how to restore files with amrecover and amrestore, never done it via
 dd...

What you want is a bootable CD which contains the tools to
format a disk and tar/restore from the amanda dump.

linuxcare provides an image for a bootable CD

  http://open-projects.linuxcare.com/BBC/

Or maybe you can use the CD you installed linux from.

Since the crashed machine almost never has a tape driver,
you'll end up doing something like

  rsh amandahost amrestore -p host filesystem | tar xf -

I use dump/restore (yes, I hear the groans) and have had
problems rsh'ing to restore, so I usually amrestore the
archive to a file and then extract from that via nfs mount
or copying the file to the machine.

Amanda documentation describes the command.

And you'll need to fiddle with lilo to the make the drive bootable.

You should find a guinea pig machine and try this!

One surprise I had with the linuxcare CD was that it created
a filesystem which was a slightly newer version of ext2.  The
restore went fine, but afterward dump failed, complaining that
the filesystem was a newer version than the dump version.
Replacing dump with a newer version fixed that.

Good luck,

Ron
[EMAIL PROTECTED]




Easy Questions

2001-05-09 Thread ahall

Hello,

I have a question about dumpcycle/tapecycle and reusing tapes.  Firstly I
have dumpcycle = 7, and tapecycle = 40.  I used 40 because I wanted a
months worth of tapes before I reuse a tape, + 10 for extra tapes.  Is
this logic ok?  Tomorrow I want to reuse tape 1.  Can I just put tape 1 in
the drive, or must I run an amrmtape before I can reuse it.


Thankyou for your time.


Andrew Hall




Re: Amanda Disaster Recovery...

2001-05-09 Thread George Herson

hi. If you're running Linux and want to buy a disaster recovery cdrom
that includes amanda, the book _Linux Problem Solver_ by Brian Ward, No
Starch Press, includes one.

george herson

Nicki Messerschmidt wrote:
 
 Hi folks,
 I'm runnig several Amanda hosts and an Amanda server. Everything works fine,
 but...
 theres one thing I really don't know how to do the simplest possible way:
 How to revocer an Amanda Client if the whole disk is corrupt and I have to
 replace it.
 Is there a simple method without installing a complete new linux and then
 amanda?
 I know how to restore files with amrecover and amrestore, never done it via
 dd...
 
 In hope for a positive answer
 Nicki Messerschmidt



Re: Multiple Samba clients - selfcheck request timed out

2001-05-09 Thread Tor Slettnes

 John == John R Jackson [EMAIL PROTECTED] writes:

John In 2.4.2p2, it's ctimeout (check timeout).  I don't remember
John when that feature went in, so it might not be in whatever
John version you have.

I use 2.4.2p2 - so yes - this helped!

Thanks a lot!

-tor



Re: Easy Questions

2001-05-09 Thread Benjamin Hyatt

[EMAIL PROTECTED] wrote:
 Tomorrow I want to reuse tape 1.  Can I just put tape 1 in
 the drive, or must I run an amrmtape before I can reuse it.

As long as the tape is set for reuse(I believe this is default), you're
fine

Ben

 Andrew Hall




Re: Easy Questions

2001-05-09 Thread Tor Slettnes

 ahall == ahall  [EMAIL PROTECTED] writes:

ahall Hello, I have a question about dumpcycle/tapecycle and
ahall reusing tapes.  Firstly I have dumpcycle = 7, and tapecycle
ahall = 40.  I used 40 because I wanted a months worth of tapes
ahall before I reuse a tape, + 10 for extra tapes.  Is this logic
ahall ok?  Tomorrow I want to reuse tape 1.  Can I just put tape
ahall 1 in the drive, or must I run an amrmtape before I can
ahall reuse it.

The way I understand it, it will want to use all your 40 tapes before
reusing the first one.  Basically, amcheck will let you know.

Don't use 'amrmtape', unless you really want to remove a tape from
circulation. 

-tor



Response to r.f.c.: Suggestions

2001-05-09 Thread George Herson

hi.  Since the Amanda 2.4.2 INSTALL file requests PLEASE send mail to
[EMAIL PROTECTED] if you have any comments, i made a few
suggestions/notes during my install.

First, though, in the INSTALL or README, say that understanding all one
should of Amanda is not trivial, and that Amanda is not appropriate for
every situation where computers outnumber tape drives.  For my
2-computer setup, for example, using just NFS and tar is far, far
simpler.

Replace 2.1.B.'s example config directory,
/usr/local/etc/amanda/confname, with one that exists by default
(/usr/local/etc/amanda didn't exist).  It's hard for the 1st time
installer to figure out the best place for these things.

Where appropriate in INSTALL, inform the installer to make use of
disklist, amlabel, and amcheck (not just re:crontab), and to see each's
(and Amanda's) man page for how.

Consider moving section 2.1.C to the end.  Most people will want amanda
working before adding it to their crontab.

In section 2.2.A, mention that .amandahosts uses the same format as
.rhosts, and give an example line.

Use a different name for either the FAQ file or the db at 
http://amanda.sourceforge.net/fom-serve/cache/1.html because calling
them both FAQ is confusing.

Though she's more than i can handle at the present, for the future,
thank u for keeping amanda free and well-supported.

george herson



Dump considered harmful

2001-05-09 Thread Dan Wilder

Please forgive the cross-post.  It happens to be on a topic that
gets discussed in amanda-users quite often, not to mention being
a particular hot button of my own.

- Forwarded message from Mike Orr [EMAIL PROTECTED] -

Date: Wed, 9 May 2001 09:43:50 -0700
From: Mike Orr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Dump considered harmful
X-Mailer: Mutt 0.95.3i
Reply-To: [EMAIL PROTECTED]

[ ... ]

Trashing your filesystem with dump
http://www.lwn.net/2001/0503/kernel.php3

Why 'dump' is not a safe backup tool for Linux.  Short Linux Weekly News
article with a quote from Linus.

-- 

-Mike

=
To Unsubscribe: [EMAIL PROTECTED], unsubscribe in message body
Report Problems to: [EMAIL PROTECTED]


- End forwarded message -

-- 
-
 Dan Wilder [EMAIL PROTECTED]   Technical Manager  Editor
 SSC, Inc. P.O. Box 55549   Phone:  206-782-8808
 Seattle, WA  98155-0549URL http://embedded.linuxjournal.com/
-



Re: patch

2001-05-09 Thread John R. Jackson

Few month ago, I was told to apply this patch :

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/amanda/server-src/taper.c.diff?c
vsroot=amandaonly_with_tag=amanda-242-branchr1=texttr1=1.47.2.15r2=texttr
2=1.47.2.16r2=textf=u

but now the page doesn't exist anymore, and when I follow the link to the
new page I don't know which patch to choose.

Sigh.  Seems like the SourceForge people have done it to us again.  Yet
another unannounced change.

This appears to be the correct new URL:

  
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/amanda/amanda/server-src/taper.c.diff?r1=1.47.2.15r2=1.47.2.16diff_format=u

I've also appended the patch as an attachment in case you have any
other trouble.

Thanks for pointing out this problem.  I'll get the scripts changed that
generate those URL's so they send out the right thing.

Olivier Collet

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

 taper-15-16.diff


Re: Amanda has stop daily e-mail reports.

2001-05-09 Thread John R. Jackson

Has anybody come across this before.  Amanda appears to be working fine,
but has stop mailing reports out after backups or flushes. I have tested
mailing service on the server and they appear fine.  Also what is the
script that runs the mailed report? 

It's amreport that generates the E-mail.  In fact, you can re-generate
a report like this:

  su amanda -c amreport config -l log.MMDD.NN

It runs the mail program like this:

  mailer -s the subject mailto  the-letter

where mailer is the mail program (amadmin xx version | grep MAILER)
and mailto is the mailto value from your amanda.conf file (amgetconf
config mailto).

So try putting a few lines of text in a file and running the above
command sequence with the appropriate substitutions as the Amanda user
and see what happens.

R L EDWARDS

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



Re: Dump considered harmful

2001-05-09 Thread C. Chan

Also Sprach Dan Wilder:

 Please forgive the cross-post.  It happens to be on a topic that
 gets discussed in amanda-users quite often, not to mention being
 a particular hot button of my own.
 
 Date: Wed, 9 May 2001 09:43:50 -0700
 From: Mike Orr [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Dump considered harmful
 
 Trashing your filesystem with dump
 http://www.lwn.net/2001/0503/kernel.php3
 
 Why 'dump' is not a safe backup tool for Linux.  Short Linux Weekly News
 article with a quote from Linus.
 
 -- 
 
 -Mike

So there are 3 issues involved:

1) The usual problems with dump on a live filesystem.
2) The bug in kernel 2.4.x SMP
3) The incompatibility between the 2.4 page cache and dump.

I consider the discussion somewhat moot since ext2 dump was
never stable enough to be trusted anyway.

Does the above also apply to XFS and the xfsdump/xfsrestore
port from IRIX to Linux?

--
C. Chan  [EMAIL PROTECTED]  
Finger [EMAIL PROTECTED] for PGP public key.




Re: Can load but can't eject tapes...

2001-05-09 Thread John R. Jackson

I use the chg-scsi software.. i found the OFFLINE_BE.. in chg-zd-mtx, but 
is that connected in some way with chg-scsi ??

Those are two different changers.

You want to put:

  eject  1

in your chg-scsi config file (or change it from zero to one if the line
is already there).

   Lennart Hansen

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



Re: One-time Full backup

2001-05-09 Thread John R. Jackson

I often have systems about to go through scheduled hardware maintenance, and
I want to run a one-time level 0 backup of it prior to the maintenance and
outside of its normal schedule. Once the maintenance is successful, this
particular backup isn't needed any longer.  I've created a configuration for
it, and I'm just wondering if amanda will work correctly with:

dumpcycle 1

I would use dumpcycle 0 and I'd also amadmin config force host
before the run, just to make sure Amanda was paying attention :-).

runspercycle 1

You can ignore this.  With a zero (or one) dumpcycle, runspercycle does
not really mean anything.

tapecycle 1

and allow me to re-use the tape for the same thing next time.  Just trying
to avoid having to do an amrmtape  amlabel every time...

I set up a test case like the above and it appears to work just fine.

Thanks for the tip.  That's a useful setup and I'll see if I can get
it into the docs.

David Carter

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



Re: Easy Questions

2001-05-09 Thread John R. Jackson

 Hello, I have a question about dumpcycle/tapecycle and
 reusing tapes.  Firstly I have dumpcycle = 7, and tapecycle
 = 40.  I used 40 because I wanted a months worth of tapes
 before I reuse a tape, + 10 for extra tapes.  Is this logic
 ok?  ...

Seems reasonable.

 Tomorrow I want to reuse tape 1.  Can I just put tape
 1 in the drive, or must I run an amrmtape before I can
 reuse it.

As Tor Slettnes said, if you tell Amanda the tape cycle is 40 tapes,
it wants to use all 40 before wrapping back around to the first one again.

Is there any reason that would be a problem?

In addition to using amcheck (or the E-mail report) to see what tape
Amanda wants next, as Tor mentioned, you can also use:

  amadmin config tape

-tor

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



Re: missing files

2001-05-09 Thread George Herson

John R. Jackson wrote:
 
 ...  (How do i put a tape back to inactive status? I tried
 re-labeling, but couldn't: tape is active.)
 
 Either use -f on amlabel, or use amrmtape.

Worked, thx.

 Don't have any from a failed run. Below is my only sendbackup*debug
 file, which is from the successful run.
 
 Now I'm completely confused.  This looks just like a failed run.
 I didn't think this ever worked for you.  Are you saying sometimes it
 does and sometimes it doesn't?
 
 Are you just doing this for testing?  Are you cleaning everything
 out between tests?  Maybe one of them did fail but you're seeing old
 information even when it now works?

What shows an error occurred?  That sendbackup*debug doesn't mention an
error or warning, the email afterwards looks friendly, and a backup did
occur (just not a complete one),  so i called it a successful run.  If
you see the format of the sendbackup*debug file as indicating an error,
though, you of course know better. 

I haven't done anymore Amanda tests since that pseudo-successful run
last Friday.  Since then i've been trying, with your help, to figure out
why it was not complete.  

I am not cleaning out everything between tests.  I don't know how to do
that or what that means.  

I know that that sendbackup*debug is my only one and is from the
successful run, because of its file date.  

I was trying to get Amanda working before moving on but i don't need
to.  Let's drop it.

thx anyway.
george