Re: problems using amrecover with changer

2009-07-10 Thread Andreas Kuntzagk

Jean-Louis Martineau wrote:

Andreas Kuntzagk wrote:

Hi,

I'm trying to do a (test) recovery using our SL24 changer.
I set amrecover_changer and use setdevice but still get an error 
message when trying to extract files.
Could the reason be that I did the dumps before setting 
amrecover_changer ?

no.

Look for message in the amidxtaped.*.debug file on the tape server.


Ok, this is probably the reason:

1247236826.477475: amidxtaped: changer:  error Fatal error from 
changer script: none Could not run mtx binary at 'mtx'


The mtx binary is at /opt/csw/sbin/mtx so it's probably not in the PATH 
used by the recovery. But it is in the PATH of the amandabackup user.

So where should I set this?



Jean-Louis


Here is my amanda.conf:
==
logdir   /etc/opt/amanda/daily/log# log directory
infofile /etc/opt/amanda/daily/curinfo# database filename
indexdir /etc/opt/amanda/daily/index  # index directory
tapelist /etc/opt/amanda/daily/tapelist   # list of used tapes

usetimestamps 1
tapecycle 18
runtapes 3
#send-amreport-on never

amrecover_changer changer

define tapetype HP-LTO4 {
   comment LTO4 Tapes, values produced by amtapetype, Compression Off
   length 772096 mbytes
   filemark 0 kbytes
   speed 100612 kps
}

tapetype HP-LTO4

tpchanger chg-zd-mtx
changerdev /dev/scsi/changer/c8t500110A00094F7C0d0
tapedev tape:/dev/rmt/0
changerfile /etc/opt/amanda/daily/changer.conf

holdingdisk zfs {
directory /data/backup/daily
}

define dumptype global {
record yes
index yes
auth bsdtcp
program GNUTAR
}


and here the amrecover session:


amrecover setdevice -h fileserver07 changer
Using tape changer from server fileserver07.
amrecover extract
Extract list empty - No files to extract!
amrecover add proteome
Added dir /proteome/ at date 2009-06-25-13-49-29
Added dir /proteome/ at date 2009-06-30-10-01-43
Added dir /proteome/ at date 2009-07-02-10-48-40
Added dir /proteome/ at date 2009-07-03-10-51-17
amrecover extract

Extracting files using tape drive changer on host fileserver07.
The following tapes are needed: test019
test021
test004
test005

Restoring files into directory /data/test
Continue [?/Y/n]?

Extracting files using tape drive changer on host fileserver07.
Load tape test019 now
Continue [?/Y/n/s/d]?
Volume labeled 'test019' not found.
Load tape test019 now
Continue [?/Y/n/d]?

==

regards, Andreas






Re: problems using amrecover with changer

2009-07-10 Thread Jean-Louis Martineau

Edit chg-lib.sh and set MTX to the full path:
MTX=/opt/csw/sbin/mtx

Jean-Louis

Andreas Kuntzagk wrote:

Jean-Louis Martineau wrote:

Andreas Kuntzagk wrote:

Hi,

I'm trying to do a (test) recovery using our SL24 changer.
I set amrecover_changer and use setdevice but still get an error 
message when trying to extract files.
Could the reason be that I did the dumps before setting 
amrecover_changer ?

no.

Look for message in the amidxtaped.*.debug file on the tape server.


Ok, this is probably the reason:

1247236826.477475: amidxtaped: changer:  error Fatal error from 
changer script: none Could not run mtx binary at 'mtx'


The mtx binary is at /opt/csw/sbin/mtx so it's probably not in the 
PATH used by the recovery. But it is in the PATH of the amandabackup 
user.

So where should I set this?



Jean-Louis


Here is my amanda.conf:
==
logdir   /etc/opt/amanda/daily/log# log directory
infofile /etc/opt/amanda/daily/curinfo# database filename
indexdir /etc/opt/amanda/daily/index  # index directory
tapelist /etc/opt/amanda/daily/tapelist   # list of used tapes

usetimestamps 1
tapecycle 18
runtapes 3
#send-amreport-on never

amrecover_changer changer

define tapetype HP-LTO4 {
   comment LTO4 Tapes, values produced by amtapetype, Compression Off
   length 772096 mbytes
   filemark 0 kbytes
   speed 100612 kps
}

tapetype HP-LTO4

tpchanger chg-zd-mtx
changerdev /dev/scsi/changer/c8t500110A00094F7C0d0
tapedev tape:/dev/rmt/0
changerfile /etc/opt/amanda/daily/changer.conf

holdingdisk zfs {
directory /data/backup/daily
}

define dumptype global {
record yes
index yes
auth bsdtcp
program GNUTAR
}


and here the amrecover session:


amrecover setdevice -h fileserver07 changer
Using tape changer from server fileserver07.
amrecover extract
Extract list empty - No files to extract!
amrecover add proteome
Added dir /proteome/ at date 2009-06-25-13-49-29
Added dir /proteome/ at date 2009-06-30-10-01-43
Added dir /proteome/ at date 2009-07-02-10-48-40
Added dir /proteome/ at date 2009-07-03-10-51-17
amrecover extract

Extracting files using tape drive changer on host fileserver07.
The following tapes are needed: test019
test021
test004
test005

Restoring files into directory /data/test
Continue [?/Y/n]?

Extracting files using tape drive changer on host fileserver07.
Load tape test019 now
Continue [?/Y/n/s/d]?
Volume labeled 'test019' not found.
Load tape test019 now
Continue [?/Y/n/d]?

==

regards, Andreas








Re: problems using amrecover with changer

2009-07-10 Thread Jean-Louis Martineau

Andreas Kuntzagk wrote:

Hi,

I'm trying to do a (test) recovery using our SL24 changer.
I set amrecover_changer and use setdevice but still get an error 
message when trying to extract files.
Could the reason be that I did the dumps before setting 
amrecover_changer ?

no.

Look for message in the amidxtaped.*.debug file on the tape server.

Jean-Louis


Here is my amanda.conf:
==
logdir   /etc/opt/amanda/daily/log# log directory
infofile /etc/opt/amanda/daily/curinfo# database filename
indexdir /etc/opt/amanda/daily/index  # index directory
tapelist /etc/opt/amanda/daily/tapelist   # list of used tapes

usetimestamps 1
tapecycle 18
runtapes 3
#send-amreport-on never

amrecover_changer changer

define tapetype HP-LTO4 {
   comment LTO4 Tapes, values produced by amtapetype, Compression Off
   length 772096 mbytes
   filemark 0 kbytes
   speed 100612 kps
}

tapetype HP-LTO4

tpchanger chg-zd-mtx
changerdev /dev/scsi/changer/c8t500110A00094F7C0d0
tapedev tape:/dev/rmt/0
changerfile /etc/opt/amanda/daily/changer.conf

holdingdisk zfs {
directory /data/backup/daily
}

define dumptype global {
record yes
index yes
auth bsdtcp
program GNUTAR
}


and here the amrecover session:


amrecover setdevice -h fileserver07 changer
Using tape changer from server fileserver07.
amrecover extract
Extract list empty - No files to extract!
amrecover add proteome
Added dir /proteome/ at date 2009-06-25-13-49-29
Added dir /proteome/ at date 2009-06-30-10-01-43
Added dir /proteome/ at date 2009-07-02-10-48-40
Added dir /proteome/ at date 2009-07-03-10-51-17
amrecover extract

Extracting files using tape drive changer on host fileserver07.
The following tapes are needed: test019
test021
test004
test005

Restoring files into directory /data/test
Continue [?/Y/n]?

Extracting files using tape drive changer on host fileserver07.
Load tape test019 now
Continue [?/Y/n/s/d]?
Volume labeled 'test019' not found.
Load tape test019 now
Continue [?/Y/n/d]?

==

regards, Andreas




Re: Problems with amrecover in 2.4.5p1

2006-02-21 Thread Paul Bijnens

On 2006-02-21 09:25, Stephen Carville wrote:
My attempt to restore files with amrecover keep failing since I upgraded 
to 2.4.5.  The output in amidxtaped.debug looks like:


amidxtaped: debug 1 pid 14962 ruid 250 euid 250: start at Mon Feb 20 

[...]

amrestore: could not open /dev/ait2: Permission denied
amidxtaped: time 0.004: amrestore terminated normally with status: 2
amidxtaped: time 0.004: rewinding tape ...
amidxtaped: time 0.004: tape_rewind: tape open: /dev/ait2: Permission 
denied

amidxtaped: time 0.005: pid 14962 finish time Mon Feb 20 20:33:06 2006


My first question then is, what are the permissions of /dev/ait2,
and what are the user/group you are using for starting amidxtaped in
(x)inetd.




This makes no sense to me since I was able to recover the files using 
amrestore on the server.


amrestore runs as root, but amidxtaped runs as amanda usually.
If the permissions of /dev/ait2 are group readable, maybe you need
to add groups = yes in xinetd.conf to enable the additional groups
that user amanda is in.


--
Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: Problems with amrecover in 2.4.5p1

2006-02-21 Thread Stephen Carville

Paul Bijnens wrote:

On 2006-02-21 09:25, Stephen Carville wrote:

My attempt to restore files with amrecover keep failing since I 
upgraded to 2.4.5.  The output in amidxtaped.debug looks like:


amidxtaped: debug 1 pid 14962 ruid 250 euid 250: start at Mon Feb 20 


[...]


amrestore: could not open /dev/ait2: Permission denied
amidxtaped: time 0.004: amrestore terminated normally with status: 2
amidxtaped: time 0.004: rewinding tape ...
amidxtaped: time 0.004: tape_rewind: tape open: /dev/ait2: Permission 
denied

amidxtaped: time 0.005: pid 14962 finish time Mon Feb 20 20:33:06 2006



My first question then is, what are the permissions of /dev/ait2,
and what are the user/group you are using for starting amidxtaped in
(x)inetd.


Sound of palm slapping forhead...That was it.

/dev/ait2 is a symlink to /dev/nst0.  I checked the old server and the 
permissions there were:


crw-rw-r--1 root disk   9, 128 Aug 30  2001 /dev/nst0

On the new server:

crw-rw  1 root disk 9, 128 Feb 19 11:53 /dev/nst0

Once I added the global read, amrecover worked again.  I don't know how 
many time I looked at those permissions wihtseeing the problem.


Thanks

--
Stephen Carville -- polluting the ranks of skeptics since 1995.
---
Government is actually the worst failure of civilized man. There has 
never been a really good one, and even those that are most tolerable are 
arbitrary, cruel, grasping and unintelligent.

 -- H. L. Mencken


Re: Problems with amrecover, no error messages

