Re: amanda-2.5.1p3 ignores no-reuse

2008-08-21 Thread Jon LaBadie
On Thu, Aug 21, 2008 at 10:26:57AM +0700, Olivier Nicole wrote:
 Hello,
 
 I am setting up a new Amanda server.
 
 Using virtual tapes on USB disk, it seems to be fast enough (20 to 40
 MBps) depending on the hardware, the speed of the holding disks,
 etc. Faster than the dump, so no problem.
 
 
 The problem is the following:
 
 I have 3 USB disks for virtual tapes, and only one is connected at a
 given time, so in tapelist I marked the tapes that are not accessible
 with no-reuse. They cannot be used because the disk is not online.
 
 Despite, the report at the end of a dump mention that amanda will try
 to use these;
 
   These dumps were to tape CSIM-set-1-06.
   The next 5 tapes Amanda expects to use are: 5 new tapes.
   The next 5 new tapes already labelled are: CSIM-set-1-07, CSIM-set-1-08, 
   CSIM-set-1-09, CSIM-set-2-01, CSIM-set-2-02.
 
 The tapes CSIM-set-2-01, CSIM-set-2-02 are on a disk that is not
 online and they are marked no-reuse:
 
   0 CSIM-set-2-02 no-reuse
   0 CSIM-set-2-01 no-reuse
   0 CSIM-set-1-09 reuse
   0 CSIM-set-1-08 reuse
   0 CSIM-set-1-07 reuse
 
 Is that a feature?
 

I think you've hit an outlying situation.  One that is so
uncommon that it was not considered during design and coding.

Note that nothing that amanda says in the report are inaccurate.
It expects 5 new (labelled and previously unused) tapes.
Further, it peeks at the tapelist file and notes the next
five that match those criteria, labelled and unused.  I wonder
if the developers ever considered that a newly labelled tape
(one with a 0 for last date used) would also be marked no-reuse.

I realize I'm playing with semantics here, but would it be
wrong to use for the first time a tape marked no-reuse?
Maybe not as the first use is not a reuse.  ;)

Note also that amanda has not actually tried to use these
marked tapes.  It is just reporting current conditions.
You may unmark those no-reuse tapes before the next amdump.
Even if you don't, amanda will go further into the tapelist
and online available tapes looking for ones it can use.
Should it not find enough it will enter degraded mode and
backup to the holding disk without taping.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 12027 Creekbend Drive  (703) 787-0884
 Reston, VA  20194  (703) 787-0922 (fax)


Amanda on Macos X

2008-08-21 Thread Nouveaux Territoires

Hello,

I installed amanda on macos X.
I followed the instruction of this page :

Installation/OS Specific Notes/Installing Amanda on Mac OS X

All is ok.
I compiled the source and installed the program.

But, on leopard, what is the next step ?
In the documentation, there is this sentence :


Leopard

At least one user is successfully using Amanda on Leopard, though he  
is using SSH authentication, not BSD*. (I am testing with BSD, passed  
amcheck phase, will see how the backup goes tonight (08/20/2008))


Ok for the authentication but how do you run the amandad server ?
Like Tiger ?

thank you for your help


Julien



Syntax error in chg-disk

2008-08-21 Thread Olivier Nicole
Hi,

I am using chg-disk on Amanda 2.5.1p3 on FreeBSD and while I was
trying it by hand, I found a Bourne Sheel syntax error:

around the line 83, it should read:

   if test X$TAPE = X; then

With a single = instead of the == operator found in the script.

I am not sure it is an error in Amanda distribution or in the port
made for FreeBSD.

Best regards,

Olivier


Changer policy

2008-08-21 Thread Olivier Nicole
Hi,

I have a brand new Amanda server, that uses virtual tapes.

My virtual tapes are set on external hard disks, but I can only
physically connect one disk at a time.

I uses runtapes 5.

