Checking for missing files.

2002-08-27 Thread Trevor Fraser

Hello all.

Is there a way of checking what is on the tape against what is on the disk,
to show missing or renamed files on a large scale?

Thanks, Trevor.

=
Stussy said:Knowledge is King!
=




Re: Checking for missing files.

2002-08-27 Thread Jon LaBadie

On Tue, Aug 27, 2002 at 02:55:02PM +0200, Trevor Fraser wrote:
 Hello all.
 
 Is there a way of checking what is on the tape against what is on the disk,
 to show missing or renamed files on a large scale?
 

Not clear on the objective.

Do you mean determine that tape-x has the dumps of /a and /b and /c done
on date y, i.e. a toc of the tape files?  

Or do you mean the dump of /a on tape-x contains the files /a/foo/, /a/bar,
/a/foo/xyz, i.e. a toc of the individual dumps?

And do you further mean what is actually on the tape, or what amanda believes
she put there.

I think there are positive, though different replies to each.

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



mt rewind strangness

2002-08-27 Thread Jon LaBadie

Has anyone else noted this behavior?
mt rewind returns (completes) before tape is rewound


Specifically,

When I issue an mt rewind from a shell command line,
the tape begins to rewind (lights on drive blinking)
and after about 10 seconds the mt command completes
and I get my shell prompt for the next command.

However, the tape has not yet rewound completely,
the drive lights are still blinking.

If I issue a second mt command (another rewind or status)
that command blocks until the tape is completely rewound
before executing and returning.


I'm wondering if this is why my amcheck command sometimes
fails to find the correct tape in my changer though amdump
always does.  Perhaps amcheck does an mt rewind and  it
returns before the tape drive is done rewinding.  Then
amcheck might issue a command that times-out rather than
blocking and thus amcheck thinks that slot has no or the
wrong tape.

Just musing.

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



Re: mt rewind strangness

2002-08-27 Thread Frank Smith

--On Tuesday, August 27, 2002 10:28:02 -0400 Jon LaBadie [EMAIL PROTECTED] wrote:

 Has anyone else noted this behavior?
 mt rewind returns (completes) before tape is rewound

Yes, it seems to be fairly a common behavior of tape drives.
Back in the days when I had to write shell scripts to do
backups, I always threw in a sleep call after any tape command.
Not all commands needed it, but wasting a few seconds on a
several hour job was much better than the random error that
would cause the entire job to fail.


Frank

 Specifically,

 When I issue an mt rewind from a shell command line,
 the tape begins to rewind (lights on drive blinking)
 and after about 10 seconds the mt command completes
 and I get my shell prompt for the next command.

 However, the tape has not yet rewound completely,
 the drive lights are still blinking.

 If I issue a second mt command (another rewind or status)
 that command blocks until the tape is completely rewound
 before executing and returning.


 I'm wondering if this is why my amcheck command sometimes
 fails to find the correct tape in my changer though amdump
 always does.  Perhaps amcheck does an mt rewind and  it
 returns before the tape drive is done rewinding.  Then
 amcheck might issue a command that times-out rather than
 blocking and thus amcheck thinks that slot has no or the
 wrong tape.

 Just musing.

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



--
Frank Smith[EMAIL PROTECTED]
Systems Administrator Voice: 512-374-4673
Hoover's Online Fax: 512-374-4501



Re: mt rewind strangness

2002-08-27 Thread Gene Heskett

On Tuesday 27 August 2002 10:28, Jon LaBadie wrote:
Has anyone else noted this behavior?
mt rewind returns (completes) before tape is rewound

Talking to yourself again Jon? :-)


Specifically,

When I issue an mt rewind from a shell command line,
the tape begins to rewind (lights on drive blinking)
and after about 10 seconds the mt command completes
and I get my shell prompt for the next command.

However, the tape has not yet rewound completely,
the drive lights are still blinking.

If I issue a second mt command (another rewind or status)
that command blocks until the tape is completely rewound
before executing and returning.


I'm wondering if this is why my amcheck command sometimes
fails to find the correct tape in my changer though amdump
always does.  Perhaps amcheck does an mt rewind and  it
returns before the tape drive is done rewinding.  Then
amcheck might issue a command that times-out rather than
blocking and thus amcheck thinks that slot has no or the
wrong tape.

Just musing.

Its a good muse, and I don't know an answer unless its to do with 
something local to your system.  mt -f /dev/nst0 rewind does an 
absolute block until the rewind is complete here on a linux 2.4.19 
athlon system, and always has.