2004-11-22 Thread Jon LaBadie
On Mon, Nov 22, 2004 at 11:17:27AM +0100, Sylvia Gelman wrote:
 Hi,
 
 I had similar Problems to Toralf Lund (13.10.2004), after setting chunksize 
 to 1GB it seems ok and I didn´t get anymore the following error messages:
 
 invalid sparse archive member
 tar: Skipping to next header
 
 But unfortunatly I can´t recover any file and I don´t get any error 
 messages. Really strange ...
 Hope someone can help. Please ask if you need more details.
 
 Thanks for any help
 
 Sylvia
 
 P.S. By the way what means the WARNING: not on root of selected filesystem, 
 check man-page! ?
 
 client2:/var/lib/mysql # /usr/sbin/amrecover bac -s srv -t srv -d 
 /dev/rmt/0n
 AMRECOVER Version 2.4.4p1. Contacting server on srv ...
 220 srv AMANDA index server (2.4.4p3) ready.
 200 Access OK
 Setting restore date to today (2004-11-22)
 200 Working date set to 2004-11-22.
 Scanning /export/opt/hold...
 Scanning /hold...
 200 Config set to bac.
 200 Dump host set to client2.
 Trying disk /var ...
 $CWD '/var/lib/mysql' is on disk '/var' mounted at '/var'.
 200 Disk set to /var.
 /var/lib/mysql
 WARNING: not on root of selected filesystem, check man-page!
 amrecover setdate 2004-11-21
 200 Working date set to 2004-11-21.
 amrecover sethost client2
 200 Dump host set to client2.
 amrecover setdisk /var
 200 Disk set to /var.
 amrecover cd lib/mysql
 /var/lib/mysql
 amrecover add fulldump.sql.040930
 Added /lib/mysql/fulldump.sql.040930
 amrecover lpwd
 /var/lib/mysql
 amrecover extract
 
 Extracting files using tape drive /dev/rmt/0n on host srv.
 The following tapes are needed: bac-012
 
 Restoring files into directory /var/lib/mysql
 Continue [?/Y/n]? Y
 
 Extracting files using tape drive /dev/rmt/0n on host srv.
 Load tape bac-012 now
 Continue [?/Y/n/s/t]? Y
 ./lib/mysql/fulldump.sql.040930
 amrecover quit
 200 Good bye.
 
 client2: more /tmp/amanda/amrecover.20041122104426.debug
 -snip-
 cd_glob (lib/mysql) - ^lib/mysql$
 add_dir_list_item: Adding 2004-11-21 0 bac-012 5 /lib/mysql/.
 add_dir_list_item: Adding 2004-11-21 0 bac-012 5 /lib/mysql/demo/
 add_dir_list_item: Adding 2004-11-21 0 bac-012 5 
 /lib/mysql/fulldump.sql
 add_dir_list_item: Adding 2004-11-21 0 bac-012 5 
 /lib/mysql/fulldump.sql.040930
 -snip-
 add_glob (fulldump.sql.040930) - ^fulldump\.sql\.040930$
 add_file: Looking for fulldump\.sql\.040930[/]*$
 add_file: Converted path=fulldump\.sql\.040930[/]*$ to 
 path_on_disk=\/lib\/mysql/fulldump\.sql\.040930[/]*$
 add_file: Pondering ditem-path=/lib/mysql/.
 add_file: Pondering ditem-path=/lib/mysql/demo/
 add_file: Pondering ditem-path=/lib/mysql/fulldump.sql
 add_file: Pondering ditem-path=/lib/mysql/fulldump.sql.040930
 add_file: (Successful) Added /lib/mysql/fulldump.sql.040930
 -snip-
 amrecover: stream_client_privileged: connected to 130.83.28.5.10083
 amrecover: stream_client_privileged: our side is 0.0.0.0.563
 amrecover: try_socksize: receive buffer size is 65536
 Exec'ing /bin/tar with arguments:
 tar
 -xpGvf
 -
 ./lib/mysql/fulldump.sql.040930
 amrecover: pid 15478 finish time Mon Nov 22 10:54:13 2004
 

Sorry for not chopping things down.
It looks to me like things worked as they should
but that your expectations were not accurate.

Suppose I have a disk-list entry (DLE) of /foo/bar,
the bar directory is the root of my DLE
(amrestore calls it a filesystem).

Suppose I want to recover a file /foo/bar/proj/abc/target,
that file gets backed up as ./proj/abc/target relative
to the root of my DLE.

However, it comes back from the recovery relative to
WHATEVER directory you run amrecover from.  I typically
run amrecover from a newly created directory, such as
/tmp/recover.  In that case, the file will recover to
/tmp/recover/proj/abc/target, not under /foo/bar.  If
I really wanted it back in the original place I would
have to run amrecover from /foo/bar.  I don't like to
do that because a human error might trash other things.
I like to recover first, then copy to real destination.

I looks like you ran amrecover from the mysql directory:

 client2:/var/lib/mysql # /usr/sbin/amrecover bac -s srv -t srv -d 

But your DLE was /var:

 Trying disk /var ...
 $CWD '/var/lib/mysql' is on disk '/var' mounted at '/var'.
 200 Disk set to /var.
 /var/lib/mysql
 WARNING: not on root of selected filesystem, check man-page!

Thus, you were not at the root of the selected DLE:

Then you asked to recover /var/lib/mysql/fulldump.sql.040930

 amrecover add fulldump.sql.040930

And it seems to have been recovered:

 Continue [?/Y/n/s/t]? Y
 ./lib/mysql/fulldump.sql.040930

But, because you were not in /var, but in /var/lib/mysql,
it probably came back as /var/lib/mysql/lib/mysql/fulldump.sql.040930.
  ^^^

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: Problems with amrecover, no error messages

2004-11-22 Thread Sylvia Gelman
Hi Jon,
first of all, many thanks for your answer. I was so confused that I even didn´t try a 
stupid find over the maschine. Ok, ... I found the file. My error in reasoning was that I 
thought I can change in the directory where to recover to after running amrecover with lcd.

Thank you very much for your help!
Sylvia
Sorry for not chopping things down.
It looks to me like things worked as they should
but that your expectations were not accurate.
Suppose I have a disk-list entry (DLE) of /foo/bar,
the bar directory is the root of my DLE
(amrestore calls it a filesystem).
Suppose I want to recover a file /foo/bar/proj/abc/target,
that file gets backed up as ./proj/abc/target relative
to the root of my DLE.
However, it comes back from the recovery relative to
WHATEVER directory you run amrecover from.  I typically
run amrecover from a newly created directory, such as
/tmp/recover.  In that case, the file will recover to
/tmp/recover/proj/abc/target, not under /foo/bar.  If
I really wanted it back in the original place I would
have to run amrecover from /foo/bar.  I don't like to
do that because a human error might trash other things.
I like to recover first, then copy to real destination.
I looks like you ran amrecover from the mysql directory:

client2:/var/lib/mysql # /usr/sbin/amrecover bac -s srv -t srv -d 

But your DLE was /var:

Trying disk /var ...
$CWD '/var/lib/mysql' is on disk '/var' mounted at '/var'.
200 Disk set to /var.
/var/lib/mysql
WARNING: not on root of selected filesystem, check man-page!

Thus, you were not at the root of the selected DLE:
Then you asked to recover /var/lib/mysql/fulldump.sql.040930

amrecover add fulldump.sql.040930

And it seems to have been recovered:

Continue [?/Y/n/s/t]? Y
./lib/mysql/fulldump.sql.040930

But, because you were not in /var, but in /var/lib/mysql,
it probably came back as /var/lib/mysql/lib/mysql/fulldump.sql.040930.
  ^^^
--
Sylvia Gelman   Telefon: 06151-16-5261
TU-DarmstadtTelefax: 06151-16-2507
Institut fuer Automatisierungstechnik - IAT
FG Regelungstheorie und Robotik
Raum S3|10 529  Email:[EMAIL PROTECTED]
Landgraf-Georg-Str. 4   Systemadministratorin
64283 Darmstadt


Re: Problems using amrecover

2004-05-27 Thread Paul Bijnens
Thorsten Bremer wrote:
schatten:/etc# amrecover Weekly
AMRECOVER Version 2.4.2p2. Contacting server on localhost ...
220 schatten AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2004-05-27)
200 Working date set to 2004-05-27.
200 Working date set to 2004-05-27.
amrecover: Unexpected server end of file
Both server and client are on the same machine, a normal backup is
going without any problem. As amrecover said, everything is
localhost :-)
I found this note in the FAQ:
http://amanda.sourceforge.net/fom-serve/cache/173.html
I tried all in there, I can ping to and from localhost :-) and
nslookup tell me, that localhost is really 127.0.0.1 and vice versa
:-) Because a normal backup is working, I think that access-rights and
so on must be correct.
You didn't try enough:
The FAQ says:
CAUSE: In UNIX / Windows mixed environments could happen that the DNS
and WINS become misaligned.
If this happens, the Reverse Lookup that Amanda Server performs at every
Client connection simply fails and the connection does not establish
returning the error Unexpected server end of file.
Your localhost is actually called schatten, and I guess that a
dns lookup of schatten does not result in localhost, nor in 127.0.0.1.
Don't use localhost in disklist.  It will bit you.
If you don't believe me, just just got bitten...
--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: Problems using amrecover

2004-05-27 Thread Thorsten Bremer
Moin Paul,

 Your localhost is actually called schatten, and I guess that a
 dns lookup of schatten does not result in localhost, nor in 127.0.0.1.

Hmm... you're right :-)

 Don't use localhost in disklist.  It will bit you.
 If you don't believe me, just just got bitten...

OK, I begin to understand... Any chance to resolve this situation
here?

I tried to re-manage all here: My domain at home is called magnus
(instead of something else, part of history, but this shouldn't affect
the problem, because DNS works well with that :-), so nslookup will
say:

Name:   schatten.magnus
Address: 10.10.10.1

1.10.10.10.in-addr.arpa name = schatten.magnus.

So, correct until here.


/etc/amandahosts:
schatten.magnus root
schatten root


disklist:
schatten.magnus /home/thoddi comp-user-tar


amcheck without any errors after renaming the localhost-dir in
curinfo and index (because they are the same, just hostnames
changed :-)


But:

schatten:~# amrecover Weekly -s schatten.magnus
AMRECOVER Version 2.4.2p2. Contacting server on schatten.magnus ...
220 schatten AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2004-05-27)
200 Working date set to 2004-05-27.
200 Working date set to 2004-05-27.
amrecover: Unexpected server end of file

#ß=(%*'-GRMPF-§§$)='_::-)

Why he told me 200 Access OK first and will fail an few lines
after?

Syslog only said:
May 27 17:06:16 schatten amindexd[11901]: connect from 10.10.10.1


I first thougt about iptables blocking the connection, but the
packetfilter is working correct.


Is the backup gone away? No way to recover it?

-- 
Bis denne,
Thoddi



Re: Problems using amrecover

2004-05-27 Thread Paul Bijnens
Thorsten Bremer wrote:
schatten:~# amrecover Weekly -s schatten.magnus
AMRECOVER Version 2.4.2p2. Contacting server on schatten.magnus ...
220 schatten AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2004-05-27)
200 Working date set to 2004-05-27.
200 Working date set to 2004-05-27.
amrecover: Unexpected server end of file
#ß=(%*'-GRMPF-§§$)='_::-)
My german is very bad :-)
Any clue in the debug file on the server named 
/tmp/amanda/amindexd.XXX.debug ?


