zero byte index files...

2001-12-10 Thread ahmet ozturk


Hi,

When we run amrecover on one of our hosts, we get the 
following error message:
---
200 Dump host set to knidos.
$CWD '/root' is on disk 'hd4' mounted at '/'.
200 Disk set to hd4.
No index records for disk for specified date
If date correct, notify system administrator
Invalid directory - /root
---

We examined the index files and saw that they are empty.
In our configuration file index option is set to yes, and
for our other hosts, index files are created successfully.
We' ve suspected from the gnutar and we upgraded it from
v1.13 to v1.13.25, and we recompile amanda2.4.2.p1 both on
server and client, but nothing has changed.

did anybody face with this kind of problems?..

---
Ahmet Ozturk
METU-CC / Technical Support Groupw.



IndexFiles_CreateFromTape

2001-12-10 Thread ThomasRatliffDDS


What is the syntax to generate an index file from tape that is usable with
amrecover?

For some reason the MacOSX amanda clients fail to generate an index files.


thanks




RE: schedual line 10: syntax error - HELP

2001-12-10 Thread Dan Garthwaite

And in that header, look at the value of the reply-to.
Case in point, this message came to me, and not the list.

 -dan

 -Original Message-
 From: Jon LaBadie [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 08, 2001 11:06 PM
 To: Dan Garthwaite
 Subject: Re: schedual line 10: syntax error - HELP
 
 
 On Thu, Dec 06, 2001 at 09:51:07AM -0500, Dan Garthwaite wrote:
  Why doesn't this list set the REPLY-TO to amanda-users?
  
  End of included message 
 
 It does when I get them.  That is how I'm replying.
 Here is a chunk of the headers I got on this mail:
 
 
   From [EMAIL PROTECTED] Fri Dec  7 15:13:27 2001
   Received: from guiness.omniscient.com 
 (guiness.omniscient.com [64.134.101.78])
 ...
   Reply-To: [EMAIL PROTECTED]
  
   From: Dan Garthwaite [EMAIL PROTECTED]
   To: 'Jeff Pratt' [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Subject: RE: schedual line 10: syntax error - HELP
   Date: Thu, 6 Dec 2001 09:51:07 -0500
   Message-Id: 001101c17e65$7081dc80$[EMAIL PROTECTED]
 
 
 
 -- 
 Jon H. LaBadie  [EMAIL PROTECTED]
  JG Computing   [EMAIL PROTECTED]
  4455 Province Line Road(609) 252-0159
  Princeton, NJ  08540-4322  (609) 683-7220 (fax)
 



Having restore problems with 242p2

2001-12-10 Thread Marc Rassbach

(and somehost is not the real hostname, k?)
I got this advice from amrestore:
EOF, check amidxtaped.debug file on backup.int.somehost.com.

And, well I can't find said debug file.


here is how I got to this impass:
Using the 242p2 version allowing backups to disk directories

Once a day backup.int.eclipsemedia sucks down files to /backup/tape/tX.  
(Todays target for this e-mail t3)
And in /backup/tape/t3 sits:

t3/data:
0-backup03
0.backup03
1-web.int.somehost.com._etc.0
1.web.int.somehost.com._etc.0
2-backup.int.somehost.com._etc.0
2.backup.int.somehost.com._etc.0
3-web.int.somehost.com._usr_local_etc_apache.0
3.web.int.somehost.com._usr_local_etc_apache.0
4-web.int.somehost.com._var_spool_imap.0
4.web.int.somehost.com._var_spool_imap.0
5-web.int.somehost.com._root.0
5.web.int.somehost.com._root.0
6-web.int.somehost.com._database.0
6.web.int.somehost.com._database.0
7-web.int.somehost.com._ww1.0
7.web.int.somehost.com._ww1.0
8-TAPEEND
8.TAPEEND
backup#

And in 5.web.int.somehost.com._root.0 is the files I want.  I can get
them with a lop off 32K bytes from the front and guntar.  But I'd rather 
use amrecover.

So on web.int.somehost.com I type:
 amrecover -C backup -s backup.int.somehost.com

AMRECOVER Version 2.4.2p2. Contacting server on backup.int.somehost.com ...
220 backup AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2001-11-06)
200 Working date set to 2001-11-06.
200 Config set to backup.
501 No index records for host: web.somehost.com. Invalid?
Trying host web.somehost.com ...
501 No index records for host: web.somehost.com. Invalid?
Trying host web.somehost.com ...
501 No index records for host: web.somehost.com. Invalid?
amrecover sethost web.int.somehost.com
200 Dump host set to web.int.somehost.com.
200 Dump host set to web.int.somehost.com.
amrecover setdate 2001-11-05
200 Working date set to 2001-11-05.
amrecover setdisk /root
Warning: no log files found for tape backup30 written0-00-00
Warning: no log files found for tape backup29 written0-00-00
Warning: no log files found for tape backup28 written0-00-00
Warning: no log files found for tape backup27 written0-00-00
Warning: no log files found for tape backup26 written0-00-00
Warning: no log files found for tape backup25 written0-00-00
Warning: no log files found for tape backup24 written0-00-00
Warning: no log files found for tape backup23 written0-00-00
Warning: no log files found for tape backup22 written0-00-00
Warning: no log files found for tape backup21 written0-00-00
Warning: no log files found for tape backup20 written0-00-00
Warning: no log files found for tape backup19 written0-00-00
Warning: no log files found for tape backup18 written0-00-00
Warning: no log files found for tape backup17 written0-00-00
Warning: no log files found for tape backup16 written0-00-00
Warning: no log files found for tape backup15 written0-00-00
Warning: no log files found for tape backup14 written0-00-00
Warning: no log files found for tape backup13 written0-00-00
Warning: no log files found for tape backup12 written0-00-00
Warning: no log files found for tape backup11 written0-00-00
Warning: no log files found for tape backup10 written0-00-00
Warning: no log files found for tape backup09 written0-00-00
Warning: no log files found for tape backup08 written0-00-00
Warning: no log files found for tape backup07 written0-00-00
Warning: no log files found for tape backup05 written0-00-00
Warning: no log files found for tape backup04 written0-00-00
Scanning /dumps/amanda...
  20010801: found Amanda directory.
200 Disk set to /root.
amrecover 
Scanning /dumps/amanda...
  20010801: found Amanda directory.
200 Disk set to /root.
amrecover settape backup.int.somehost.com:default
Using default tape from server backup.int.somehost.com.
amrecover ls
2001-10-18 .
2001-10-13 .cshrc
2001-10-18 .history
2001-10-13 .klogin
2001-10-13 .login
2001-10-13 .pinerc
2001-10-13 .profile
2001-10-13 .psql_history
2001-10-13 .rnd
2001-10-13 .saves-26276-web.somehost.com~
2001-10-13 .saves-6214-web.somehost.com~
2001-10-18 .ssh/
2001-10-13 .vacation.db
2001-10-13 analogimages
2001-10-13 architextSearch.core
2001-10-13 copy.pl
2001-10-13 daily.bak
2001-10-13 daily.cgi
2001-10-13 daily_joeker.cgi
2001-10-13 daily_wtgray.cgi
2001-10-13 db_bak.sh
2001-10-13 dns
2001-10-13 dns.bak
2001-10-13 dnsjoeker
2001-10-13 dnswtgray
2001-10-18 mail/
2001-10-13 mbox
2001-10-13 monthly_wtgray.cgi
2001-10-18 src/
2001-10-13 test
2001-10-13 using_tar.txt
amrecover 
   amrecover lcd /root
amrecover pwd
/root
amrecover add dai*
Added /daily.bak
Added /daily.cgi
Added /daily_joeker.cgi
Added /daily_wtgray.cgi
amrecover extract
amrecover: warning: using /dev/null as the tape device will not work

Extracting files using tape drive /dev/null on host backup.int.somehost.com.
The following 

Re: Having restore problems with 242p2

2001-12-10 Thread Jean-Louis Martineau

Hello Marc,

What is the tape device you want to recover from? The one in your
configuration file.

Is it 'file:/backup/tape/t3'

Then use it.

settape backup.int.somehost.com:file:/backup/tape/t3

Jean-Louis

On Mon, Dec 10, 2001 at 12:49:24PM -0600, Marc Rassbach wrote:
 (and somehost is not the real hostname, k?)
 I got this advice from amrestore:
 EOF, check amidxtaped.debug file on backup.int.somehost.com.
 
 And, well I can't find said debug file.
 
 
 here is how I got to this impass:
 Using the 242p2 version allowing backups to disk directories
 
 Once a day backup.int.eclipsemedia sucks down files to /backup/tape/tX.  
 (Todays target for this e-mail t3)
 And in /backup/tape/t3 sits:
 
 t3/data:
 0-backup03
 0.backup03
 1-web.int.somehost.com._etc.0
 1.web.int.somehost.com._etc.0
 2-backup.int.somehost.com._etc.0
 2.backup.int.somehost.com._etc.0
 3-web.int.somehost.com._usr_local_etc_apache.0
 3.web.int.somehost.com._usr_local_etc_apache.0
 4-web.int.somehost.com._var_spool_imap.0
 4.web.int.somehost.com._var_spool_imap.0
 5-web.int.somehost.com._root.0
 5.web.int.somehost.com._root.0
 6-web.int.somehost.com._database.0
 6.web.int.somehost.com._database.0
 7-web.int.somehost.com._ww1.0
 7.web.int.somehost.com._ww1.0
 8-TAPEEND
 8.TAPEEND
 backup#
 
 And in 5.web.int.somehost.com._root.0 is the files I want.  I can get
 them with a lop off 32K bytes from the front and guntar.  But I'd rather 
 use amrecover.
 
 So on web.int.somehost.com I type:
  amrecover -C backup -s backup.int.somehost.com
 
 AMRECOVER Version 2.4.2p2. Contacting server on backup.int.somehost.com ...
 220 backup AMANDA index server (2.4.2p2) ready.
 200 Access OK
 Setting restore date to today (2001-11-06)
 200 Working date set to 2001-11-06.
 200 Config set to backup.
 501 No index records for host: web.somehost.com. Invalid?
 Trying host web.somehost.com ...
 501 No index records for host: web.somehost.com. Invalid?
 Trying host web.somehost.com ...
 501 No index records for host: web.somehost.com. Invalid?
 amrecover sethost web.int.somehost.com
 200 Dump host set to web.int.somehost.com.
 200 Dump host set to web.int.somehost.com.
 amrecover setdate 2001-11-05
 200 Working date set to 2001-11-05.
 amrecover setdisk /root
 Warning: no log files found for tape backup30 written0-00-00
 Warning: no log files found for tape backup29 written0-00-00
 Warning: no log files found for tape backup28 written0-00-00
 Warning: no log files found for tape backup27 written0-00-00
 Warning: no log files found for tape backup26 written0-00-00
 Warning: no log files found for tape backup25 written0-00-00
 Warning: no log files found for tape backup24 written0-00-00
 Warning: no log files found for tape backup23 written0-00-00
 Warning: no log files found for tape backup22 written0-00-00
 Warning: no log files found for tape backup21 written0-00-00
 Warning: no log files found for tape backup20 written0-00-00
 Warning: no log files found for tape backup19 written0-00-00
 Warning: no log files found for tape backup18 written0-00-00
 Warning: no log files found for tape backup17 written0-00-00
 Warning: no log files found for tape backup16 written0-00-00
 Warning: no log files found for tape backup15 written0-00-00
 Warning: no log files found for tape backup14 written0-00-00
 Warning: no log files found for tape backup13 written0-00-00
 Warning: no log files found for tape backup12 written0-00-00
 Warning: no log files found for tape backup11 written0-00-00
 Warning: no log files found for tape backup10 written0-00-00
 Warning: no log files found for tape backup09 written0-00-00
 Warning: no log files found for tape backup08 written0-00-00
 Warning: no log files found for tape backup07 written0-00-00
 Warning: no log files found for tape backup05 written0-00-00
 Warning: no log files found for tape backup04 written0-00-00
 Scanning /dumps/amanda...
   20010801: found Amanda directory.
 200 Disk set to /root.
 amrecover 
 Scanning /dumps/amanda...
   20010801: found Amanda directory.
 200 Disk set to /root.
 amrecover settape backup.int.somehost.com:default
 Using default tape from server backup.int.somehost.com.
 amrecover ls
 2001-10-18 .
 2001-10-13 .cshrc
 2001-10-18 .history
 2001-10-13 .klogin
 2001-10-13 .login
 2001-10-13 .pinerc
 2001-10-13 .profile
 2001-10-13 .psql_history
 2001-10-13 .rnd
 2001-10-13 .saves-26276-web.somehost.com~
 2001-10-13 .saves-6214-web.somehost.com~
 2001-10-18 .ssh/
 2001-10-13 .vacation.db
 2001-10-13 analogimages
 2001-10-13 architextSearch.core
 2001-10-13 copy.pl
 2001-10-13 daily.bak
 2001-10-13 daily.cgi
 2001-10-13 daily_joeker.cgi
 2001-10-13 daily_wtgray.cgi
 2001-10-13 db_bak.sh
 2001-10-13 dns
 2001-10-13 dns.bak
 2001-10-13 dnsjoeker
 2001-10-13 dnswtgray
 2001-10-18 mail/
 2001-10-13 mbox
 2001-10-13 

Re: [Amanda-users] Newbie: Can't get amanda user to work

2001-12-10 Thread Jason Thomas

On Mon, Dec 10, 2001 at 05:05:21PM -0500, KEVIN ZEMBOWER wrote:
 Amanda Backup Client Hosts Check
 
 ERROR: admin: [access as amanda not allowed from
 [EMAIL PROTECTED]] amandahostsauth failed
 Client check: 1 host checked in 0.029 seconds, 1 problem found
 
 (brought to you by Amanda 2.4.3b1)
 admin:/home/amanda # 
 
 Yet, I have a .amandahosts file with what I think are the proper
 contents and permissions:
 admin:/home/amanda # ll /home/amanda/.amandahosts 
 -rw-r--r--1 amanda   disk   30 Dec 10 16:36
 /home/amanda/.amandahosts
 admin:/home/amanda # cat /home/amanda/.amandahosts   
 admin   [EMAIL PROTECTED]

what you want in your .amandahosts file is:
admin.jhuccp.org amanda

and your permissions should be:
-rw---1 amanda   disk   30 Dec 10 16:36

the permissions will only cause problems with I think 2.5.0 and on, but
its safer with these perms anyway.



msg08830/pgp0.pgp
Description: PGP signature


Re: Newbie: Can't get amanda user to work

2001-12-10 Thread Ana Maria Escalante

Hi Kevin:
 I am not sure if I understood everything from your message, but it is
not clear to me, which user will be doing the backups from the server
(amanda is the default user) and whether your client machine is the same
as your server.
 You must have a .amandahosts file in the client amanda home
directory, that gives access to amanda user from the server machine.
 In my setup, my backup admin acount is amanda, my server is
server.domain.mx and my client is client.domain.mx. I have an .amandahosts
file in amanda´s home directory in the client with the following line:

server.domain.mxamanda

 You will also need an .amandahosts file in the server´s amanda´s home
directory, with the client machines name and root as the authorized user,
in order to recover from the clients, but that is another story.
 If you have a .rhosts file in your clients amanda´s home directory,
it must have this same line. I have heard about it :)
 Hope this helps. Good luck ... Ana Maria