There was a point about 6 or 8 months back up the log when the 
command in amanda was broken, wrong ioctl or something, but when 
that occured, the drive had never seen that command at all.  And 
that gave us a lot of false can't find label such and such reports 
at the time.

Have you built and installed the 20020826 snapshot yet?  I need to 
do that yet today, I'm still on 20020823 here.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.13% setiathome rank, not too shabby for a WV hillbilly



Re: Checking for missing files.

2002-08-27 Thread Trevor Fraser

Hi Jon.

Thanks for the reply.

My objective is when someone accidentally deletes files and doesn't know
what file they were, to compare what Amanda has on tape and what is on the
file system to see what is different, so I don't have to manually search the
tape and the file system to see what is missing and what to restore.

Thanks, Trevor.

=
Stussy said:Knowledge is King!
=
- Original Message -
From: Jon LaBadie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 3:58 PM
Subject: Re: Checking for missing files.


 On Tue, Aug 27, 2002 at 02:55:02PM +0200, Trevor Fraser wrote:
  Hello all.
 
  Is there a way of checking what is on the tape against what is on the
disk,
  to show missing or renamed files on a large scale?
 

 Not clear on the objective.

 Do you mean determine that tape-x has the dumps of /a and /b and /c done
 on date y, i.e. a toc of the tape files?

 Or do you mean the dump of /a on tape-x contains the files /a/foo/,
/a/bar,
 /a/foo/xyz, i.e. a toc of the individual dumps?

 And do you further mean what is actually on the tape, or what amanda
believes
 she put there.

 I think there are positive, though different replies to each.

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




Re: mt rewind strangness

2002-08-27 Thread Jon LaBadie

On Tue, Aug 27, 2002 at 10:10:07AM -0500, Frank Smith wrote:
 --On Tuesday, August 27, 2002 10:28:02 -0400 Jon LaBadie [EMAIL PROTECTED] 
 wrote:
 
 Has anyone else noted this behavior?
 mt rewind returns (completes) before tape is rewound
 
 Yes, it seems to be fairly a common behavior of tape drives.
 Back in the days when I had to write shell scripts to do
 backups, I always threw in a sleep call after any tape command.
 Not all commands needed it, but wasting a few seconds on a
 several hour job was much better than the random error that
 would cause the entire job to fail.
 

I was thinking along the same lines except I was not sure of an
appropriate nap time.  My thought was to do an mt status  /dev/null
after the mt rewind.  Since that blocks it would come back immediately
or wait an appropriate time.

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



Re: Checking for missing files.

2002-08-27 Thread Jon LaBadie

On Tue, Aug 27, 2002 at 05:30:58PM +0200, Trevor Fraser wrote:
 Hi Jon.
 
 Thanks for the reply.
 
 My objective is when someone accidentally deletes files and doesn't know
 what file they were, to compare what Amanda has on tape and what is on the
 file system to see what is different, so I don't have to manually search the
 tape and the file system to see what is missing and what to restore.
 
 Thanks, Trevor.

Ahh, then probably the regular indexes will be sufficient.

I presume you are recording, then you have an indexdir defined.
In that indexdir will be subdirs for each host.
Under the host dir will be subdirs with names based on the disklist entries.
In these names the / are replaced with _.

My approach would be to make a list of everything the user currently has
and compare it to what the index shows is on tape.  Assume the user is shmo
As root:

   cd ~shmo/..  # one level above shmo
   find shmo  /tmp/shmo-current
   # or two levels and do a   find home/shmo
   sort -o /tmp/shmo-current /tmp/shmo-current

   cd amanda-index-dir-for-shmo's-filesystem
   # note all the backups since the last level 0.
   # in my case that would be 20020823_0.gz
   # 20020824_1.gz 20020826_1.gz 20020827_2.gz

   for f in 20020823_0.gz 20020824_1.gz 20020826_1.gz 20020827_2.gz
   do
gzip -dc  $f | grep /shmo/ | sed 's,/$,,'
   done | sort | uniq  /tmp/shmo-tape

   # or the command might look for /home/shmo if appropriate
   # the sed is to remove any trailing /s on dir names that my indexes
   # have, but the find does not.

   # now you may have to edit one or the other file to make the leading
   # part of each line the same  For example, the find may not have a /
   # at the start or might need /home/ added to one file or deleted
   # from the other.

Now you have two sorted lists, what is in shmo's directory tree currently
and what is on tape in at least one of the most recent backup set.
Of course the for f in ... loop could have been done on all index files
to go further back.

To compare them use the comm command:

# files on tape but not in current dir tree
comm -13 /tmp/shmo-current /tmp/shmo-tape