Is the backup gone away? No way to recover it?
There is always amrestore, or even dd and tar/restore.

--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: Problems with amrecover

2004-02-27 Thread Joshua Baker-LePain
On Thu, 26 Feb 2004 at 8:34pm, Thomas Jones wrote

 Here is an example:
 
 [EMAIL PROTECTED] _root]# zmore 20040226_0.gz
 -- 20040226_0.gz --
 /

Well, bugger, those look alright.  That was my best idea, too.

What are the permissions on those directories and the files?

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: Problems with amrecover

2004-02-27 Thread Thomas Jones
I thought that as well and changed permissions to 777, still no joy.

On Fri, 2004-02-27 at 16:35, Joshua Baker-LePain wrote:
 On Thu, 26 Feb 2004 at 8:34pm, Thomas Jones wrote
 
  Here is an example:
  
  [EMAIL PROTECTED] _root]# zmore 20040226_0.gz
  -- 20040226_0.gz --
  /
 
 Well, bugger, those look alright.  That was my best idea, too.
 
 What are the permissions on those directories and the files?



Re: Problems with amrecover

2004-02-26 Thread Thomas Jones
Here is an example:

[EMAIL PROTECTED] _root]# zmore 20040226_0.gz
-- 20040226_0.gz --
/
/.borland/
/.cpan/
/.cpan/Bundle/
/.cpan/build/
/.cpan/build/Algorithm-Cluster-1.24/
/.cpan/build/Algorithm-Cluster-1.24/blib/
/.cpan/build/Algorithm-Cluster-1.24/blib/arch/
/.cpan/build/Algorithm-Cluster-1.24/blib/arch/auto/
/.cpan/build/Algorithm-Cluster-1.24/blib/arch/auto/Algorithm/
/.cpan/build/Algorithm-Cluster-1.24/blib/arch/auto/Algorithm-Cluster/
/.cpan/build/Algorithm-Cluster-1.24/blib/arch/auto/Algorithm/Cluster/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/Algorithm/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/auto/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/auto/Algorithm/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/auto/Algorithm-Cluster/
/.cpan/build/Algorithm-Cluster-1.24/blib/lib/auto/Algorithm/Cluster/
/.cpan/build/Algorithm-Cluster-1.24/blib/man3/
/.cpan/build/Algorithm-Cluster-1.24/data/
/.cpan/build/Algorithm-Cluster-1.24/perl/
/.cpan/build/Algorithm-Cluster-1.24/perl/examples/
/.cpan/build/Algorithm-Cluster-1.24/perl/t/
/.cpan/build/Algorithm-Cluster-1.24/ranlib/
/.cpan/build/Algorithm-Cluster-1.24/ranlib/linpack/
/.cpan/build/Algorithm-Cluster-1.24/ranlib/src/
/.cpan/build/Algorithm-Cluster-1.24/src/
/.cpan/build/Apache-AuthzPasswd-0.12/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/arch/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/arch/auto/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/arch/auto/Apache/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/arch/auto/Apache/AuthzPasswd/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/lib/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/lib/Apache/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/lib/auto/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/lib/auto/Apache/
/.cpan/build/Apache-AuthzPasswd-0.12/blib/lib/auto/Apache/AuthzPasswd/
[EMAIL PROTECTED] _root]#
[EMAIL PROTECTED] _root]# pwd
/var/lib/amanda/full/index/omega/_root
[EMAIL PROTECTED] _root]#

On Thu, 2004-02-26 at 19:31, Joshua Baker-LePain wrote:
 On Thu, 26 Feb 2004 at 6:02pm, Thomas Jones wrote
 
  [EMAIL PROTECTED] _root]# pwd
  /var/lib/amanda/full/index/omega/_root
  [EMAIL PROTECTED] _root]# ls
  20040212_1.gz  20040215_2.gz  20040218_1.gz  20040221_0.gz
20040224_1.gz
  20040213_0.gz  20040216_0.gz  20040219_0.gz  20040222_1.gz
20040225_1.gz
  20040214_1.gz  20040217_1.gz  20040220_1.gz  20040223_0.gz
20040226_0.gz
 
 What do the contents of the index files look like?



RE: problems with amrecover

2003-12-30 Thread Josh Welch
jessica blackburn said:

 I am trying to backup a windows file system.  i have it mounted so i can
 see the files are in a directory on the linux side.  however, when i try
 to back them up i am getting this error.  is there any suggestions?

 Extracting files using tape drive file:/backup/ on host hccweb.
 Load tape DailySet1011 now
 Continue [?/Y/n/t]? Y
 EOF, check amidxtaped.debug file on hccweb.
 amrecover: short block 0 bytes
 UNKNOWN file
 amrecover: Can't read file header
 extract_list - child returned non-zero status: 1


 thanks for all the help i've been getting!!

 jess blackburn


I still think that there might be some value in looking at your
chg-multi.conf, it kind of sounds like backups aren't doing what is
expected, so amrecover is unable to do its thing. If you could post that
config, it might be enlightening.

Thanks,
Josh



RE: problems with amrecover

2003-12-30 Thread Josh Welch
jessica blackburn said:
snip

 yes i can use the amtape command and i am also sure that the correct
 tape is loaded.  the most recent error that i am now getting is as
 follows:

 FAILED AND STRANGE DUMP DETAILS:


 /-- hccweb /TestNT/test lev 0 STRANGE
 sendbackup: start [hccweb:/TestNT/test level 0]
 sendbackup: info BACKUP=/bin/tar
 sendbackup: info RECOVER_CMD=/bin/tar -f... -
 sendbackup: info end
 ? gtar: ./ccc.mp3: file changed as we read it
 | Total bytes written: 2027520 (1.9MB, 990kB/s)
 sendbackup: size 1980
 sendbackup: end
 \


 this happens when i run an amdump.

A minor matter. Tar goes out and stats everything its going to backup at the
beginning of the run, IIRC, so if something changes between that time and
when you actually get to the file in question it causes a warning message.

Josh



RE: problems with amrecover

2003-12-30 Thread jessica blackburn
On Tue, 2003-12-30 at 08:53, Josh Welch wrote:
 jessica blackburn said:
 
  I am trying to backup a windows file system.  i have it mounted so i can
  see the files are in a directory on the linux side.  however, when i try
  to back them up i am getting this error.  is there any suggestions?
 
  Extracting files using tape drive file:/backup/ on host hccweb.
  Load tape DailySet1011 now
  Continue [?/Y/n/t]? Y
  EOF, check amidxtaped.debug file on hccweb.
  amrecover: short block 0 bytes
  UNKNOWN file
  amrecover: Can't read file header
  extract_list - child returned non-zero status: 1
 
 
  thanks for all the help i've been getting!!
 
  jess blackburn
 
 
 I still think that there might be some value in looking at your
 chg-multi.conf, it kind of sounds like backups aren't doing what is
 expected, so amrecover is unable to do its thing. If you could post that
 config, it might be enlightening.
 
 Thanks,
 Josh
Here is what is in my chg-multi file.  

multieject 0
 
gravity 0
 
needeject 0
 
ejectdelay 0
 
statefile /etc/amanda/DailySet1/multi-changer-status

firstslot 1
lastslot 15

slot 1 file:/backup/t1
slot 2 file:/backup/t2
slot 3 file:/backup/t3
slot 4 file:/backup/t4
slot 5 file:/backup/t5
slot 6 file:/backup/t6
slot 7 file:/backup/t7
slot 8 file:/backup/t8
slot 9 file:/backup/t9
slot 10 file:/backup/t10
slot 11 file:/backup/t11
slot 12 file:/backup/t12
slot 13 file:/backup/t13
slot 14 file:/backup/t14
slot 15 file:/backup/t15

Thanks for all the help!!

jess

 


Re: problems with amrecover

2003-12-30 Thread Fran Fabrizio

 Extracting files using tape drive file:/backup/t2 on host hccweb.
 Load tape DailySet100 now
 Continue [?/Y/n/t]? y
 EOF, check amidxtaped.debug file on hccweb.
 amrecover: short block 0 bytes
 UNKNOWN file
 amrecover: Can't read file header
 extract_list - child returned non-zero status: 1

I just had this exact problem yesterday - in my case, I had to set 
amrecover_changer changer in amanda.conf, and then 'settape changer' 
at the amrecover prompt.  With that, it was able to load the tape by
itself.  Otherwise, I think you need to manually load/rewind the 
tape before trying to recover from it.  

That might not have anything to do with your problem, but I was getting
the same error message, and this fixed it.

Hope that helps,
Fran



Re: problems with amrecover

2003-12-30 Thread Fran Fabrizio

 When amrecover said load . now did you actually load the
 correct file tape before answering y?
 That message is not so much a question but a directive.

As an aside, I found this message to be rather confusing, too easy to
misread as Loading tape foo now and misinterpret it as a status update
as opposed to it telling you to go do something. :-)  Maybe it's just
me, but You should rewind and load tape foo now and then hit Y to
continue would be a bit more wordy, but much clearer.

-Fran

-- 

Fran Fabrizio
Senior Systems Analyst
Department of Computer and Information Sciences
University of Alabama - Birmingham
[EMAIL PROTECTED]
(205) 934-0653



Re: problems with amrecover

2003-12-30 Thread Jon LaBadie
On Tue, Dec 30, 2003 at 09:31:23AM -0500, jessica blackburn wrote:
 It looks like i'm running an amdump successfully.  however, when i try
 to recover i get this error:
 
 Extracting files using tape drive file:/backup/t2 on host hccweb.
 Load tape DailySet100 now

Why is it looking for tape DailySet100?
That sounds like a real tape rather than a virtual file tape.
Did you/Do you do backups to real tape too?
Have you converted this config from a real tape drive to disk-based?


-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: problems with amrecover

2003-12-30 Thread jessica blackburn
On Tue, 2003-12-30 at 10:11, Jon LaBadie wrote:
 On Tue, Dec 30, 2003 at 09:31:23AM -0500, jessica blackburn wrote:
  It looks like i'm running an amdump successfully.  however, when i try
  to recover i get this error:
  
  Extracting files using tape drive file:/backup/t2 on host hccweb.
  Load tape DailySet100 now
 
 Why is it looking for tape DailySet100?
 That sounds like a real tape rather than a virtual file tape.
 Did you/Do you do backups to real tape too?
 Have you converted this config from a real tape drive to disk-based?
 

it is only looking for a virtual file tape.  i have had it working
before and it got changed somewhere while i was trying to get the samba
stuff to work.


Re: problems with amrecover

2003-12-30 Thread Jon LaBadie
On Tue, Dec 30, 2003 at 10:32:49AM -0500, jessica blackburn wrote:
 On Tue, 2003-12-30 at 10:11, Jon LaBadie wrote:
  On Tue, Dec 30, 2003 at 09:31:23AM -0500, jessica blackburn wrote:
   It looks like i'm running an amdump successfully.  however, when i try
   to recover i get this error:
   
   Extracting files using tape drive file:/backup/t2 on host hccweb.
   Load tape DailySet100 now
  
  Why is it looking for tape DailySet100?
  That sounds like a real tape rather than a virtual file tape.
  Did you/Do you do backups to real tape too?
  Have you converted this config from a real tape drive to disk-based?
  
 
 it is only looking for a virtual file tape.  i have had it working
 before and it got changed somewhere while i was trying to get the samba
 stuff to work.


  Why is it looking for tape DailySet100?