On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote:

 I'm trying to get my first setup of amanda working. Running amcheck
 gives me:
 admin:/home/amanda # su amanda -c /usr/local/sbin/amcheck DailySet1
 Amanda Tape Server Host Check
 -
 Holding disk /var/amanda: 5807968 KB disk space available, that's
 plenty
 NOTE: skipping tape-writable test
 Tape DailySet101 label ok
 NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does not
 exist
 NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does not
 exist
 NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does not
 exist
 Server check took 16.516 seconds
 
 Amanda Backup Client Hosts Check
 
 ERROR: admin: [access as amanda not allowed from
 [EMAIL PROTECTED]] amandahostsauth failed
 Client check: 1 host checked in 0.029 seconds, 1 problem found
 
 (brought to you by Amanda 2.4.3b1)
 admin:/home/amanda # 
 
 Yet, I have a .amandahosts file with what I think are the proper
 contents and permissions:
 admin:/home/amanda # ll /home/amanda/.amandahosts 
 -rw-r--r--1 amanda   disk   30 Dec 10 16:36
 /home/amanda/.amandahosts
 admin:/home/amanda # cat /home/amanda/.amandahosts   
 admin   [EMAIL PROTECTED]
 admin:/home/amanda # 
 
 I'm stumped. I've tried or checked all the suggestions in the
 FAQ-a-matic for this topic. It's probably something simple, that I don't
 see because I'm new to amanda. Any suggestions?
 
 Thanks for your help.
 
 -Kevin Zembower
 
 -
 E. Kevin Zembower
 Unix Administrator
 Johns Hopkins University/Center for Communications Programs
 111 Market Place, Suite 310
 Baltimore, MD  21202
 410-659-6139
 