So I can end up in a situation where I have 2 vtapes left one a disk,
and where I must change disk in the middle of a dump.

I beleive this is close to the situation of a tape caroussel, where
one wants to reload the caroussel in the middle of a dump.

I'd like to know if the model bellow makes sense with Amanda, does it
break the general idea or not?

Will it work if I write a changer that would wait for manual change of
the disk? The dumps would finish to the holding disks and the taper
would wait for manual change of the disk before finishing to write on
the tape (wait would be several hours).

I see that amcheck physically tries to access the tapes, so in a
situation with 2 tapes left on a disk and 3 tapes from the new disk,
amcheck would request the user tou change disk, that is not really
necessary, is there any other command that is likely to access the
changer (beside the amdump/amflush and restore).

Is there a command to get the label of the tape loaded in the tape
device?

Does it exist a changer that allow the manual change of a caroussel,
so I don't have to redesign everything from scratch? (I mean the
Amanda phylosophy, not the exact way to load/eject a caroussel or
mout/unmout a disk).

Best regards,

Olivier


Re: Changer policy

2008-08-21 Thread Gerrit A. Smit -TI-
I use

tpchanger chg-disk# VTAPES the tape-changer glue script


#   This changer script is based on a directory structure like:
#   slot_root_dir -|
#  |- info
#  |- data - slot1
#  |- slot1
#  |- slot2
#  |- ...
#  |- slotn
#   where 'slot_root_dir' is the tapedev 'file:xxx' parameter and
#   'n' is the tapecycle parameter.
#   
#   To use this driver, just put the line 'tpchanger chg-disk' in
#   your amanda.conf.


Gerrit


Re: Syntax error in chg-disk

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 5:37 AM, Olivier Nicole [EMAIL PROTECTED] wrote:
 I am using chg-disk on Amanda 2.5.1p3 on FreeBSD and while I was
 trying it by hand, I found a Bourne Sheel syntax error:

Thanks for the report!

By the way, if you have any sway with the FreeBSD folks, please poke
them to upgrade their port at some point.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Changer policy

2008-08-21 Thread Olivier Nicole
Hi Gerrit,

 I use
 tpchanger chg-disk# VTAPES the tape-changer glue script

So do I, for the n first vtapes in the first disk, but chg-disk cannot
access the vtapes n+1 t0 2n that are on the second disk: this second
disk should be manually loaded first.

Olivier



Re: Changer policy

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 8:55 AM, Olivier Nicole [EMAIL PROTECTED] wrote:
 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).

I *think* that chg-manual will do what you want, perhaps with a little
bit of tweaking to recognize when vtapes are on the same disk.

This is a fairly common use-case, so if you're working against 2.6.0,
I'm sure a lot of other people would like to see your solution.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Changer policy

2008-08-21 Thread Jon LaBadie
On Thu, Aug 21, 2008 at 07:55:26PM +0700, Olivier Nicole wrote:
 Hi,
 
 I have a brand new Amanda server, that uses virtual tapes.
 
 My virtual tapes are set on external hard disks, but I can only
 physically connect one disk at a time.
 
 I uses runtapes 5.
 
 So I can end up in a situation where I have 2 vtapes left one a disk,
 and where I must change disk in the middle of a dump.
 
 I beleive this is close to the situation of a tape caroussel, where
 one wants to reload the caroussel in the middle of a dump.
 
 I'd like to know if the model bellow makes sense with Amanda, does it
 break the general idea or not?
 
 Will it work if I write a changer that would wait for manual change of
 the disk? The dumps would finish to the holding disks and the taper
 would wait for manual change of the disk before finishing to write on
 the tape (wait would be several hours).
 
 I see that amcheck physically tries to access the tapes, so in a
 situation with 2 tapes left on a disk and 3 tapes from the new disk,
 amcheck would request the user tou change disk, that is not really
 necessary, is there any other command that is likely to access the
 changer (beside the amdump/amflush and restore).