What is DailySet100?


-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: problems with amrecover

2003-12-30 Thread jessica blackburn
On Tue, 2003-12-30 at 11:11, Jon LaBadie wrote:
 On Tue, Dec 30, 2003 at 10:32:49AM -0500, jessica blackburn wrote:
  On Tue, 2003-12-30 at 10:11, Jon LaBadie wrote:
   On Tue, Dec 30, 2003 at 09:31:23AM -0500, jessica blackburn wrote:
It looks like i'm running an amdump successfully.  however, when i try
to recover i get this error:

Extracting files using tape drive file:/backup/t2 on host hccweb.
Load tape DailySet100 now
   
   Why is it looking for tape DailySet100?
   That sounds like a real tape rather than a virtual file tape.
   Did you/Do you do backups to real tape too?
   Have you converted this config from a real tape drive to disk-based?
   
  
  it is only looking for a virtual file tape.  i have had it working
  before and it got changed somewhere while i was trying to get the samba
  stuff to work.
 
 
   Why is it looking for tape DailySet100?
 What is DailySet100?
 

DailySet100 is the name of my tape which is the name of the file that
the backup is written on.


Re: problems with amrecover

2003-12-29 Thread Joshua Baker-LePain
On Mon, 29 Dec 2003 at 10:42am, jessica blackburn wrote

 I am trying to backup a windows file system.  i have it mounted so i can
 see the files are in a directory on the linux side.  however, when i try
 to back them up i am getting this error.  is there any suggestions?

Not really necessary -- amanda can use smbclient to backup 'doze clients 
that aren't mounted.  If you want it mounted all the time, you can just 
use tar to back up the mount point.

 Extracting files using tape drive file:/backup/ on host hccweb.
 Load tape DailySet1011 now
 Continue [?/Y/n/t]? Y
 EOF, check amidxtaped.debug file on hccweb.
 amrecover: short block 0 bytes
 UNKNOWN file
 amrecover: Can't read file header
 extract_list - child returned non-zero status: 1

Err, amrecover is a recovery tool (hence the name) not a backup tool.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: problems with amrecover

2003-12-29 Thread Joshua Baker-LePain
On Mon, 29 Dec 2003 at 10:53am, jessica blackburn wrote
 On Mon, 2003-12-29 at 10:51, Joshua Baker-LePain wrote:
  On Mon, 29 Dec 2003 at 10:42am, jessica blackburn wrote
  
   I am trying to backup a windows file system.  i have it mounted so i can
   see the files are in a directory on the linux side.  however, when i try
   to back them up i am getting this error.  is there any suggestions?
  
  Not really necessary -- amanda can use smbclient to backup 'doze clients 
  that aren't mounted.  If you want it mounted all the time, you can just 
  use tar to back up the mount point.
  
   Extracting files using tape drive file:/backup/ on host hccweb.
   Load tape DailySet1011 now
   Continue [?/Y/n/t]? Y
   EOF, check amidxtaped.debug file on hccweb.
   amrecover: short block 0 bytes
   UNKNOWN file
   amrecover: Can't read file header
   extract_list - child returned non-zero status: 1
  
  Err, amrecover is a recovery tool (hence the name) not a backup tool.
 
 i'm a bit frazzeled and met to say recover.  do you have any ideas as to
 why its not working?

Please post your responses below the quoted text -- it makes it easier to 
follow the conversation.  And please keep all responses on the list, so 
that others can chime in.

As for why it's not working, do what the error message tells you to do: 
check amidxtaped.debug file on hccweb.  It should be in /tmp/amanda and 
may have a time stamp in the middle of the file name.  Post the contents 
of that file.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: problems with amrecover

2003-12-29 Thread jessica blackburn
On Mon, 2003-12-29 at 11:02, Joshua Baker-LePain wrote:
 On Mon, 29 Dec 2003 at 10:53am, jessica blackburn wrote
  On Mon, 2003-12-29 at 10:51, Joshua Baker-LePain wrote:
   On Mon, 29 Dec 2003 at 10:42am, jessica blackburn wrote
   
I am trying to backup a windows file system.  i have it mounted so i can
see the files are in a directory on the linux side.  however, when i try
to back them up i am getting this error.  is there any suggestions?
   
   Not really necessary -- amanda can use smbclient to backup 'doze clients 
   that aren't mounted.  If you want it mounted all the time, you can just 
   use tar to back up the mount point.
   
Extracting files using tape drive file:/backup/ on host hccweb.
Load tape DailySet1011 now
Continue [?/Y/n/t]? Y
EOF, check amidxtaped.debug file on hccweb.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
   
   Err, amrecover is a recovery tool (hence the name) not a backup tool.
  
  i'm a bit frazzeled and met to say recover.  do you have any ideas as to
  why its not working?
 
 Please post your responses below the quoted text -- it makes it easier to 
 follow the conversation.  And please keep all responses on the list, so 
 that others can chime in.
 
 As for why it's not working, do what the error message tells you to do: 
 check amidxtaped.debug file on hccweb.  It should be in /tmp/amanda and 
 may have a time stamp in the middle of the file name.  Post the contents 
 of that file.

here is my debug

[EMAIL PROTECTED] etc]# find / -name amidxtaped.*.debug
/tmp/amanda/amidxtaped.20031229095341.debug
/tmp/amanda/amidxtaped.20031229095813.debug
/tmp/amanda/amidxtaped.20031229101927.debug
/tmp/amanda/amidxtaped.20031229103541.debug
/tmp/amanda/amidxtaped.20031229103810.debug
/tmp/amanda/amidxtaped.20031229104004.debug
/tmp/amanda/amidxtaped.20031229104442.debug
/tmp/amanda/amidxtaped.20031229111039.debug
 
You have new mail in /var/spool/mail/root
[EMAIL PROTECTED] etc]# pico /tmp/amanda/amidxtaped.20031229111039.debug
[EMAIL PROTECTED] etc]# cat /tmp/amanda/amidxtaped.20031229111039.debug
amidxtaped: debug 1 pid 30536 ruid 33 euid 33: start at Mon Dec 29
11:10:39 2003amidxtaped: version 2.4.3
amidxtaped: time 0.000:  SECURITY USER root
amidxtaped: time 0.000: bsd security: remote host hccweb user root local
user amanda
amidxtaped: time 0.000: amandahosts security check passed
amidxtaped: time 0.000:  6
amidxtaped: time 0.000: amrestore_nargs=6
amidxtaped: time 0.000:  -h
amidxtaped: time 0.000:  -p
amidxtaped: time 0.000:  file:/backup/
amidxtaped: time 0.000:  ^hccweb$
amidxtaped: time 0.000:  ^/TestNT/test$
amidxtaped: time 0.001:  20031229
amidxtaped: time 0.001: Ready to execv amrestore with:
path = /usr/sbin/amrestore
argv[0] = amrestore
argv[1] = -h
argv[2] = -p
argv[3] = file:/backup/
argv[4] = ^hccweb$
argv[5] = ^/TestNT/test$
argv[6] = 20031229
amrestore: error reading file header: Input/output error
amidxtaped: time 0.003: amrestore terminated normally with status: 2
amidxtaped: time 0.003: rewinding tape ...
amidxtaped: time 0.003: tape_rewind: rewinding tape: file:/backup/:
Input/output error
amidxtaped: time 0.003: pid 30536 finish time Mon Dec 29 11:10:39 2003



Re: problems with amrecover

2003-12-29 Thread Jon LaBadie
On Mon, Dec 29, 2003 at 11:13:18AM -0500, jessica blackburn wrote:

Err, amrecover is a recovery tool (hence the name) not a backup tool.
   
   i'm a bit frazzeled and met to say recover.  do you have any ideas as to
   why its not working?
  
  Please post your responses below the quoted text -- it makes it easier to 
  follow the conversation.  And please keep all responses on the list, so 
  that others can chime in.
  
  As for why it's not working, do what the error message tells you to do: 
  check amidxtaped.debug file on hccweb.  It should be in /tmp/amanda and 
  may have a time stamp in the middle of the file name.  Post the contents 
  of that file.
 
 here is my debug
 
...
 amidxtaped: time 0.001: Ready to execv amrestore with:
 path = /usr/sbin/amrestore
 argv[0] = amrestore
 argv[1] = -h
 argv[2] = -p
 argv[3] = file:/backup/
 argv[4] = ^hccweb$
 argv[5] = ^/TestNT/test$
 argv[6] = 20031229
 amrestore: error reading file header: Input/output error

Can you access your file tapes using things like the amtape command?
Does it show you the correct tape is loaded and has a good header?

If that can not be done, no reason to try other things.

When amrecover said load . now did you actually load the
correct file tape before answering y?
That message is not so much a question but a directive.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: problems with amrecover

2003-12-29 Thread jessica blackburn
On Mon, 2003-12-29 at 11:44, Jon LaBadie wrote:
 On Mon, Dec 29, 2003 at 11:13:18AM -0500, jessica blackburn wrote:
 
 Err, amrecover is a recovery tool (hence the name) not a backup tool.

i'm a bit frazzeled and met to say recover.  do you have any ideas as to
why its not working?
   
   Please post your responses below the quoted text -- it makes it easier to 
   follow the conversation.  And please keep all responses on the list, so 
   that others can chime in.
   
   As for why it's not working, do what the error message tells you to do: 
   check amidxtaped.debug file on hccweb.  It should be in /tmp/amanda and 
   may have a time stamp in the middle of the file name.  Post the contents 
   of that file.
  
  here is my debug
  
 ...
  amidxtaped: time 0.001: Ready to execv amrestore with:
  path = /usr/sbin/amrestore
  argv[0] = amrestore
  argv[1] = -h
  argv[2] = -p
  argv[3] = file:/backup/
  argv[4] = ^hccweb$
  argv[5] = ^/TestNT/test$
  argv[6] = 20031229
  amrestore: error reading file header: Input/output error
 
 Can you access your file tapes using things like the amtape command?
 Does it show you the correct tape is loaded and has a good header?
 
 If that can not be done, no reason to try other things.
 
 When amrecover said load . now did you actually load the
 correct file tape before answering y?
 That message is not so much a question but a directive.

yes i can use the amtape command and i am also sure that the correct
tape is loaded.  the most recent error that i am now getting is as
follows:

FAILED AND STRANGE DUMP DETAILS:

/-- hccweb /TestNT/test lev 0 STRANGE
sendbackup: start [hccweb:/TestNT/test level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -f... -
sendbackup: info end
? gtar: ./ccc.mp3: file changed as we read it
| Total bytes written: 2027520 (1.9MB, 990kB/s)
sendbackup: size 1980
sendbackup: end
\

this happens when i run an amdump.


Re: problems with amrecover

2003-12-29 Thread Gene Heskett
On Monday 29 December 2003 12:27, jessica blackburn wrote:
On Mon, 2003-12-29 at 11:44, Jon LaBadie wrote:
 On Mon, Dec 29, 2003 at 11:13:18AM -0500, jessica blackburn wrote:
 Err, amrecover is a recovery tool (hence the name) not a
 backup tool.
   
i'm a bit frazzeled and met to say recover.  do you have any
ideas as to why its not working?
  
   Please post your responses below the quoted text -- it makes
   it easier to follow the conversation.  And please keep all
   responses on the list, so that others can chime in.
  
   As for why it's not working, do what the error message tells
   you to do: check amidxtaped.debug file on hccweb.  It should
   be in /tmp/amanda and may have a time stamp in the middle of
   the file name.  Post the contents of that file.
 
  here is my debug

 ...

  amidxtaped: time 0.001: Ready to execv amrestore with:
  path = /usr/sbin/amrestore
  argv[0] = amrestore
  argv[1] = -h
  argv[2] = -p
  argv[3] = file:/backup/
  argv[4] = ^hccweb$
  argv[5] = ^/TestNT/test$
  argv[6] = 20031229
  amrestore: error reading file header: Input/output error

 Can you access your file tapes using things like the amtape
 command? Does it show you the correct tape is loaded and has a
 good header?

 If that can not be done, no reason to try other things.

 When amrecover said load . now did you actually load the
 correct file tape before answering y?
 That message is not so much a question but a directive.

yes i can use the amtape command and i am also sure that the correct
tape is loaded.  the most recent error that i am now getting is as
follows:

FAILED AND STRANGE DUMP DETAILS:

/-- hccweb /TestNT/test lev 0 STRANGE
sendbackup: start [hccweb:/TestNT/test level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -f... -
sendbackup: info end
? gtar: ./ccc.mp3: file changed as we read it

| Total bytes written: 2027520 (1.9MB, 990kB/s)

sendbackup: size 1980
sendbackup: end
\

this happens when i run an amdump.

Thats not an error per sei.  Its an advisory only, hence the info 
label, its telling you something changed about that file between the 
time the estimate was made, and the read for makeing the tarball was 
done.

-- 
Cheers, Gene
AMD [EMAIL PROTECTED] 320M
[EMAIL PROTECTED]  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.



Re: Problems with amrecover and file path

2003-10-14 Thread Paul Bijnens
Christoffer Dahl Petersen wrote:


I should recover some files from a directory, but I can't get into the 
directory.
The path is: /home/files/\ \ MAGS/   or /home/files/  MAGS/, here is 
what I do:
#amrecover daily
amrecover setdisk /home/files/\ \ MAGS
Mount point \ invalid - must start with /
Invalid command - parse error
amrecover

How can I do that - PLEASE HELP - I'm about to be killed by my boss
First don't panic.  Being killed by your boss is not that bad as it
sounds :-)
Then, yes indeed, amrecover has trouble with spaces (or other strange
chars in the name).
You're also confusing DLE names (setdisk) and subdirectories.

Workaround:

setdisk /home/files   (or whatever your DLE is named)
cd *MAGS(or ??MAGS: use a wildcard as args to cd)
Workaround nr 2:

	amrestore -p ... | tar -xvf - './  MAGS/some/file'

(While panicking, it is maybe wiser to restore into a temporary
empty directory to avoid overwriting critical files.)


--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: Problems with amrecover and file path

2003-10-14 Thread Christoffer Dahl Petersen




tir, 2003-10-14 kl. 15:34 skrev Paul Bijnens:


Workaround:

	setdisk /home/files   (or whatever your DLE is named)
	cd *MAGS	(or ??MAGS: use a wildcard as args to cd)

Workaround nr 2:

	amrestore -p ... | tar -xvf - './  MAGS/some/file'

(While panicking, it is maybe wiser to restore into a temporary
empty directory to avoid overwriting critical files.)



Hi Paul!

Now I have a poster hanging above my desk saying: Man of the day: Paul Bijnens 
I tried your workaround nr. 1, but it didnt work, but it gave me a clue, here is the workaround:
setdisk /home/files
cd  MAGS

So why I can't use: setdisk /home/files/ MAGS is strange, but most important; it works!!

So thanks again!!!

- Christoffer 










attachment: smiley-3.png

Re: Problems with amrecover and file path

2003-10-14 Thread Paul Bijnens
Christoffer Dahl Petersen wrote:

Now I have a poster hanging above my desk saying: Man of the day: Paul 
Bijnens 
  :-)  :-)

I tried your workaround nr. 1, but it didnt work, but it gave me a 
Strange, it works when I do it. I just tried:

amrecover ls
2003-07-24 .
2003-07-14 help/
2003-07-24 newfile
2003-07-24 space dir1/
2003-07-24 space dir2/
2003-07-24 subdir1/
amrecover cd space*dir1
/home/paul/tmp/dirs/dir3/space dir1
Maybe an older version?
There are some more bugs in amrecover:
amrecover cd ..
/home/paul/tmp/dirs/dir3
amrecover cd help
Invalid command - parse error
You can't address a file or directory named help.  Keywords
are reserved in the yacc grammar.  But quotes around the
keywords help in this case too:
amrecover cd help
/home/paul/tmp/dirs/dir3/help
amrecover
clue, here is the workaround:
setdisk /home/files
cd   MAGS
So why I can't use: setdisk /home/files/  MAGS   is strange, but most 
important; it works!!
You can't use setdisk in this case because is is not a DiskListEntry.
The command listdisk gives a list of the entries possible for 
setdisk (in a recent version).  After choosing the DLE with setdisk
you have to navigate further with cd or cdx.

--
Paul @ Home


Re: problems running amrecover

2003-07-10 Thread Paul Bijnens
C. Wilson wrote:
amrestore:   0: skipping start of tape: date 20030709 label VOL02
amrestore:   1: restoring plate.tech.net._.20030709.0
gzip: stdin: not in gzip format
Error 32 (Broken pipe) offset 26624+26624, wrote 0
amrestore: pipe reader has quit in middle of file.
amidxtaped: time 12.741: amrestore terminated normally with status: 2
amidxtaped: time 12.741: rewinding tape ...
amidxtaped: time 24.756: done
amidxtaped: time 24.756: pid 10098 finish time Thu Jul 10 11:53:04 2003
What is the file header on the tape? Try:

  amrestore -h /dev/the/tape

What is the blocksize of your tape device?  Try:

   mt -f /dev/the/tape status

(I don't remember how solaris reacts to different blocksizes,
must be using to much linux here.)


--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: problems running amrecover

2003-07-10 Thread C. Wilson
Paul Bijnens wrote:
 
 C. Wilson wrote:
 
  amrestore:   0: skipping start of tape: date 20030709 label VOL02
  amrestore:   1: restoring plate.tech.net._.20030709.0
 
  gzip: stdin: not in gzip format
  Error 32 (Broken pipe) offset 26624+26624, wrote 0
  amrestore: pipe reader has quit in middle of file.
  amidxtaped: time 12.741: amrestore terminated normally with status: 2
  amidxtaped: time 12.741: rewinding tape ...
  amidxtaped: time 24.756: done
  amidxtaped: time 24.756: pid 10098 finish time Thu Jul 10 11:53:04 2003
 
 What is the file header on the tape? Try:
 
amrestore -h /dev/the/tape

# /usr/local/sbin/amrestore -h /dev/nht0
amrestore:   0: skipping start of tape: date 20030709 label VOL02
amrestore:   1: restoring pluto.chi.cooketech.net._.20030709.0

gzip: stdin: not in gzip format
Error 32 (Broken pipe) offset 26624+26624, wrote 0
amrestore: pipe reader has quit in middle of file.

 
 What is the blocksize of your tape device?  Try:
 
 mt -f /dev/the/tape status
# mt -f /dev/ht0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (0):

 
 (I don't remember how solaris reacts to different blocksizes,
 must be using to much linux here.)
No Solaris needed, just Linux (RedHat 7.2)
 
 --
 Paul Bijnens, XplanationTel  +32 16 397.511
 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
 http://www.xplanation.com/  email:  [EMAIL PROTECTED]
 ***
 * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
 * quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
 * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
 * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
 * kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
 * ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
 ***

-- 
Cheryl Wilson
UNIX Systems Engineer
Cooke Technologies


Re: problems running amrecover

2003-07-10 Thread C. Wilson
I figured out the problem, I was using the SCSI tapetype instead of the
IDE for the STT8000A. Thanks for the fast response Paul and redirecting
my focus on the tape drive, instead of gzip.

What it should be for IDE:

define tapetype STT8000A {
comment STT8000A Tape Device
length 3850 mbytes # 4/8 Gig tapes
filemark 0 kbytes   # I don't know what this means
speed 505 kbytes
}


Thanks,

CWilson

C. Wilson wrote:
 
 Paul Bijnens wrote:
 
  C. Wilson wrote:
  
   amrestore:   0: skipping start of tape: date 20030709 label VOL02
   amrestore:   1: restoring plate.tech.net._.20030709.0
  
   gzip: stdin: not in gzip format
   Error 32 (Broken pipe) offset 26624+26624, wrote 0
   amrestore: pipe reader has quit in middle of file.
   amidxtaped: time 12.741: amrestore terminated normally with status: 2
   amidxtaped: time 12.741: rewinding tape ...
   amidxtaped: time 24.756: done
   amidxtaped: time 24.756: pid 10098 finish time Thu Jul 10 11:53:04 2003
 
  What is the file header on the tape? Try:
 
 amrestore -h /dev/the/tape
 
 # /usr/local/sbin/amrestore -h /dev/nht0
 amrestore:   0: skipping start of tape: date 20030709 label VOL02
 amrestore:   1: restoring pluto.chi.cooketech.net._.20030709.0
 
 gzip: stdin: not in gzip format
 Error 32 (Broken pipe) offset 26624+26624, wrote 0
 amrestore: pipe reader has quit in middle of file.
 
 
  What is the blocksize of your tape device?  Try:
 
  mt -f /dev/the/tape status
 # mt -f /dev/ht0 status
 SCSI 2 tape drive:
 File number=0, block number=0, partition=0.
 Tape block size 512 bytes. Density code 0x0 (default).
 Soft error count since last status=0
 General status bits on (0):
 
 
  (I don't remember how solaris reacts to different blocksizes,
  must be using to much linux here.)
 No Solaris needed, just Linux (RedHat 7.2)
 
  --
  Paul Bijnens, XplanationTel  +32 16 397.511
  Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
  http://www.xplanation.com/  email:  [EMAIL PROTECTED]
  ***
  * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
  * quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
  * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
  * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
  * kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
  * ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
  ***



Re: Problems with amrecover

2003-06-16 Thread Jason P.Pickering

First of all, thanks for your help Jon. 

On Mon, 16 Jun 2003, Jon LaBadie wrote:

 Hi, the body of you message refers to dumping and flushing.
 Why a subject about amrecover???