# files in current dir tree, not on tape
comm -23 /tmp/shmo-current /tmp/shmo-tape

# files in both
comm -12 /tmp/shmo-current /tmp/shmo-tape

Another approach is to amrecover the entire /home/shmo tree in some tmp dir.
Then do a dircmp of shmos' current tree with the tmp tree.  Then you already
have the files on disk and can simply copy them.

Hope these make sense and help.  Maybe someone else has alternative approaches.

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



Ongoing issues

2002-08-27 Thread Larry Dunham

I know I've seen this issue here thousand times but I've tried everything I
have been able to find, to no avail.  When running amcheck as the backup
user I'm getting the classic access to [problemhost] not allowed from
[backupuser@problemhost]

This Amanda installation also backs up remote machines with no problem; it
just won't access the local machine to back itself up.

Things I've Checked:
1)  .amandahosts permissions are set to -rw---
2)  .amandahosts is owned by the backup user
3)  .amandahosts has entries
[problemhost]  [root]
[problemhost]  [backupuser]

4)  the machine is listed in the disklist file (obviously, or it wouldn't
generate the error)
5)  xinetd.d has an 'amanda' file with the correct backup user shown
6)  all of the executables in /usr/local/sbin are owned by the backup user
(except amcheck which is owned by root)
7)  all of the executables in /usr/local/sbin have permissions rwxr-xr-x
(except amcheck which is rwsr-xr-x)

By the way we also have another Amanda server backing up itself and some
remote machines, and it works fine, and all the above things (except host
names, of course) are identical to the machine that works ok.  What am I
missing?

Larry Dunham





Re: Ongoing issues

2002-08-27 Thread Joshua Baker-LePain

On Tue, 27 Aug 2002 at 11:33am, Larry Dunham wrote

 I know I've seen this issue here thousand times but I've tried everything I
 have been able to find, to no avail.  When running amcheck as the backup
 user I'm getting the classic access to [problemhost] not allowed from
 [backupuser@problemhost]
 
 Things I've Checked:
 1)  .amandahosts permissions are set to -rw---
 2)  .amandahosts is owned by the backup user
 3)  .amandahosts has entries
   [problemhost]  [root]
   [problemhost]  [backupuser]

Is .amandahosts in the $HOME listed for the backupuser in /etc/passwd?

What are the contents of /tmp/amanda/amandad*debug?

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




AMRECOVER Not Working

2002-08-27 Thread eric . swindell

I've installed Amanda version 2.4.2p2 and have not been  
able to get amrecover to work.
  
For example, the backup server name is  
backup.rnd.caribbeanblue.com, the only filesystem to  
back up is /etc on backup.rnd.caribbeanblue.com, and  
amrecover is run from the backup server.
 
Running amrecover produces the following: 
backup:/ # /usr/sbin/amrecover -C daily -s 
backup.rnd.caribbeanblue.com 
 
AMRECOVER Version 2.4.2p2. Contacting server on 
backup.rnd.caribbeanblue.com ... 
amrecover: Unexpected server end of file 
  
/tmp/amanda's amrecover.debug file is:  
amrecover: debug 1 pid 1225 ruid 0 euid 0 start time  
Tue Aug 27 13:01:06 2002  
amrecover: stream_client: connected to  
192.168.1.7.10082  
amrecover: stream_client: our side is 0.0.0.0.811  
  
/tmp/amanda's amindexd.debug file is:  
amindexd: debug 1 pid 1226 ruid 37 euid 37 start time  
Tue Aug 27 13:01:06 2002  
amindexd: version 2.4.2p2  
 
I've checked /etc/services and /etc/inetd.conf.  
.amandahosts has backup with root as well as amanda. 
 
Any help would greatly be appreciated.  Thanks. 
 
Eric 
 
  



host name lookup failed

2002-08-27 Thread Larry Dunham

Pardon my ignorance here, I'm fairly new to the Linux OS, so I'm sure this
is old hat to many of you, but...

We recently replaced a machine that an Amanda server was backing up
remotely--it was working beautifully before.  We put it at the same IP
address, but gave it a different machine name.  The first time we ssh'd to
it, got the standard message that the RSA key was missing, so we regenerated
the keys for the new machine.  Then I deleted the machine from my
Known_Hosts file and connected from my Amanda server and accepted the new
key. Now I can ssh with no problem, although I have to ssh to the old name,
and the prompt shows the new name.   If I try to ssh to the new name
directly, I get a Name or service not known error.  I can live with that.
My problem is getting the new machine backed up using the Amanda server.