My setup is probably similar except I have 2 usb drives plus some space
on the hard disk for my vtapes.  However I don't typically unplug the
external drives.

My changer slots are actually symbolic links to the actual location
of the mounted vtapes.  If a drive were off line (or more frequently
in my case too full) amanda just looks for the next available vtape.
If none are available it finishes to the holding disk like you suggest.

I wonder if an modified changer script is even needed.  If you have
the auto flush parameter set in amanda.conf, the next time you run
amdump it will check the holding disk and begin flushing the old
dumps immediately.  I think this begins even while estimates are
being done.  So just bring online the other drive and let amanda
do its thing next amdump.

 
 Is there a command to get the label of the tape loaded in the tape
 device?

From memory, amtape ... show or current.
 
 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).
 

I was running an HP SureStore DDS3 changer for a long while.  It uses
a 6 tape magazine and I adapted to its size by dumping weekdays and
Sunday night for the weekend.  But I had 7 magazines of tapes and
never noted a changer script that automatically or manually tried to
deal with magazines/caroussels.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 12027 Creekbend Drive  (703) 787-0884
 Reston, VA  20194  (703) 787-0922 (fax)


Re: Amanda on Macos X

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 4:38 AM, Nouveaux Territoires
[EMAIL PROTECTED] wrote:
 Ok for the authentication but how do you run the amandad server ?
 Like Tiger ?

I don't have Leopard yet, so I don't know.  You should try it out, and
report your success on the wiki, or any problems here.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Changer policy

2008-08-21 Thread Ian Turner
Oliver,

The simple answer is to use chg-manual, which waits for operator intervention. 
You will have to adjust a symlink as well as the disk connections.

If it is possible to script the disk switch, you should be able to write a 
changer script that does what you want.

--Ian

On Thursday 21 August 2008 08:55:26 Olivier Nicole wrote:
 Hi,

 I have a brand new Amanda server, that uses virtual tapes.

 My virtual tapes are set on external hard disks, but I can only
 physically connect one disk at a time.

 I uses runtapes 5.

 So I can end up in a situation where I have 2 vtapes left one a disk,
 and where I must change disk in the middle of a dump.

 I beleive this is close to the situation of a tape caroussel, where
 one wants to reload the caroussel in the middle of a dump.

 I'd like to know if the model bellow makes sense with Amanda, does it
 break the general idea or not?

 Will it work if I write a changer that would wait for manual change of
 the disk? The dumps would finish to the holding disks and the taper
 would wait for manual change of the disk before finishing to write on
 the tape (wait would be several hours).

 I see that amcheck physically tries to access the tapes, so in a
 situation with 2 tapes left on a disk and 3 tapes from the new disk,
 amcheck would request the user tou change disk, that is not really
 necessary, is there any other command that is likely to access the
 changer (beside the amdump/amflush and restore).

 Is there a command to get the label of the tape loaded in the tape
 device?

 Does it exist a changer that allow the manual change of a caroussel,
 so I don't have to redesign everything from scratch? (I mean the
 Amanda phylosophy, not the exact way to load/eject a caroussel or
 mout/unmout a disk).

 Best regards,

 Olivier
-- 
Wiki for Amanda documentation: http://wiki.zmanda.com/


Re: Amanda on Macos X (fwd)

2008-08-21 Thread Yu Chen
Seems my first reply didn't get through, I am sending it again. Sorry if 
you get duplicates.


-- Forwarded message --
Date: Thu, 21 Aug 2008 10:00:06 -0400 (EDT)
From: Yu Chen [EMAIL PROTECTED]
To: Nouveaux Territoires [EMAIL PROTECTED]
Cc: Amanda user's group amanda-users@amanda.org
Subject: Re: Amanda on Macos X


I installed amanda on macos X.
I followed the instruction of this page :

Installation/OS Specific Notes/Installing Amanda on Mac OS X