Oops..this was before my first cup of coffee this morning. ;-) Indeed, the 
title of my mail should be Problems with amflush!. Sorry about that.

 Here is why I guessed nothing to dump.  This suggests that
 during your dump, 100% (the default) of the holding disk was 
 reserved for degraded mode dumps.  Everything had to go direct
 to tape.  As there was no tape and no holding disk, there would
 not have been any dumps available for amflush.
 
 If my guess is correct,
 rethink the setting of your reserve parameter.


Indeed, this enabled me to flush those degraded dumps to tape. I had this 
line commented out in my original configuration file. 

Thanks so much for the speedy and accurate response!

Best regards,
Jason Pickering




Re: Problems with amrecover

2003-06-15 Thread Jon LaBadie
On Mon, Jun 16, 2003 at 10:50:18AM +0800, Jason P.Pickering wrote:
 Hello amanda users...
 

Hi, the body of you message refers to dumping and flushing.
Why a subject about amrecover???


 
 This problem has happened several time to me, and I
 have trawled through the archives here, but haven't found any
 solution really. I forgot to put the correct tape in last night, and 
 unfortunately, amflush won't dump my backup to tape.
 Here is what i get (see below). 

What does amflush tell you?
I'm guessing it says nothing to dump.


 Can anybody tell me how to get those backups onto tape and have my 
 database be correctly updated?

 
 [EMAIL PROTECTED] amanda-2.4.3]$ driver: pid 3882
 executable driver 
 version 2.4.3
 driver: send-cmd time 0.002 to taper: START-TAPER

Which log file is this?  Was it from your amdump or your amflush?


 20030606
 taper: pid 3883 executable taper version 2.4.3
 taper: page size is 4096
 taper: buffer size is 32768
 driver: adding holding disk 0 dir /mnt/home2/backups
 size 3008448
 reserving 3008448 out of 3008448 for degraded-mode dumps

Here is why I guessed nothing to dump.  This suggests that
during your dump, 100% (the default) of the holding disk was 
reserved for degraded mode dumps.  Everything had to go direct
to tape.  As there was no tape and no holding disk, there would
not have been any dumps available for amflush.

If my guess is correct,
rethink the setting of your reserve parameter.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: Problems with amrecover

2002-06-23 Thread Jesús Moya

thanks for replaying!! :)

Well, my disklist:

# sample Amanda2 disklist file, derived from CS.UMD.EDU's disklist
#
# If your configuration is called, say, csd2, then this file normally goes
# in /etc/amanda/csd2/disklist.
#
# File format is:
#
#   hostname diskdev dumptype [spindle [interface]]
#
# where the dumptypes are defined by you in amanda.conf or in-line.

mordor.nuevomundo.es /home/compartido/Alberto/mp3_einar/ user-tar


Our index files:


amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es  cd 
_home_compartido_Alberto_mp3__einar_/
amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 

 ls

20020227_0.gz 20020227_1.gz 
amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 


 gzip -d 20020227_0.gz

The content of this files:


amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 


 less 20020227_0

07437137211/./
 07437137211/./.AppleDouble/
07436474221/./kk.txt
07436732375/./.AppleDouble/.Parent


I think this files may be the problem. 


Joshua Baker-LePain wrote:

On Wed, 27 Feb 2002 at 12:39pm, Jesús Moya wrote

Well, we have tried this but with no result. Here is the output of the 
process:

machine:/home # /usr/local/sbin/amrecover nuevomundo
AMRECOVER Version 2.4.2p2. Contacting server on machine ...
220 machine AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2002-02-27)
200 Working date set to 2002-02-27.
200 Config set to daily.
501 No index records for host: machine. Invalid?
Trying machine.mydomain.es ...
200 Dump host set to machine.mydomain.es.
Can't determine disk and mount point from $CWD
amrecover sethost machine.mydomain.es
200 Dump host set to machine.mydomain.es.
amrecover setdate 2002-02-27
200 Working date set to 2002-02-27.
amrecover setdisk /home
501 No index records for disk: /home. Invalid?
amrecover cd /home/compartido/Alberto/mp3_einar/
Must select disk before setting directory
amrecover setdisk /dev/sdb1
501 No index records for disk: /dev/sdb1. Invalid?
amrecover


What do your disklist entries for 'machine' look like?  Is indexing 
enabled?  Do you see index files in the indexdir defined in amanda.conf?  
If so, what do the contents look like?






Re: Problems with amrecover

2002-02-27 Thread Jesús Moya

Well, we have tried this but with no result. Here is the output of the 
process:

machine:~ # cd /home
machine:/home # df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sda3 8.2G  4.3G  3.5G  55% /
/dev/sda1  23M  4.5M   17M  21% /boot
/dev/sdb1  17G   14G  1.7G  89% /home
//JOSAN/nem   4.0G  947M  3.1G  23% /mnt/josanNem
machine:/home # /usr/local/sbin/amrecover nuevomundo
AMRECOVER Version 2.4.2p2. Contacting server on machine ...
220 machine AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2002-02-27)
200 Working date set to 2002-02-27.
200 Config set to daily.
501 No index records for host: machine. Invalid?
Trying machine.mydomain.es ...
200 Dump host set to machine.mydomain.es.
Can't determine disk and mount point from $CWD
amrecover sethost machine.mydomain.es
200 Dump host set to machine.mydomain.es.
amrecover setdate 2002-02-27
200 Working date set to 2002-02-27.
amrecover setdisk /home
501 No index records for disk: /home. Invalid?
amrecover cd /home/compartido/Alberto/mp3_einar/
Must select disk before setting directory
amrecover setdisk /dev/sdb1
501 No index records for disk: /dev/sdb1. Invalid?
amrecover

Any idea???. Thanks.


Doug Silver wrote:

On Tue, 26 Feb 2002, [ISO-8859-1] Jes Moya wrote:

Hi!. We have a problem with amrecover:

When we use it, we obtain this message:

machine:/home # /usr/local/sbin/amrecover daily
AMRECOVER Version 2.4.2p2. Contacting server on machine ...
220 machine AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2002-02-26)
200 Working date set to 2002-02-26.
200 Config set to Daily.
501 No index records for host: machine. Invalid?
Trying machine.domain.es ...
200 Dump host set to machine.domain.es.
Can't determine disk and mount point from $CWD
amrecover

what is our problem?




try the 'sethost SERVER_NAME_TO_RESTORE' and then 'setdisk /dev/sd0g'
using the appropriate listing from your disklist file, e.g. if you're
restoring ftp.domain.es:/dev/sd0a, you would enter 'sethost ftp.domain.es'
and then 'setdisk /dev/sd0a'.

Hope that helps.
 -- 
~
Doug Silver
Network Manager
Quantified Systems, Inc
~








Re: Problems with amrecover

2002-02-27 Thread Joshua Baker-LePain

On Wed, 27 Feb 2002 at 12:39pm, Jesús Moya wrote

 Well, we have tried this but with no result. Here is the output of the 
 process:
 
 machine:/home # /usr/local/sbin/amrecover nuevomundo
 AMRECOVER Version 2.4.2p2. Contacting server on machine ...
 220 machine AMANDA index server (2.4.2p2) ready.
 200 Access OK
 Setting restore date to today (2002-02-27)
 200 Working date set to 2002-02-27.
 200 Config set to daily.
 501 No index records for host: machine. Invalid?
 Trying machine.mydomain.es ...
 200 Dump host set to machine.mydomain.es.
 Can't determine disk and mount point from $CWD
 amrecover sethost machine.mydomain.es
 200 Dump host set to machine.mydomain.es.
 amrecover setdate 2002-02-27
 200 Working date set to 2002-02-27.
 amrecover setdisk /home
 501 No index records for disk: /home. Invalid?
 amrecover cd /home/compartido/Alberto/mp3_einar/
 Must select disk before setting directory
 amrecover setdisk /dev/sdb1
 501 No index records for disk: /dev/sdb1. Invalid?
 amrecover

What do your disklist entries for 'machine' look like?  Is indexing 
enabled?  Do you see index files in the indexdir defined in amanda.conf?  
If so, what do the contents look like?

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Re: Problems with amrecover

2002-02-27 Thread Jesús Moya

thanks for replaying!! :)

Well, my disklist:

# sample Amanda2 disklist file, derived from CS.UMD.EDU's disklist
#
# If your configuration is called, say, csd2, then this file normally goes
# in /etc/amanda/csd2/disklist.
#
# File format is:
#
#   hostname diskdev dumptype [spindle [interface]]
#
# where the dumptypes are defined by you in amanda.conf or in-line.

mordor.nuevomundo.es /home/compartido/Alberto/mp3_einar/ user-tar


Our index files:


amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es  cd 
_home_compartido_Alberto_mp3__einar_/
amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 

 ls

20020227_0.gz 20020227_1.gz 
amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 


 gzip -d 20020227_0.gz

The content of this files:


amanda@mordor:/usr/adm/amanda/nuevomundo/index/mordor.nuevomundo.es/_home_compartido_Alberto_mp3__einar_
 


 less 20020227_0

07437137211/./
 07437137211/./.AppleDouble/
07436474221/./kk.txt
07436732375/./.AppleDouble/.Parent


I think this files may be the problem. 


Joshua Baker-LePain wrote:

On Wed, 27 Feb 2002 at 12:39pm, Jesús Moya wrote

Well, we have tried this but with no result. Here is the output of the 
process:

machine:/home # /usr/local/sbin/amrecover nuevomundo
AMRECOVER Version 2.4.2p2. Contacting server on machine ...
220 machine AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2002-02-27)
200 Working date set to 2002-02-27.
200 Config set to daily.
501 No index records for host: machine. Invalid?
Trying machine.mydomain.es ...
200 Dump host set to machine.mydomain.es.
Can't determine disk and mount point from $CWD
amrecover sethost machine.mydomain.es
200 Dump host set to machine.mydomain.es.
amrecover setdate 2002-02-27
200 Working date set to 2002-02-27.
amrecover setdisk /home
501 No index records for disk: /home. Invalid?
amrecover cd /home/compartido/Alberto/mp3_einar/
Must select disk before setting directory
amrecover setdisk /dev/sdb1
501 No index records for disk: /dev/sdb1. Invalid?
amrecover


What do your disklist entries for 'machine' look like?  Is indexing 
enabled?  Do you see index files in the indexdir defined in amanda.conf?  
If so, what do the contents look like?







Re: Problems with amrecover

2002-02-27 Thread Joshua Baker-LePain

On Wed, 27 Feb 2002 at 4:10pm, Jesús Moya wrote

 thanks for replaying!! :)
 
 Well, my disklist:
 
 mordor.nuevomundo.es /home/compartido/Alberto/mp3_einar/ user-tar
 

Then you need to 'setdisk /home/compartido/Alberto/mp3_einar' to get 
amrecover to mount the right disk.  *However*...

  less 20020227_0
 
 07437137211/./
  07437137211/./.AppleDouble/
 07436474221/./kk.txt
 07436732375/./.AppleDouble/.Parent
 
 I think this files may be the problem. 

Yep.  You have corrupted index files due to a bad version of tar.  You 
need to be using at least GNUtar 1.13.19, available from alpha.gnu.org.  
Your backups are fine, but your index files are useless.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Re: Problems with amrecover