At first, I was getting a FAILED report from Amanda regarding that machine
(data timeout).  Then I remembered that I had not set up the Amanda client
in xinetd, so I added the Amanda service and restarted xinetd.  I wasn't
sure how to list the machine name in my Amanda disklist file, so as an
experiment, I listed both names and also the IP address of the client in
disklist and ran Amcheck.  I get the message

ERROR: (newclientname): [addr (IP address of local Amanda server): hostname
lookup failed]
ERROR: (oldclientname): [addr (IP address of local Amanda server): hostname
lookup failed]
ERROR: (clientIPaddress): [addr (IP address of local Amanda server):
hostname lookup failed]

This Amanda server continues to back up other clients without failure.
Since amcheck can't find the remote client using its IP address, I'm
assuming it's not a DNS issue.  Any ideas?

Larry Dunham




attachment: winmail.dat

Backing the backup server

2002-08-27 Thread Craig Hancock [EMAIL PROTECTED]


I am trying to backup the backup server in amanda 
and I am a little confused on how to go about it
from the documentation you setup a .amandahosts file on the
server and the client. Is an entry for the backup
server need to be there. If so what should the 
connect as user be 
1) amanda
2) root


If this is not the case then how does one configure 
the backup server?

Craig Hancock


-- 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9P+Y5awsElDuSDs0RAgxoAJ40NBfXWSP5dwsRK6AWZRXP6fNm+wCgpWf4
MwLEwsq3TDVGR8ntq3+w65k=
=qTeY
-END PGP SIGNATURE-



Re: Backing the backup server

2002-08-27 Thread Frank Smith

--On Tuesday, August 27, 2002 13:27:10 -0500 Craig Hancock [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 I am trying to backup the backup server in amanda
 and I am a little confused on how to go about it
 from the documentation you setup a .amandahosts file on the
 server and the client. Is an entry for the backup
 server need to be there. If so what should the
 connect as user be
 1) amanda
 2) root

For backups, the user is amanda (or whatever you defined it
to be if you changed it), and the line should be

server.domain.name amanda

Don't forget to make sure that amanda owns it and it is only
readable (and writable) by amanda.


 If this is not the case then how does one configure
 the backup server?

The amandahosts file on the server should contain the same line
as on the clients, except that you will need additional lines on
the server in the form of

client.domain.name root

in order to restore directly on the clients.

Frank

 Craig Hancock


 --
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE9P+Y5awsElDuSDs0RAgxoAJ40NBfXWSP5dwsRK6AWZRXP6fNm+wCgpWf4
 MwLEwsq3TDVGR8ntq3+w65k=
 =qTeY
 -END PGP SIGNATURE-



--
Frank Smith[EMAIL PROTECTED]
Systems Administrator Voice: 512-374-4673
Hoover's Online Fax: 512-374-4501



Re: Backing the backup server

2002-08-27 Thread Craig Hancock [EMAIL PROTECTED]

On Tue, Aug 27, 2002 at 02:37:11PM -0400, Jon LaBadie wrote:
 For its backup server functions, follow the instructions regarding the server.
 Follow the instructions for client hosts to back it up.  I don't think there
 are any conflicts in the setups.  Just follow each independently on the same
Well that's why I am confused. In the documentation it says on the server in the 
.amandahosts file 
clientaddress root

On the client type
servername amanda


That is still confusing because of the 2 usernames



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9P+Y5awsElDuSDs0RAgxoAJ40NBfXWSP5dwsRK6AWZRXP6fNm+wCgpWf4
MwLEwsq3TDVGR8ntq3+w65k=
=qTeY
-END PGP SIGNATURE-



Re: AMRECOVER Not Working

2002-08-27 Thread Tony Shadwick

On 8/27/02 12:58 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I've installed Amanda version 2.4.2p2 and have not been
 able to get amrecover to work.
 
 For example, the backup server name is
 backup.rnd.caribbeanblue.com, the only filesystem to
 back up is /etc on backup.rnd.caribbeanblue.com, and
 amrecover is run from the backup server.
 
 Running amrecover produces the following:
 backup:/ # /usr/sbin/amrecover -C daily -s
 backup.rnd.caribbeanblue.com
 
 AMRECOVER Version 2.4.2p2. Contacting server on
 backup.rnd.caribbeanblue.com ...
 amrecover: Unexpected server end of file
 
 /tmp/amanda's amrecover.debug file is:
 amrecover: debug 1 pid 1225 ruid 0 euid 0 start time
 Tue Aug 27 13:01:06 2002
 amrecover: stream_client: connected to
 192.168.1.7.10082
 amrecover: stream_client: our side is 0.0.0.0.811
 
 /tmp/amanda's amindexd.debug file is:
 amindexd: debug 1 pid 1226 ruid 37 euid 37 start time
 Tue Aug 27 13:01:06 2002
 amindexd: version 2.4.2p2
 
 I've checked /etc/services and /etc/inetd.conf.
 .amandahosts has backup with root as well as amanda.
 
 Any help would greatly be appreciated.  Thanks.
 
 Eric 
 
 
 