All is ok.
I compiled the source and installed the program.

But, on leopard, what is the next step ?
In the documentation, there is this sentence :


Leopard

At least one user is successfully using Amanda on Leopard, though he is using 
SSH authentication, not BSD*. (I am testing with BSD, passed amcheck phase, 
will see how the backup goes tonight (08/20/2008))


Ok for the authentication but how do you run the amandad server ?
Like Tiger ?


First, you talking about amandad daemon or amanda server on Leopard?
For amandad daemon, you do the same as in Tiger, constructe the plist file, 
then using launchctl to start the daemon.
For amanda server on Leopard, I am not doing that, I compiled amanda without 
server on Leopard.


And just to report, my backup finished just fine. I will do a restore today, 
see if the backup really works. Then report back (probably on wiki too).


Chen



thank you for your help


Julien




===
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone:  (410)455-1728 (primary)
(410)455-6347 (secondary)
fax:(410)455-1174
email:  [EMAIL PROTECTED]
===


Re: Amanda on Macos X

2008-08-21 Thread Yu Chen

I installed amanda on macos X.
I followed the instruction of this page :

Installation/OS Specific Notes/Installing Amanda on Mac OS X

All is ok.
I compiled the source and installed the program.

But, on leopard, what is the next step ?
In the documentation, there is this sentence :


Leopard

At least one user is successfully using Amanda on Leopard, though he is using 
SSH authentication, not BSD*. (I am testing with BSD, passed amcheck phase, 
will see how the backup goes tonight (08/20/2008))


Ok for the authentication but how do you run the amandad server ?
Like Tiger ?


First, you talking about amandad daemon or amanda server on Leopard?
For amandad daemon, you do the same as in Tiger, constructe the plist 
file, then using launchctl to start the daemon.
For amanda server on Leopard, I am not doing that, I compiled amanda 
without server on Leopard.


And just to report, my backup finished just fine. I will do a restore 
today, see if the backup really works. Then report back (probably on wiki 
too).


Chen



thank you for your help


Julien




===
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone:  (410)455-1728 (primary)
(410)455-6347 (secondary)
fax:(410)455-1174
email:  [EMAIL PROTECTED]
===


Re: Amanda on Macos X

2008-08-21 Thread Nouveaux Territoires

Thank alo for your response

I used Launcctl to run the script.

When i taped on my server

$ amcheck saroumane

I obtained an error

Amanda Tape Server Host Check
-
Holding disk /dumps/amandatapes/saroumane: 166641 MB disk space  
available, using 166541 MB

slot 6: read label `saroumane-06', date `X'
NOTE: skipping tape-writable test
Tape saroumane-06 label ok
NOTE: host info dir /usr/local/amanda/etc/amanda/saroumane/curinfo/ 
saroumane does not exist

NOTE: it will be created on the next run.
NOTE: index dir /usr/local/amanda/etc/amanda/saroumane/index/saroumane  
does not exist

NOTE: it will be created on the next run.
Server check took 0.137 seconds
Host key verification failed.

Amanda Backup Client Hosts Check

WARNING: saroumane: selfcheck request failed: EOF on read from  
saroumane.nt.fr

Client check: 1 host checked in 0.094 seconds, 1 problem found

(brought to you by Amanda 2.5.1p3)

Why 

If i taped
-bash-3.1$ ssh [EMAIL PROTECTED]
Last login: Thu Aug 21 17:12:28 2008 from backup
saroumane:~ amanda$

I connedted without problems and without password.

But by amcheck, i have this error : Host key verification failed.



Thanks,


Julien




Le 21 août 08 à 16:00, Yu Chen a écrit :


I installed amanda on macos X.
I followed the instruction of this page :

Installation/OS Specific Notes/Installing Amanda on Mac OS X

All is ok.
I compiled the source and installed the program.

But, on leopard, what is the next step ?
In the documentation, there is this sentence :