Re: 2.4.3b2 chg-scsi not compiled

2001-12-10 Thread Jean-Louis Martineau

Hello Dan,

I didn't know 2.4.3b2 was released :-)

Could you try this patch.

Jean-Louis

On Mon, Dec 10, 2001 at 05:42:36PM -0500, Dan Garthwaite wrote:
 As in it was skipped.  I haven't investigated deeply enough to see if it was
 a './configure' option I missed.  cd'ing into changer-src and 'make
 chg-scsi' built it, but then 'make install' didn't install it, 'cp' worked.
 
 Just reporting in.  Should this go to amanda-hackers?
   -Dan Garthwaite

-- 
Jean-Louis Martineau email: [EMAIL PROTECTED] 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLETel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7Fax: (514) 343-5834


--- changer-src/Makefile.am.1   Mon Dec 10 21:34:47 2001
+++ changer-src/Makefile.am Mon Dec 10 22:09:44 2001
@@ -13,8 +13,10 @@
 endif
 
 if WANT_CHG_SCSI
-libexec_PROGRAMS = chg-scsi $(CHIO_SCSI)
+CHG_SCSI = chg-scsi
 endif
+
+libexec_PROGRAMS = $(CHG_SCSI) $(CHIO_SCSI)
 
 libexec_SCRIPTS =  chg-manual  chg-multi   chg-mtx \