I was experiencing the exact same issue last week.

Try this on for size:
/usr/sbin/amrecover -C daily -s  backup.rnd.caribbeanblue.com -t
backup.rnd.caribbeanblue.com -d /dev/yourtapedevice

I'm curious to see if you get the no index found errors that I got, which
means you need to go into amanda.conf and add index yes.

Good luck and goodspeed soldier. :P

Tony Shadwick
Manager of Internet Services
Strategic Technology Group
314-480-1324 





Re: AMRECOVER Not Working

2002-08-27 Thread Eric Swindell

Tony,

I have index yes in amanda.conf.  I just ran:  
/usr/sbin/amrecover -C daily -s backup.rnd.caribbeanblue.com -t 
backup.rnd.caribbeanblue.com -d /dev/nst0

amrecover still produces the same error:  Unexpected server end of file.  

I wish the debug files were more detailed.  What EOF could it be?  

Eric

P.S.  I was in the Corps, but that is another story..

 On 8/27/02 12:58 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  I've installed Amanda version 2.4.2p2 and have not been
  able to get amrecover to work.
 
  For example, the backup server name is
  backup.rnd.caribbeanblue.com, the only filesystem to
  back up is /etc on backup.rnd.caribbeanblue.com, and
  amrecover is run from the backup server.
 
  Running amrecover produces the following:
  backup:/ # /usr/sbin/amrecover -C daily -s
  backup.rnd.caribbeanblue.com
 
  AMRECOVER Version 2.4.2p2. Contacting server on
  backup.rnd.caribbeanblue.com ...
  amrecover: Unexpected server end of file
 
  /tmp/amanda's amrecover.debug file is:
  amrecover: debug 1 pid 1225 ruid 0 euid 0 start time
  Tue Aug 27 13:01:06 2002
  amrecover: stream_client: connected to
  192.168.1.7.10082
  amrecover: stream_client: our side is 0.0.0.0.811
 
  /tmp/amanda's amindexd.debug file is:
  amindexd: debug 1 pid 1226 ruid 37 euid 37 start time
  Tue Aug 27 13:01:06 2002
  amindexd: version 2.4.2p2
 
  I've checked /etc/services and /etc/inetd.conf.
  .amandahosts has backup with root as well as amanda.
 
  Any help would greatly be appreciated.  Thanks.
 
  Eric

 I was experiencing the exact same issue last week.

 Try this on for size:
 /usr/sbin/amrecover -C daily -s  backup.rnd.caribbeanblue.com -t
 backup.rnd.caribbeanblue.com -d /dev/yourtapedevice

 I'm curious to see if you get the no index found errors that I got, which
 means you need to go into amanda.conf and add index yes.

 Good luck and goodspeed soldier. :P

 Tony Shadwick
 Manager of Internet Services
 Strategic Technology Group
 314-480-1324




Re: Checking for missing files.

2002-08-27 Thread Trevor Fraser

Thanks again Jon.

To be honest, I'm going to leave the attempting 'till tomorrow, its late
this side of the earth.  I do see the solutions, will try them and see what
works best for me.  The main thing is I now know the approach isn't some
thing I've been tripping over all the time, like so many other battles...no
re-inventing the wheel either...whew!

Chow, Trevor.