Leopard

At least one user is successfully using Amanda on Leopard, though  
he is using SSH authentication, not BSD*. (I am testing with BSD,  
passed amcheck phase, will see how the backup goes tonight  
(08/20/2008))


Ok for the authentication but how do you run the amandad server ?
Like Tiger ?


First, you talking about amandad daemon or amanda server on Leopard?
For amandad daemon, you do the same as in Tiger, constructe the  
plist file, then using launchctl to start the daemon.
For amanda server on Leopard, I am not doing that, I compiled amanda  
without server on Leopard.


And just to report, my backup finished just fine. I will do a  
restore today, see if the backup really works. Then report back  
(probably on wiki too).


Chen



thank you for your help


Julien




===
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone:  (410)455-1728 (primary)
(410)455-6347 (secondary)
fax:(410)455-1174
email:  [EMAIL PROTECTED]
===





Problem Backing Up NFS SmartStor

2008-08-21 Thread Steven Backus
  I have a Promise SmartStor, a network drive.  It's NFS mounted on
a Red Hat server.  Sometimes it gets backed up, other times I get:

  whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [dumper returned FAILED]
  whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [data timeout]
  whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [cannot read header: got 0 
instead of 32768]
  whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [too many dumper retry: 
[request failed: timeout waiting for REP]]

This file system is big and I've increased my timeouts to:

etimeout10
dtimeout3600
ctimeout60

but it didn't help.  I'm running amanda 2.5.2p1.  Any ideas?

Thanks,
  Steve
-- 
Steven J. BackusComputer Specialist
University of Utah  E-Mail:  [EMAIL PROTECTED]
Genetic EpidemiologyAlternate:  [EMAIL PROTECTED]
391 Chipeta Way -- Suite D  Office:  801.587.9308
Salt Lake City, UT 84108-1266   http://www.math.utah.edu/~backus


Re: amanda-2.5.1p3 ignores no-reuse

2008-08-21 Thread Jean-Louis Martineau
As Jon said, it's a problem with new tape marked as no-reuse, only the 
report is bad, amanda will works as expected.


The attached patch fix 'amadmin CONF tape' and amreport.
I don't know if the patch apply to 2.5.1p3.

Jean-Louis

Olivier Nicole wrote:

Hello,

I am setting up a new Amanda server.

Using virtual tapes on USB disk, it seems to be fast enough (20 to 40
MBps) depending on the hardware, the speed of the holding disks,
etc. Faster than the dump, so no problem.

I am currently hit by the IPv6 only problem on the client side, but
that one I identified and hope to solve it by reinstalling amanda for
IPv4 only.

The problem is the following:

I have 3 USB disks for virtual tapes, and only one is connected at a
given time, so in tapelist I marked the tapes that are not accessible
with no-reuse. They cannot be used because the disk is not online.

Despite, the report at the end of a dump mention that amanda will try
to use these;

  These dumps were to tape CSIM-set-1-06.
  The next 5 tapes Amanda expects to use are: 5 new tapes.
  The next 5 new tapes already labelled are: CSIM-set-1-07, CSIM-set-1-08, 
  CSIM-set-1-09, CSIM-set-2-01, CSIM-set-2-02.


The tapes CSIM-set-2-01, CSIM-set-2-02 are on a disk that is not
online and they are marked no-reuse:

  0 CSIM-set-2-02 no-reuse
  0 CSIM-set-2-01 no-reuse
  0 CSIM-set-1-09 reuse
  0 CSIM-set-1-08 reuse
  0 CSIM-set-1-07 reuse

Is that a feature?

Best regards,

Olivier
  


Index: amadmin.c
===
--- amadmin.c	(revision 12873)
+++ amadmin.c	(working copy)
@@ -805,16 +805,29 @@
 	tp = lookup_last_reusable_tape(i + 1);
 	}
 }