2002-02-27 Thread Jesús Moya


Thank you very much.

Yes, i understand, i was making a test backup in 
/home/compartido/Alberto/mp3_einar. I was wrong, ok

We have been using tar 1.13.17. I'm going to download and compile tar 
1.13.19, thanks again :)


Joshua Baker-LePain wrote:

On Wed, 27 Feb 2002 at 4:10pm, Jesús Moya wrote

thanks for replaying!! :)

Well, my disklist:

mordor.nuevomundo.es /home/compartido/Alberto/mp3_einar/ user-tar


Then you need to 'setdisk /home/compartido/Alberto/mp3_einar' to get 
amrecover to mount the right disk.  *However*...

less 20020227_0

07437137211/./
 07437137211/./.AppleDouble/
07436474221/./kk.txt
07436732375/./.AppleDouble/.Parent

I think this files may be the problem. 


Yep.  You have corrupted index files due to a bad version of tar.  You 
need to be using at least GNUtar 1.13.19, available from alpha.gnu.org.  
Your backups are fine, but your index files are useless.







Re: Problems with amrecover

2002-02-26 Thread Joshua Baker-LePain

On Tue, 26 Feb 2002 at 6:27pm, Jesús Moya wrote

 200 Dump host set to machine.domain.es.
 Can't determine disk and mount point from $CWD
 amrecover
 
 what is our problem?

Nothing, other than that you probably weren't in the root of a disklist 
entry when you ran amrecover.  Use 'setdisk' to tell amrecover what disk 
you want to retrieve files from.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Re: Problems with amrecover

2002-02-26 Thread Doug Silver

On Tue, 26 Feb 2002, [ISO-8859-1] Jesús Moya wrote:

 Hi!. We have a problem with amrecover:
 
 When we use it, we obtain this message:
 
 machine:/home # /usr/local/sbin/amrecover daily
 AMRECOVER Version 2.4.2p2. Contacting server on machine ...
 220 machine AMANDA index server (2.4.2p2) ready.
 200 Access OK
 Setting restore date to today (2002-02-26)
 200 Working date set to 2002-02-26.
 200 Config set to Daily.
 501 No index records for host: machine. Invalid?
 Trying machine.domain.es ...
 200 Dump host set to machine.domain.es.
 Can't determine disk and mount point from $CWD
 amrecover
 
 what is our problem?
 
 
 

try the 'sethost SERVER_NAME_TO_RESTORE' and then 'setdisk /dev/sd0g'
using the appropriate listing from your disklist file, e.g. if you're
restoring ftp.domain.es:/dev/sd0a, you would enter 'sethost ftp.domain.es'
and then 'setdisk /dev/sd0a'.

Hope that helps.
 -- 
~
Doug Silver
Network Manager
Quantified Systems, Inc
~




Re: Problems with amrecover

2002-02-26 Thread Frederic Saincy

Hi!

Joshua Baker-LePain [EMAIL PROTECTED] writes:

 Nothing, other than that you probably weren't in the root of a disklist 
 entry when you ran amrecover.  Use 'setdisk' to tell amrecover what disk 
 you want to retrieve files from.

I wonder something:

If disklist entries are directories (not disks) then, you must use
setdisk (even if amrecover were issuing in an disklist entry)

Is it right, or did i miss something ?

I am sorry, i have already post something talking about this:

first post.
http://groups.yahoo.com/group/amanda-users/messages/33524

configuration files  debug.
http://groups.yahoo.com/group/amanda-users/message/33526

Thank you and Bye.




Re: Problems with amrecover on Linux clients and Solaris Tape server

2001-12-07 Thread Joshua Baker-LePain

On Thu, 6 Dec 2001 at 4:04pm, José Vicente Núñez Zuleta wrote

 Error #1: I ran amrecover on the tape server and get
 some index not found errors:
 
Obvious question: Is indexing turned on.  Do your index files exist?  What 
do the contents look like?

 [root@lnxsrv0001 /root]# amrecover NEWBREAK
 AMRECOVER Version 2.4.2. Contacting server on
 lenbkx0001 ...
 
 I'm able to telnet the tape server port 10083
 (amidxtape), 10082 (amandaidx) but not the 10080
 (amanda) port (i got a connection refused error).
 
What distro?  Are the amanda ports TCP wrapped on the Solaris box?  Does 
lenbkx0001 resolve correctly on the Linux client?

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University





Re: Problems with amrecover on Linux clients and Solaris Tape server

2001-12-07 Thread José Vicente Núñez Zuleta

 --- Joshua Baker-LePain [EMAIL PROTECTED] escribió: 
On Thu, 6 Dec 2001 at 4:04pm, José Vicente Núñez
 Zuleta wrote
 
  Error #1: I ran amrecover on the tape server and
 get
  some index not found errors:
  
 Obvious question: Is indexing turned on.  Do your
 index files exist?  What 
 do the contents look like?

I turned the index parameter on my amanda.conf file
for the backups on the other clients and now appears
that i have some indexes. Not all the directories
contains indexes yet:

amrecover setdisk /export/data05
200 Disk set to /export/data05.
No index records for disk for specified date
If date correct, notify system administrator
amrecover setdisk /export/data03
200 Disk set to /export/data03.
No index records for disk for specified date
If date correct, notify system administrator
amrecover setdisk /export/data02
200 Disk set to /export/data02.
amrecover ls
2001-12-07 .
2001-12-07 nb_apps/
amrecover setdisk /export/data01
200 Disk set to /export/data01.
amrecover ls
2001-12-07 .
2001-12-07 nb_apps/

Do they will generate on the sucessive runs of Amanda?
Where i can finds the index files?

 
  [root@lnxsrv0001 /root]# amrecover NEWBREAK
  AMRECOVER Version 2.4.2. Contacting server on
  lenbkx0001 ...
  
  I'm able to telnet the tape server port 10083
  (amidxtape), 10082 (amandaidx) but not the 10080
  (amanda) port (i got a connection refused error).
  
 What distro?  Are the amanda ports TCP wrapped on
 the Solaris box?  Does 
 lenbkx0001 resolve correctly on the Linux client?
 

I'm not using TCPWrappers (yet) on this server and i'm
able to ping the box from my Linux client. I'ts weird
because i'm not able to reach the amanda daemon even
from the tape server (doing a telnet localhost 10080)
but amrecover works well there.

I double checked the daemon syntax in my
/etc/inetd.conf (i did a kill -HUP to the inetd daemon
to make sure that reloaded the config file):

# Amanda index server
amandaidx   stream  tcp nowait  amanda
 /home/amanda/libexec/amindexd   amindexd
# Amanda backup server
amidxtape   stream  tcp nowait  amanda
 /home/amanda/libexec/amidxtaped amidxtaped
# Amanda daemon
amanda  dgram   udp waitamanda
 /home/amanda/libexec/amandadamandad

Thanks for all your help so far!

JV

 -- 
 Joshua Baker-LePain
 Department of Biomedical Engineering
 Duke University
 
  

=
System Engineer, José Vicente Nuñez Zuleta ([EMAIL PROTECTED])
Newbreak System Administrator (http://www.newbreak.com)
Phone: 203-355-1511, 203-355-1510
Java 2 Certified Programmer
Java 2 Certified Developer

_
Do You Yahoo!?
¿Quieres armar tu própia página Web pero no sabes HTML?
Usa los asistentes de edición de Yahoo! Geocities
y tendrás un sitio en sólo unos minutos.
Visítanos en http://espanol.geocities.yahoo.com



Re: Problems with amrecover

2001-10-18 Thread Bernhard R. Erdmann

On Thu, Oct 18, 2001 at 12:05:46PM +0200, Jens Rohde wrote:
 Hi
 
 I'm stuck! - I've tried to get amrecover to work. There's no problem in
 selecting host, disk and files to recover, but when I try to do the actual
 recover I get the following error:
 
 amrecover extract
 
 Extracting files using tape drive /dev/nst1 on host devel.
 The following tapes are needed: EOS-011
 EOS-012
 
 Restoring files into directory /tmp
 Continue? [Y/n]: y
 
 Load tape EOS-011 now
 Continue? [Y/n]: y
 EOF, check amidxtaped.debug file on devel.
 amrecover: short block 0 bytes
 UNKNOWN file
 amrecover: Can't read file header
 extract_list - child returned non-zero status: 1
 Continue? [Y/n]:
 
 The debug file contains:
 
 amidxtaped: debug 1 pid 3112 ruid 1028 euid 1028 start time Thu Oct 18
 11:17:09 2001
 amidxtaped: version 2.4.2
  SECURITY USER root
 bsd security: remote host afs1.eos user root local user amanda
 amandahosts security check passed
  6
 amrestore_nargs=6
  -h
  -p
  /dev/nst1
  svabonius.eos.dk
  ^/etc$
  20011017
 Ready to execv amrestore with:
 path = /afs/eos.dk/sw/pack/amanda-2.4.2/sbin/amrestore
 argv[0] = amrestore
 argv[1] = -h
 argv[2] = -p
 argv[3] = /dev/nst1
 argv[4] = svabonius.eos.dk
 argv[5] = ^/etc$
 argv[6] = 20011017
 amrestore: could not open tape /dev/nst1: Permission denied

^ 

Here's the error. Please look at remote host afs1.eos user root local
user amanda.

Maybe you start amidxtaped as user amanda instead of root. Check
/etc/inetd.conf or /etc/xinetd*


 amidxtaped: amrestore terminated normally with status: 2
 Rewinding tape: no tape online
 amidxtaped: pid 3112 finish time Thu Oct 18 11:17:09 2001
 
 I've searched the mail-list archives but didn't find anything that applied
 to my problem (or at least I don't think so :) ).
 
 I have no problems with restoring files using mt and dd on the same
 tape/tape drive, so it is functioning.
 
 The server is running RedHat Linux 7.0, and I've tried both amanda 2.4.2
 and 2.4.2p2. Same result.
 
 So what do I do wrong here?
 
 -- 
 Jens Rohde, System Administrator
 ---
 Eastfork Object Space (EOS), Margrethepladsen 3, 8000  Aarhus C, Denmark
 Tel: +45 8732 8787 / Fax: +45 8732 8788
 
 



Re: Problems with amrecover/index/amcheck after tape problems

2001-07-26 Thread Chr. Rossmanith

I've pressed the send button too quickly and sent the answer to John only - here
is a copy for the mailing list...

Christina


 Hi John,

 John R. Jackson wrote:

  This is the content of our tapelist file. I think it should have more than
  one line?!?
  
  20010725 NEURO007 reuse
 
  Ooops.  You've lost your tapelist file, which is a very bad thing.
  That's why Amanda is asking about new tapes and complaining about backups
  being overwritten.
 
  It's also why I make a backup of it (and a lot of other critical Amanda
  files) before each run and save several copies, just in case.

 Is there a list of those critical files? And maybe a description which files are
 used for which purpose? Otherwise I just don't know what to backup manually
 before running amanda...

  You may be able to put it back together, though.  I just tried the
  following ksh code.  It finds the taper START line in each log.MMDD.NN
  file and rebuilds the tapelist file from that.
 
rm tapelist.log
cat log.* | grep '^START taper' | while read x x x datestamp x label x
do
  echo $datestamp $label reuse  tapelist.log
done
sort -rn  tapelist.log  tapelist.new
 
  At this point, you will hopefully have 25 tapes listed in tapelist.new.
  Look through it and make sure thing seem right.  In particular, make
  sure a tape is not listed twice.

 With this script I've gathered the information from /var/log/amanda/NEURO and
 .../oldlog together and got a tapelist.new which was too long (104 lines) and
 removed the oldest entries and now I have a nice tapelist again  :-)
 Your great...

  Check your current tapelist file.  It should be owned by your Amanda user
  and mode 0600.  Move it out of the way and copy tapelist.new to tapelist,
  setting the ownership and mode.
 
  Finally, try amadmin config tape again and see if it's happier.

 ...yes, it's singing and smiling all the time and requests tape NEURO009 for
 tonight (as expected  :-)   )

 Just amrecover is complaining about missing logfiles. The date 2001-07-19, which
 I'm interested in, isn't affected because this logfile exists. I think I could
 move the missing logfiles, which have obviously been moved too early, from oldlog
 to the log directory...

 Now amrecover finished successfully  :-)

 Thanks a lot for your help. Using amrecover is much more fun than using
 amrestore...

 Christina Rossmanith