=
Stussy said:Knowledge is King!
=
- Original Message -
From: Jon LaBadie [EMAIL PROTECTED]
To: Trevor Fraser [EMAIL PROTECTED]
Cc: Jon LaBadie [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 6:25 PM
Subject: Re: Checking for missing files.


 On Tue, Aug 27, 2002 at 05:30:58PM +0200, Trevor Fraser wrote:
  Hi Jon.
 
  Thanks for the reply.
 
  My objective is when someone accidentally deletes files and doesn't know
  what file they were, to compare what Amanda has on tape and what is on
the
  file system to see what is different, so I don't have to manually search
the
  tape and the file system to see what is missing and what to restore.
 
  Thanks, Trevor.

 Ahh, then probably the regular indexes will be sufficient.

 I presume you are recording, then you have an indexdir defined.
 In that indexdir will be subdirs for each host.
 Under the host dir will be subdirs with names based on the disklist
entries.
 In these names the / are replaced with _.

 My approach would be to make a list of everything the user currently has
 and compare it to what the index shows is on tape.  Assume the user is
shmo
 As root:

cd ~shmo/.. # one level above shmo
find shmo  /tmp/shmo-current
# or two levels and do a   find home/shmo
sort -o /tmp/shmo-current /tmp/shmo-current

cd amanda-index-dir-for-shmo's-filesystem
# note all the backups since the last level 0.
# in my case that would be 20020823_0.gz
# 20020824_1.gz 20020826_1.gz 20020827_2.gz

for f in 20020823_0.gz 20020824_1.gz 20020826_1.gz 20020827_2.gz
do
gzip -dc  $f | grep /shmo/ | sed 's,/$,,'
done | sort | uniq  /tmp/shmo-tape

# or the command might look for /home/shmo if appropriate
# the sed is to remove any trailing /s on dir names that my indexes
# have, but the find does not.

# now you may have to edit one or the other file to make the leading
# part of each line the same  For example, the find may not have a /
# at the start or might need /home/ added to one file or deleted
# from the other.

 Now you have two sorted lists, what is in shmo's directory tree currently
 and what is on tape in at least one of the most recent backup set.
 Of course the for f in ... loop could have been done on all index files
 to go further back.

 To compare them use the comm command:

 # files on tape but not in current dir tree
 comm -13 /tmp/shmo-current /tmp/shmo-tape

 # files in current dir tree, not on tape
 comm -23 /tmp/shmo-current /tmp/shmo-tape

 # files in both
 comm -12 /tmp/shmo-current /tmp/shmo-tape

 Another approach is to amrecover the entire /home/shmo tree in some tmp
dir.
 Then do a dircmp of shmos' current tree with the tmp tree.  Then you
already
 have the files on disk and can simply copy them.

 Hope these make sense and help.  Maybe someone else has alternative
approaches.

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




changer.conf

2002-08-27 Thread Craig Hancock [EMAIL PROTECTED]

I am just curious all the people that use amanda on this list
what changer do you prefer. I am currently using chg-zd-mtx,
but highly thinking about changing my problem is this

I am trying to create 2 configs one setup for directories that 
don't change very much and another config for directories or
host that modifiy data alot.

So since I ahve a 40 tape library unit with 2 tapes inside it.

I split the library in half( for now) and use one
tape drive for each config.

When I specify the first slot in my changer.conf file
on the second config it seems to always load the tape
in slot one and not in slot 19 and I don't understand why.

Any thoughts or suggestions would be appricated

Craig Hancock


-- 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9P+Y5awsElDuSDs0RAgxoAJ40NBfXWSP5dwsRK6AWZRXP6fNm+wCgpWf4
MwLEwsq3TDVGR8ntq3+w65k=
=qTeY
-END PGP SIGNATURE-



RE: could not get changer info specify a number as tape_device [0-9]

2002-08-27 Thread Quinn, Richard C. - Collinsville IT



Hi,

My 
question kinda goes along with what Chris Bourne asked earlier 
yesterday:

I have 
an STK 9730 jukebox. Running amanda on Solaris 2.6.

In my 
amanda.conf file, I specify chg-scsi as my Built In Tape Changer as specified by 
share/TAPE.CHANGERS.

As far 
as I can see, the configs for chg-scsi is similar to 
chg-scsi-chio.

So, in 
order for chg-scsi to understand ''changerfile'' as more than just a ''slot 
counting'' file, I specify my ''tapedev'' as a ''0''.

When I 
try to ''amdump'', I see this error in my amdump.1 log file:
amdump.3:driver: result time 12.873 from taper: TAPE-ERROR [tape_rdlabel: 
tape open: 0: No such file or directory]

So I 
change the ''tapedev'' entry in amanda.conf back to 
/dev/rmt/2bn

Then 
amdump works just fine.

Okay 
great, now I wish to run ''amlabel'' in order to relabel the tape to test 
out ''amdump'' a bit more.

$ 
amlabel -f DailySet1 DailySet10826 slot 1amlabel: could not load 
slot "1": check your config and use an config file for 
chg-scsi

Slot 1 
does indeed correspond with /dev/rmt/2bn

So in 
order to run ''amlabel'' I gotta specify my ''tapedev'' as 
'0'...and
in 
order to run ''amdump'' I gotta specify my ''tapedev'' as 
/dev/rmt/2bn

I am 
assuming that the ''changerdev'' is the /dev pathname for the robotic 
arm.
I know 
if the changer script I am using were ''chg-mtx'' as opposed to chg-scsi, 
then
I 
would likely specify ''chagerdev'' the same as ''tapedev''.

What 
am I doing wrong here?

Should 
I switch changer scripts, maybe to chg-scsi-chio??

I have 
included, the errors I get in the log, and portions of my amanda.conf file 
and scsi-chg.conf files

thanks,


Rich 
Quinn





=amdump.1LOG 
FILEOUTPUT=

changer_find: looking for DailySet10820 changer is searchable = 0 
changer: opening pipe to: /usr/local/amanda/libexec/chg-scsi -slot 
currentchanger: got exit: 0 str: 1 /dev/rmt/2bntaper: slot 1: date 
X label DailySet10826 (first labelstr 
match)changer: opening pipe to: /usr/local/amanda/libexec/chg-scsi -slot 
nextchanger: got exit: 2 str: 2 slot 2 move failedtaper: fatal slot 2: 
slot 2 move failedchanger: opening pipe to: 
/usr/local/amanda/libexec/chg-scsi -slot 1changer: got exit: 2 str: 1 slot 1 
move faileddriver: result time 234.461 from taper: TAPE-ERROR [slot 1 move 
failed]dump of driver schedule before start degraded 
mode:






==PART OF 
THEamanda.conf=
tpchanger 
"chg-scsi" # use HP changerchangerfile 
"/opt/encap/amanda/etc/amanda/DailySet1/chg-scsi.conf"changerdev 
"/dev/rsst0"tapedev "0" # the no-rewind tape device 
to be used





===PART OF THE 
chg-scsi.conf

number_configs 
1eject 
0sleep 
60cleanmax 
10 changerdev 
/dev/rsst0## Drive 
0#config 
0drivenum 
0dev 
/dev/rmt/2bn 





  -Original Message-From: Chris Bourne 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, August 26, 2002 5:53 
  PMTo: [EMAIL PROTECTED]Subject: could not get 
  changer info specify a number as tape_device [0-9]
  
  
  Hello,
   I need help with figuring out why 
  amanda is giving me these errors. First off I am using Sony 20/40G dgd 150p 
  tapes on a Dell powervault 120T DDS-4 autoloader on RedHat 7.2. I am using a 
  chg-scsi config.. 
  
  I was getting this error message. 
  
  amcheck-server: could not get changer info: specify a number as 
  tape_device [0-9]
  
  Does anyone know what it means??? SoI changed the 
  tapedev in amada.conf from "/dev/nst0" to just "0" and I no longer get the 
  specify a number as tape_device [0-9] part 
  anymore. Now I get .. 
  
  
  bash-2.05$ /usr/sbin/amtape DailySet1 label DailySet101amtape: 
  scanning for tape with label DailySet101amtape: could not get changer 
  info: open: /dev/sg1: Success
  I am really confused about how this whole tape 
  changer stuff works. I 

Re: AMRECOVER Not Working

2002-08-27 Thread Tony Shadwick

On 8/27/02 2:16 PM, Eric Swindell [EMAIL PROTECTED] wrote:

 Tony,
 
 I have index yes in amanda.conf.  I just ran:
 /usr/sbin/amrecover -C daily -s backup.rnd.caribbeanblue.com -t
 backup.rnd.caribbeanblue.com -d /dev/nst0
 
 amrecover still produces the same error:  Unexpected server end of file.
 
 I wish the debug files were more detailed.  What EOF could it be?
 
 Eric
 
 P.S.  I was in the Corps, but that is another story..

Are you running on a BSD Variant?  I've found that on the server I wind up
having to recompile with the switch --without-bsd-security in order to get
anywhere.  Just a thought.

Tony Shadwick
Manager of Internet Services
Strategic Technology Group
314-480-1324 





Re: AMRECOVER Not Working

2002-08-27 Thread Eric Swindell

I'm running it on a server with SuSE 8.0.  It came with the 8.0 distro, so I 
didn't need to compile anything.  Regarding security, there are also no 
Amanda kerberos port entries in my /etc/services by default.  

The strange thing is that I have tested Amanda in doing back ups of two other 
SuSE servers from backup.rnd.caribbeanblue.com.  The backups complete without 
any errors, and I'm not able to do amrecovers from them as well.  What I am 
seeing is that backup.rnd.caribbeanblue.com is able to back itself and other 
servers up, but for some reason, will not allow amrecover to work despite 
indexing.  

The backup server is accessing the clients, but the client (even if on the 
server) can not access the server.  .amandahosts has:

localhost amanda
localhost root
backup amanda
backup root
backup.rnd.caribbeanblue.com amanda
backup.rnd.caribbeanblue.com root  

What does work is amrestore, as in:
/usr/sbin/amrestore /dev/nst0 backup
This pulls the .o image file containing /etc off of tape.  However, it would 
be nice to just use amrecover for extracting needed files or directories.

Eric


 On 8/27/02 2:16 PM, Eric Swindell [EMAIL PROTECTED] wrote:
  Tony,
 
  I have index yes in amanda.conf.  I just ran:
  /usr/sbin/amrecover -C daily -s backup.rnd.caribbeanblue.com -t
  backup.rnd.caribbeanblue.com -d /dev/nst0
 
  amrecover still produces the same error:  Unexpected server end of file.
 
  I wish the debug files were more detailed.  What EOF could it be?
 
  Eric
 
  P.S.  I was in the Corps, but that is another story..

 Are you running on a BSD Variant?  I've found that on the server I wind up
 having to recompile with the switch --without-bsd-security in order to get
 anywhere.  Just a thought.

 Tony Shadwick
 Manager of Internet Services
 Strategic Technology Group
 314-480-1324




Question in regards to Label Printing.

2002-08-27 Thread Alex Specogna

Good Day

I am a newbie with Amanda so please forgive my ignorance if the answer to this 
question is more obvious than it appears to me.

I have set Amanda 2.4.3b3 up on a FreeBSD 4.4 box.  I have it successfully backing up 
a test network and I am very pleased with
the results.  Now comes the next step cataloging and labeling my tapes.

I have tried to setup Amanda to print DLT labels (using the built-in DLT.ps template) 
the catch here is that I do not want to
print directly to a printer.  I would like to print it to a file (We like to keep 
everything digitally)

Below is an excerpt from my amanda.conf file.  If anyone has any suggestions on how to 
make this work I would be very happy to
hear them.  I have spent the past 4 hours searching the list with no luck.

Thanks!


tapetype DLT# what kind of tape it is (see tapetypes below)
define tapetype DLT {
comment DLT tape drives
lbl-templ /usr/local/etc/amanda/Backup/DLT.ps
length 4 mbytes # 20 Gig tapes
filemark 2000 kbytes# I don't know what this means
speed 1536 kbytes   # 1.5 Mb/s
}




Re: AMRECOVER Not Working

2002-08-27 Thread Eric Swindell

I finally figured it out.  It was either a space or an empty line in 
/etc/inetd.conf.  I don't know why this matters to inetd, but it brings me 
back to my days doing vax assembly.

This is what I had in /etc/inetd.conf:

#
[blank line...]
# amanda backup client
 amanda dgram udp wait amanda /usr/lib/amanda/amandad amandad
# 

When I uncommented the client entry (amanda dgram...), I must have 
accidentally left a space in the place of the # marker.  Before the top 
comment, there was a blank line.  I deleted the line as well.  After 
restarting inetd.conf, it now works!  I can now do an amrecover from the 
backup server as well as the client servers.

You were right about the tapeserver (-t) parameter.  You need to add that when 
running amrecover from a client.

Eric


 On 8/27/02 2:16 PM, Eric Swindell [EMAIL PROTECTED] wrote:
  Tony,
 
  I have index yes in amanda.conf.  I just ran:
  /usr/sbin/amrecover -C daily -s backup.rnd.caribbeanblue.com -t
  backup.rnd.caribbeanblue.com -d /dev/nst0
 
  amrecover still produces the same error:  Unexpected server end of file.
 
  I wish the debug files were more detailed.  What EOF could it be?
 
  Eric
 
  P.S.  I was in the Corps, but that is another story..

 Are you running on a BSD Variant?  I've found that on the server I wind up
 having to recompile with the switch --without-bsd-security in order to get
 anywhere.  Just a thought.

 Tony Shadwick
 Manager of Internet Services
 Strategic Technology Group
 314-480-1324




Devices

2002-08-27 Thread greg

Hello,

I am running amanda 2.4.2p2  on FreeBSD 4.6.2.  Well I hope to be 
anyways.  The thing I cannot seem to figure out is this.  I am using a 
quantum ATL L500 tape changer with a DLT8000-40 tape drive.  The devices 
for the /dev/sa device are numbered
/dev/sa0
/dev/sa0.0
/dev/sa0.1
/dev/sa0.2
/dev/sa0.3

I am trying with the changer.conf to name the slots at the end but when 
I do amlabel -f normal Z01 slot 0  I get
slot 0 empty.  What I do not understand is,  does each /dev/sa0.* 
device pertain to a slot in loader or do i need to make sa1 sa2 sa3 and 
so on?  Or am I totally lost?

Thanks for any and all replies

greg