+
+/* Find latest reusable new tape */
 lasttp = lookup_tapepos(lookup_nb_tape());
+while (lasttp  lasttp-reuse == 0)
+	lasttp = lasttp-prev;
+
 i = runtapes;
 if(lasttp  i  0  strcmp(lasttp-datestamp,0) == 0) {
 	int c = 0;
+	/* find how many new tape are reusable */
 	while(lasttp  i  0  strcmp(lasttp-datestamp,0) == 0) {
-	c++;
+	if (lasttp-reuse) {
+	c++;
+	i--;
+	}
 	lasttp = lasttp-prev;
-	i--;
 	}
+
+	/* Find latest reusable new tape */
 	lasttp = lookup_tapepos(lookup_nb_tape());
+	while (lasttp  lasttp-reuse == 0)
+	lasttp = lasttp-prev;
+
 	i = runtapes;
 	if(c == 1) {
 	g_printf(_(The next new tape already labelled is: %s.\n),
@@ -826,9 +839,11 @@
 	lasttp = lasttp-prev;
 	c--;
 	while(lasttp  c  0  strcmp(lasttp-datestamp,0) == 0) {
-		g_printf(, %s, lasttp-label);
+		if (lasttp-reuse) {
+		g_printf(, %s, lasttp-label);
+		c--;
+		}
 		lasttp = lasttp-prev;
-		c--;
 	}
 	g_printf(.\n);
 	}
Index: reporter.c
===
--- reporter.c	(revision 12873)
+++ reporter.c	(working copy)
@@ -1103,16 +1103,22 @@
 }
 fputs(.\n, mailf);
 
+/* Find latest reusable new tape */
 lasttp = lookup_tapepos(lookup_nb_tape());
+while (lasttp  lasttp-reuse == 0)
+	lasttp = lasttp-prev;
+
 run_tapes = getconf_int(CNF_RUNTAPES);
 if(lasttp  run_tapes  0  strcmp(lasttp-datestamp,0) == 0) {
 	int c = 0;
 	iter = lasttp;
 	/* count the number of tapes we *actually* used */
 	while(iter  run_tapes  0  strcmp(iter-datestamp,0) == 0) {
-	c++;
+	if (iter-reuse) {
+		c++;
+		run_tapes--;
+	}
 	iter = iter-prev;
-	run_tapes--;
 	}
 	if(c == 1) {
 	g_fprintf(mailf, _(The next new tape already labelled is: %s.\n),
@@ -1124,9 +1130,11 @@
 	iter = lasttp-prev;
 	c--;
 	while(iter  c  0  strcmp(iter-datestamp,0) == 0) {
-		g_fprintf(mailf, , %s, iter-label);
+		if (iter-reuse) {
+		g_fprintf(mailf, , %s, iter-label);
+		c--;
+		}
 		iter = iter-prev;
-		c--;
 	}
 	g_fprintf(mailf, .\n);
 	}


Re: Amanda on Macos X

2008-08-21 Thread Nouveaux Territoires

yes i followed the instruction of this page.

This system (authentification with SSH) is oK on a Linux fedora client.

But this client is Macos X leopard, i have the problem !!!

With the user amanda on the server, i write

ssh [EMAIL PROTECTED]

In this case, it's ok !!

But with amacheck, i have this problem

On the server, in the /tmp/amanda/server/saroumane, i have this :

amcheck: debug 1 pid 18120 ruid 33 euid 0: start at Thu Aug 21  
21:49:19 2008
amcheck: debug 1 pid 18120 ruid 33 euid 33: rename at Thu Aug 21  
21:49:19 2008

security_getdriver(name=ssh) returns 0x2b122b60
security_handleinit(handle=0x61f790, driver=0x2b122b60 (SSH))
security_streaminit(stream=0x620310, driver=0x2b122b60 (SSH))
changer_query: changer return was 6 1
changer_query: searchable = 0
changer_find: looking for NULL changer is searchable = 0
security_stream_seterr(0x620310, SOCKET_EOF)
security_seterror(handle=0x61f790, driver=0x2b122b60 (SSH)  
error=EOF on read from saroumane.nt.fr)

security_close(handle=0x61f790, driver=0x2b122b60 (SSH))
security_stream_close(0x620310)
amcheck: pid 18120 finish time Thu Aug 21 21:49:19 2008


But on the maxos X Leopard, idon't find any logs
Why 



thanks,


julien


Le 21 août 08 à 17:40, Yu Chen a écrit :


Thank alo for your response

I used Launcctl to run the script.

When i taped on my server

$ amcheck saroumane

I obtained an error

Amanda Tape Server Host Check
-
Holding disk /dumps/amandatapes/saroumane: 166641 MB disk space  
available, using 166541 MB

slot 6: read label `saroumane-06', date `X'
NOTE: skipping tape-writable test
Tape saroumane-06 label ok
NOTE: host info dir /usr/local/amanda/etc/amanda/saroumane/curinfo/ 
saroumane does not exist

NOTE: it will be created on the next run.
NOTE: index dir /usr/local/amanda/etc/amanda/saroumane/index/ 
saroumane does not exist

NOTE: it will be created on the next run.
Server check took 0.137 seconds
Host key verification failed.

Amanda Backup Client Hosts Check

WARNING: saroumane: selfcheck request failed: EOF on read from  
saroumane.nt.fr

Client check: 1 host checked in 0.094 seconds, 1 problem found

(brought to you by Amanda 2.5.1p3)

Why 

If i taped
-bash-3.1$ ssh [EMAIL PROTECTED]
Last login: Thu Aug 21 17:12:28 2008 from backup
saroumane:~ amanda$

I connedted without problems and without password.

But by amcheck, i have this error : Host key verification failed.


But this error seems from the server check, not client check, right?
For client error, check /tmp/amanda directory on the client to see  
what exactly happened.


So I am assuming you are using SSH authention. I am not familar with  
it. But just to check, that you followed the instruction at http://wiki.zmanda.com/index.php/How_To:Set_up_transport_encryption_with_SSH 


right?






Thanks,


Julien




Le 21 août 08 à 16:00, Yu Chen a écrit :


I installed amanda on macos X.
I followed the instruction of this page :
Installation/OS Specific Notes/Installing Amanda on Mac OS X
All is ok.
I compiled the source and installed the program.
But, on leopard, what is the next step ?
In the documentation, there is this sentence :
Leopard
At least one user is successfully using Amanda on Leopard, though  
he is using SSH authentication, not BSD*. (I am testing with BSD,  
passed amcheck phase, will see how the backup goes tonight  
(08/20/2008))

Ok for the authentication but how do you run the amandad server ?
Like Tiger ?

First, you talking about amandad daemon or amanda server on Leopard?
For amandad daemon, you do the same as in Tiger, constructe the  
plist file, then using launchctl to start the daemon.
For amanda server on Leopard, I am not doing that, I compiled  
amanda without server on Leopard.
And just to report, my backup finished just fine. I will do a  
restore today, see if the backup really works. Then report back  
(probably on wiki too).

Chen

thank you for your help
Julien

===
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250
phone:  (410)455-1728 (primary)
(410)455-6347 (secondary)
fax:(410)455-1174
email:  [EMAIL PROTECTED]
===





===
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone:  (410)455-1728 (primary)
(410)455-6347 (secondary)
fax:(410)455-1174
email:  [EMAIL PROTECTED]
===




multiple amdumps

2008-08-21 Thread aminukapon
Hello all,


I would like to find out if i could run amdump on several DailySet at the same 
time. If it is possible ,how should I go about doing this

Thanks




  


Re: multiple amdumps

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 1:33 PM, aminukapon [EMAIL PROTECTED] wrote:
 I would like to find out if i could run amdump on several DailySet at the 
 same time. If it is possible ,how should I go about doing this

I wouldn't recommend it.  Why do you want to do this?

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Amanda on Macos X

2008-08-21 Thread Telsin


On Aug 21, 2008, at 3:13 PM, Nouveaux Territoires wrote:


ssh [EMAIL PROTECTED]

In this case, it's ok !!

But with amacheck, i have this problem

On the server, in the /tmp/amanda/server/saroumane, i have this :

security_stream_seterr(0x620310, SOCKET_EOF)
security_seterror(handle=0x61f790, driver=0x2b122b60 (SSH)  
error=EOF on read from saroumane.nt.fr)


'ssh [EMAIL PROTECTED]' and 'ssh [EMAIL PROTECTED]' are NOT the  
same, at least as far as ssh is concerned.


Try 'ssh [EMAIL PROTECTED]' from your amanda user on the server  
and see if that works, or if it still needs to add the host key for  
the fqdn.


   -Darrell


Re: multiple amdumps

2008-08-21 Thread Dustin J. Mitchell
(please reply to the list)

On Thu, Aug 21, 2008 at 6:50 PM, aminukapon [EMAIL PROTECTED] wrote:
 I have 2 main directories needed to be backed up and each has several sub 
 directoires each sub directories should be easily recovered if I used 
 different Dailysets.

You should just add each directory as a separate DLE.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Problem Backing Up NFS SmartStor

2008-08-21 Thread Olivier Nicole
Hi,

   I have a Promise SmartStor, a network drive.  It's NFS mounted on
 a Red Hat server.  Sometimes it gets backed up, other times I get:
 
   whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [dumper returned FAILED]
   whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [data timeout]
   whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [cannot read header: got 
 0 instead of 32768]
   whimsy.med.utah.edu/sstore/9gb  lev 0  FAILED [too many dumper retry: 
 [request failed: timeout waiting for REP]]

Just a wild guess, but a Google search yesterday on cannot read
header: got 0 instead of  lead me to problems with IPv6/IPv4.

I recompiled Amanda to use only IPv4 (./configure --without-ipv6) and
the problem is gone.

To further diagnoze the problem, look at the debug files, you would
see that one side of Amanda opened a socket on IPv6:

   amandad.20080821100912.debug:amandad: time 2.679: stream_server: waiting for 
connection: ::.51629

while the other side try to connect on IPv4:

   dumper.20080821100912.debug:dumper: connected to 10.41.170.14.51629

I used information from
http://archive.netbsd.se/?ml=pkgsrc-usersa=2008-02t=6414321

As you don't mention anything about the operating system of the server
and the client, I don't know if that helps. I am running FreeBSD 6.3
on both sides.

Best regards,

Olivier



What tapedev is used by Amanda

2008-08-21 Thread Olivier Nicole
Hi,

Does Amanda use the tapedev defined in amanda.conf or the tapedev
returned by the changer?

If Amanda uses the tapedev returned by the changer, I think that
chg-disk could be rewritten to avoid using symlinks, returning the
directory of the slot each time, and so could work with file systems
that does not implement symlinks (NTFS/FAT32 USB disks).

Best regards,

Olivier


Re: What tapedev is used by Amanda

2008-08-21 Thread Dustin J. Mitchell
On Thu, Aug 21, 2008 at 10:57 PM, Olivier Nicole [EMAIL PROTECTED] wrote:
 Does Amanda use the tapedev defined in amanda.conf or the tapedev
 returned by the changer?

That returned by the changer.  What makes it confusing is that some
changers return the tapedev defined in amanda.conf :)

 If Amanda uses the tapedev returned by the changer, I think that
 chg-disk could be rewritten to avoid using symlinks, returning the
 directory of the slot each time, and so could work with file systems
 that does not implement symlinks (NTFS/FAT32 USB disks).

Yep, sounds like a good plan.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com