Re: Problems with amrecover/index/amcheck after tape problems

2001-07-25 Thread Chr. Rossmanith

Hi John,

thank you for your quick response. This night the backup was finished
successfully but it tells a lot of overwriting backups on previous tapes.
I've attached just the NOTES section from tonights mail:

NOTES:
  planner: Last full dump of neuroserver:/home2 on tape
NEURO001 overwritten in 1 run.
  planner: Last full dump of neuroserver:/home3 on tape
NEURO003 overwritten in 1 run.
  planner: Last full dump of neuroserver:/var/spool/mail on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuro021:/var/lib/pgsql on tape
NEURO002 overwritten in 1 run.
  planner: Last full dump of neuro034:/home on tape NEURO002
overwritten in 1 run.
  planner: Last full dump of neuro057:/home on tape NEURO002
overwritten in 1 run.
  planner: Last full dump of neuro057:/usr on tape NEURO001
overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro068/HeineT on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro031/docu on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro040/dbase on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro040/liquid on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro040/texte on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro040/priv2000 on
tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro065/epilepsie
on tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro035/user$ on
tape NEURO001 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro027/schneider$
on tape NEURO002 overwritten in 1 run.
  planner: Last full dump of neuroserver://neuro055/genetic on
tape NEURO002 overwritten in 1 run.
  taper: tape NEURO007 kb 11427200 fm 23 [OK]


And for recovering a file from tonights backup I can use amrecover:

This is what amrecover tells me after start up and changing to the disk in
question:

neuroserver# ~backup/sbin/amrecover
AMRECOVER Version 2.4.2p1. Contacting server on neuroserver ...
220 neuroserver AMANDA index server (2.4.2p1) ready.
200 Access OK
Setting restore date to today (2001-07-25)
200 Working date set to 2001-07-25.
200 Config set to NEURO.
200 Dump host set to neuroserver.
Can't determine disk and mount point from $CWD
amrecover setdisk /opt/samba2.1
Scanning /opt/dumps...
200 Disk set to /opt/samba2.1.

BUT: setting the date to something earlier gives:

amrecover setdate 2001-07-12
200 Working date set to 2001-07-12.
No index records for cwd on new date
Setting cwd to mount point


John R. Jackson wrote:

 I'd like to recover a file from the backup using amrecover.
 Unfortunately amrecover tells me, that there is no index available for
 the given disk/date/host. BUT: As fas as I can see, there are all index
 files in the index directory /usr/adm/amanda...

 OK, let's tackle this problem first.

 It would help to see the actual amrecover messages (all of them), as
 well as know what version of Amanda you're using.

This is included in the amrecover message above...

 First, let's make sure the index files are where they should be.  Run:

   amgetconf config indexdir

$ amgetconf NEURO indexdir
/usr/adm/amanda/NEURO/index

 That points to the top level of the index directory.  Within there should
 be a directory for each of your clients.  The name will be the same as
 (or very close to -- '/' and whitespace are converted to '_' and '_'
 is converted to '__', but that's rare in a host name) the disklist entry.

 Within each client directory will be a directory for each disk.  Those
 names will be similar (see above) to the disk name, e.g. /dev/hda5
 would be _dev_hda5.

 Within a disk directory will be the gzip'ed index files.  They have
 a datestamp and level in the name, and you must have all of them back
 through the full dump preceeding the date you're requesting.

The directory content of indexdir/neuroserver/_opt_samba2.1 is

20010614_0.gz  20010622_1.gz  20010630_2.gz  20010710_0.gz  20010718_0.gz
20010615_1.gz  20010623_1.gz  20010703_0.gz  20010711_1.gz  20010719_1.gz
20010616_1.gz  20010626_0.gz  20010704_1.gz  20010712_0.gz  20010720_2.gz
20010619_2.gz  20010627_1.gz  20010705_1.gz  20010713_1.gz  20010721_2.gz
20010620_0.gz  20010628_1.gz  20010706_2.gz  20010714_1.gz  20010725_0.gz
20010621_1.gz  20010629_2.gz  20010707_2.gz  20010717_1.gz

Backups on Monday and Tuesday failed - index files from 2001-07-23 and
2001-07-24 are missing. If I understand you right, setting the date to
2001-07-19 should be successful, because the last full dump is from 07-18.
But this fails with the same error message as setting the date to 07-12
(amrecover message above).

 Also, if you're using GNU tar, make sure the files are formatted properly.
 If you look at the first few lines and they start with a large number, it
 means you're using a broken version of GNU tar.  You'll need to upgrade
 to 1.13.19 

Re: Problems with amrecover/index/amcheck after tape problems

2001-07-25 Thread John R. Jackson

This is the content of our tapelist file. I think it should have more than
one line?!?

20010725 NEURO007 reuse

Ooops.  You've lost your tapelist file, which is a very bad thing.
That's why Amanda is asking about new tapes and complaining about backups
being overwritten.

It's also why I make a backup of it (and a lot of other critical Amanda
files) before each run and save several copies, just in case.

You may be able to put it back together, though.  I just tried the
following ksh code.  It finds the taper START line in each log.MMDD.NN
file and rebuilds the tapelist file from that.

  rm tapelist.log
  cat log.* | grep '^START taper' | while read x x x datestamp x label x
  do
echo $datestamp $label reuse  tapelist.log
  done
  sort -rn  tapelist.log  tapelist.new

At this point, you will hopefully have 25 tapes listed in tapelist.new.
Look through it and make sure thing seem right.  In particular, make
sure a tape is not listed twice.

Check your current tapelist file.  It should be owned by your Amanda user
and mode 0600.  Move it out of the way and copy tapelist.new to tapelist,
setting the ownership and mode.

Finally, try amadmin config tape again and see if it's happier.

This is what amrecover tells me after start up and changing to the disk in
question: ...

However, I'm worried that you've also lost your log.MMDD.NN files.
That would explain why amrecover is mis-behaving.  And if you've lost
them, it's going to be harder to rebuild the tapelist file.  You might
be able to do it if you still have the amdump.NN files (basically with
the code from above, altered a bit to match the different file format).
But without the log.MMDD.NN files, amrecover is not going to work.

So, do you have the log.MMDD.NN files?  If not, are they on a backup
tape that could be restored?

You might also look in the oldlog directory.  If Amanda got rid of them,
they should be in there.

... The content of 20010719_1.gz looks like the
following lines and I think they are ok?!? ...

Yes, that looks fine (at least one thing is working right for you :-).

We are using amanda since March. Sometimes amcheck had problems accessing the
tape drive but it never had influence on the nightly backup. Until this week
:-(

I think something bad happened to the directory that has your tapelist,
and possibly the log.MMDD.NN files.  But it's unlikely Amanda did it.
More like somebody goofed with a find ... rm, rdist or something
like that.

Even if the index should be lost I should be able to restore old files using
amrestore?!?

Yes.

Christina Rossmanith

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



Re: Problems with amrecover/index/amcheck after tape problems

2001-07-24 Thread John R. Jackson

I'd like to recover a file from the backup using amrecover.
Unfortunately amrecover tells me, that there is no index available for
the given disk/date/host. BUT: As fas as I can see, there are all index
files in the index directory /usr/adm/amanda...

OK, let's tackle this problem first.

It would help to see the actual amrecover messages (all of them), as
well as know what version of Amanda you're using.

First, let's make sure the index files are where they should be.  Run:

  amgetconf config indexdir

That points to the top level of the index directory.  Within there should
be a directory for each of your clients.  The name will be the same as
(or very close to -- '/' and whitespace are converted to '_' and '_'
is converted to '__', but that's rare in a host name) the disklist entry.

Within each client directory will be a directory for each disk.  Those
names will be similar (see above) to the disk name, e.g. /dev/hda5
would be _dev_hda5.

Within a disk directory will be the gzip'ed index files.  They have
a datestamp and level in the name, and you must have all of them back
through the full dump preceeding the date you're requesting.

Also, if you're using GNU tar, make sure the files are formatted properly.
If you look at the first few lines and they start with a large number, it
means you're using a broken version of GNU tar.  You'll need to upgrade
to 1.13.19 (alpha.gnu.org), and those index files are pretty much junk
(unless you want to strip the leading number off of each line).

Make sure all the directories and files are readable by the Amanda user
(the one that runs amindexd from inetd/xinetd).

Next, run amadmin config find client disk and make sure it finds
backups from the date you're interested in back through a full dump.

The backups were flushed to the tape NEURO006 and I would have expected
that amanda requests tape NEURO007 next, but it tells me that it would
like a new tape.  ...

If Amanda asks for a new tape, it means the number of tapes in your
tapelist file is less than your tapecycle value.

Am I right that I would have been informed if one tape
were not enough for amflush?!?

One way or another.  If you have a tape changer configured, amflush
would have automatically advanced to another tape (up to runtapes),
just like amdump.

If you don't and amflush ran into end of tape, it would have reported
an error and told you it left some images in the holding disk.

If your holding disk is now empty, then the amflush probably worked.

Exactly what happened should have been documented in the amflush E-mail.

Something else is strange: after amflush I tried amcheck still having
tape NEURO006 in the tape drive. And amcheck was happy. It was happy
with NEURO007 as well.

That seems very wrong.

Are you sure amflush did anything to NEURO006?  If you run:

  amadmin config find some-client

(where some-client is a client you know was flushed) does it show
that tape?  Were any errors reported in the amflush E-mail?

Could the problems accessing the tape drive during the last days have
left some corrupt info files?!?

Not likely.

I would really be glad to get some advice where to look and what to do!

Take a very close look at your tapelist file and at your tapecycle value.
Also, amadmin config tape is a handy way to see what tape(s) Amanda
expects to use next.

Christina Rossmanith

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