chg-rth chg-chs chg-chio\



Dump reports negative disk size

2001-12-10 Thread Ross George

When I run amdump, the following message appears (presumably due to the 
hard drive being too big):
The system is FreeBSD 4.0, with Amanda 2.4.2p2.

thanks,
Ross.

FAILED AND STRANGE DUMP DETAILS:

/-- xxx /exports/mail lev 0 FAILED [/sbin/dump returned 3]
sendbackup: start [xxx.xxx.net.au:/exports/mail level 0]
sendbackup: info BACKUP=/sbin/dump
sendbackup: info RECOVER_CMD=/sbin/restore -f... -
sendbackup: info end
|   DUMP: Date of this level 0 dump: Wed Nov 28 12:42:34 2001
|   DUMP: Date of last level 0 dump: the epoch
|   DUMP: Dumping /dev/rmlxd0c (/exports/mail) to standard output
|   DUMP: mapping (Pass I) [regular files]
|   DUMP: mapping (Pass II) [directories]
|   DUMP: estimated 22194864 tape blocks.
|   DUMP: dumping (Pass III) [directories]
|   DUMP: dumping (Pass IV) [regular files]
|   DUMP: 1.60% done, finished in 5:07
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [block 
-225809704]: count=7168
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [sector 
-225809704]: count=512
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [sector 
-225809703]: count=512
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [sector 
-225809702]: count=512
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [sector 
-225809701]: count=512
?   DUMP: read error from /dev/rmlxd0c: Invalid argument: [sector 
-225809700]: count=512