Re: Firewall and Portrange Settings

2004-03-18 Thread Kurt Yoder

Stefan G. Weichinger said:



> By compiling your own binaries you get the freedom to choose YOUR own
> setup, to set YOUR firewall-settings, to assure that YOUR version of
> AMANDA does exactly the job you want it to.
>
> And it stays YOUR setup with each new release of AMANDA.
>
> All this with a small shell-script.
>
> I think this is worth the effort of figuring out the
> configure-options.

I would agree that compiling is pretty easy. You can even recompile included
Linux distribution packages if you get the source package and do a few simple
steps.

However, there are still big advantages to using "stock" packages. For
instance, I have an internet-accessible Debian machine that checks for
security updates every hour and automatically installs any that it finds. If I
have amanda installed using the "stock" Debian package, any vulnerabilities in
amanda that get patched by the Debian maintainer will automatically be
installed.

If I do my own package, this update needs to wait until I am around to pay
attention to it, which might take a week if I am away on vacation. I suppose
there may be a way to also recompile/source install Debian packages when
upstream security updates become available, but I haven't figured it out yet.


-- 
Kurt Yoder
Sport & Health network administrator



Re: retrieving 1 year old file

2004-03-12 Thread Kurt Yoder

Jon LaBadie said:
> Because it would be a different configuration, the config name,
> the config logs and directories, and the tapes and tape labels
> would be different.  If you want to recover from the monthly
> config you use that name.  Otherwise use the daily config name.
>
> Both would have level 0 dumps, the monthly would have only
> level 0 while the daily would have a mixture of level 0 and
> incrementals.
>
> The monthly archive config doesn't care when the last level 0
> was done so there is no need to record that it did a level 0.
> Thus, set the "record" parameter to "no".  Otherwise the
> daily config might get confused as to when "it" did the last
> level 0.

I do a mix of Daily, Weekly, Monthly, and Yearly sets. I have it set up to do
a mix of incrementals and level 0's on all of them. Amanda gets a *little*
confused sometimes by this setup because it sometimes thinks a weekly or
monthly has been missed and thus promotes a few too many DLE's to full dumps.
In general it works fine though.

-- 
Kurt Yoder
Sport & Health network administrator



accidental amrmtape

2004-03-10 Thread Kurt Yoder
Hello list

So I accidentally ran amrmtape against my DailySet1 tape CDS1tape07. Is there
any way for me to "un-amrmtape" and put it back the way it was?

Thanks for any information


-- 
Kurt Yoder
Sport & Health network administrator



Re: script to calculate tape parameters

2004-02-16 Thread Kurt Yoder

Kurt Yoder said:
> Hello list
>
> I wasn't sure I understood how to set the Amanda dumpcycle, runspercycle,
> runtapes, and tapecycle correctly, so I wrote a small perl script to check my
> logic. It asks a few questions about the number of backups within a certain
> time period, whether a changer will be used, etc, and then prints the values
> one should set for dumpcycle, runspercycle, runtapes, and tapecycle. Assuming
> my thinking is correct, perhaps others on this list could benefit from the
> script as well, so I am attaching it...

I refined the script a bit based on feedback from the list. I've posted the
updated script to the faq-o-matic at
http://amanda.sourceforge.net/fom-serve/cache/391.html since the mailing list
archive strips attachments.

If there's interest, I can set up a Sourceforge project, though this is such a
small script it hardly seems worth it.

-- 
Kurt Yoder
Sport & Health network administrator



Re: script to calculate tape parameters

2004-02-12 Thread Kurt Yoder

Jon LaBadie said:



> A bit of more explanation in the text might be in order.
> For example, I entered 6 runs then 1w for the time period.
> But I did not realize that 1w was going to be my dumpcycle.

Perhaps my understanding of the configuration is flawed. I thought that
dumpcycle was the number of days/weeks that span the runspercycle. So for
example if someone does M-F backups, dumpcycle should be 7 days (these happen
over the course of 1 week/7 days), and runspercycle should be 5 (one on M, Tu,
W, Th, F). For one backup per month, dumpcycle would be 1 month or 31 days,
runspercycle 1.

Is this not correct? I have set up my configurations in this manner for a
while, and it seems to have worked OK. Am I missing something?

> For example, suppose I really wanted a 14 day dumpcycle,
> but was not doing dumps on Sunday.  That is still 6 per week,
> but 1 week is not the dumpcycle.

In this case, I would have said dumpcycle 14 days, runspercycle 12.

> There have also been a number of odd combos reported on the list.
> Some of them have produced quite heated commentary.
>
> Some examples, but maybe not the real ones that came up:
>
>3 day dumpcycle, dumping only on weekdays (what is runs/cycle?)

I would have said dumpcycle 3 days, runspercycle 3. Since dump won't be called
on weekends, don't we effectively get the desired result?

>3 dumps a week (MWF) with a maximum of 4 or 5 day dumpcycle

I would have extrapolated dumpcycle up to 7 days (since it's calculated over a
weeks' time), then set runspercycle to 3.

> If you ever figure out what to do with these oddities,
> you are a better person than I.  The problem is how will
> amanda "balance" the dumps over the runspercycle when there
> are gaps (days) between dumps.

I have similar odd configurations that I do, and amanda seems to work OK:

daily backup that runs Mon,Tue,Thu,Fri,Sat:
dumpcycle 14 days, runspercycle 10

weekly backup that runs Wed except 1st Wed of month:
dumpcycle 7 weeks, runspercycle 6

monthly backup that runs 1st Wed of month except for 1st Wed of year:
dumpcycle 365 days, runspercycle 11

yearly backup that runs 1st Wed of year:
dumpcycle 3653 days, runspercycle 10

In all these cases, amanda is thrown off a little in the balance reports, but
this does not seem to adversely affect the tape balancing. Am I
misunderstanding the whole thing? I created this script to refine my
understanding of how these amanda configurations are "supposed" to be set. If
I have holes in my understanding, I would like to find out so I can adjust my
amanda config accordingly and then update the "assistant" script.

> Good first cut.  A slightly more polished version could well be
> useful to many beginning amanda administrators.

Thanks; all feedback is appreciated. Are you referring to the above issue WRT
polish, or do you think other parts need changing as well?

-- 
Kurt Yoder
Sport & Health network administrator


script to calculate tape parameters

2004-02-11 Thread Kurt Yoder
Hello list

I wasn't sure I understood how to set the Amanda dumpcycle, runspercycle,
runtapes, and tapecycle correctly, so I wrote a small perl script to check my
logic. It asks a few questions about the number of backups within a certain
time period, whether a changer will be used, etc, and then prints the values
one should set for dumpcycle, runspercycle, runtapes, and tapecycle. Assuming
my thinking is correct, perhaps others on this list could benefit from the
script as well, so I am attaching it...

-- 
Kurt Yoder
Sport & Health network administrator


amanda_assistant.pl
Description: Perl program


Re: Is it a bad idea to share the /holdingdisk/ area among several concurrent dump sets?

2004-01-27 Thread Kurt Yoder
Restores work fine too; I have done them many times. From the client 
you do "amrecover GreenSet". If you make sure to store the logs, 
indexes, and everything else in separate directories specific to each 
set, there is no danger of collisions.

I also make use of the "include" directive in each set's configuration 
file. I set specifics such as dump cycle in each set's configuration 
file, then "include" the "master" configuration file, which contains 
settings such as tape type and points to the global disk list.

I'm not aware of any "amindex", so I can't comment on that.

On Jan 27, 2004, at 5:57 PM, Martin Schmidt wrote:

Hi,

I was looking in the mailing list because of an other problem and I 
read Your
prescription of different backups on different days.
I considered and tested something like You described, I found the 
backups
work.
I have to store a backup out of the house, so I decided "odd weeks" 
are green
and even weeks are red, labeled the tapes that way, so one week the 
green
tapes are out of the house and I  am backing up to red ones, and so on.
They are different configs, each with it's own dir on the holding disk,
index/log/... dirs, etc.



Have You tested restore?
Is it just as easy as "amrecover GreenSet" or so ?
Does amindex work with such a config-mix ?
regards

Martin



Am Mittwoch, 3. Dezember 2003 16:02 schrieb Kurt Yoder:
[EMAIL PROTECTED] said:
Hi --

I did a search through the FAQ-O-Matic and through the Yahoo egroup
for
'share holding' and didn't find anything specific in response to
this
question, so I think it's safe to ask:
Is it a bad idea to have a central /holdingdisk/ area in use by
multiple concurrent dump sets?
If you're worried about collision of holding disk directories, you
can set a different subdirectory for each configuration. So config1
uses /holdingdisk/config1/. config2 uses /holdingdisk/config2/, etc.
All configs may use any holding disk space that is available, and
you won't get any collisions.
But before you answer that, maybe I should ask this:

Is it a bad idea to run multiple concurrent dump sets in the first
place?
(While searching the egroup archive for an answer to this, I came
across
comments from some of the Amanda veterans that led me to believe
that I
should be using a _single_ backup set, instead of running multiple
concurrent ones.  Am I reading that correctly?  If so, then the
original
question is moot...)
It depends on what you want to do; what do you mean by concurrent? I
use multiple dump sets: a daily set that runs every day except
Wednesday. On Wednesdays, I write to a separate weekly set unless
it's the first Wednesday of the month. If 1st Wed of month, I write
to a separate monthly set unless it's first Wed of year. If 1st Wed
of year, I write to a separate yearly set. This setup lets me keep
archival offsite backups.
So I use multiple sets, but only for archival purposes.

BTW, to do what I do requires more than the standard "call
amcheck/amdump from cron" method, since there's no way I know of in
cron to specify "day before 1st Wednesday of month unless 1st
Wednesday of year", etc. I wrote a script to pick which set to
check/dump; this script is called from cron every day. It in turn
calls amdump or amcheck with the correct backup set. If you don't
mind looking at hacked-together perl code, you can go look at it.
It's at
http://sourceforge.net/projects/ampick/







Re: Help deciphering errors from Samba backup

2004-01-13 Thread Kurt Yoder
This is a Samba problem. smbclient is complaining that it can't
access those directories. Here's my initial google query:

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%22Server+packet+had+invalid+SMB+signature%21%22&btnG=Google+Search

This didn't seem to return many results for me. You may want to do
some further digging in Samba mailing list archives, post to Samba
lists, etc.

Fran Fabrizio said:
>
> I'm attempting to do my first backup via Samba.  The first night it
> failed, which was due to me not having the latest version of Amanda
> to
> work with Samba 3.  I installed Amanda 2.4.4p2.  It ran again last




-- 
Kurt Yoder
Sport & Health network administrator



Re: extremely varied tape write rates?

2004-01-09 Thread Kurt Yoder
Argh! I mis-typed. It is not dump files from the same host that are
slow. Instead, it is always the tape writes of backups of the same
disk list entries that are slow.

In the report, see that some borneo tape writes were fast, but one
is much slower. So why is that particluar one *always* slow? It
should be just a mindless tape dump, right?

> DUMP SUMMARY:
>DUMPER STATS
>  TAPER STATS
> HOSTNAME   DISKL   ORIG-KBOUT-KB  COMP%  MMM:SSKB/s
> MMM:SSKB/s 
> -- ---
> borneo.shc -corporate25821120  12795031   49.6   67:34  3155.9
> 45:57  4641.0
> borneo.shc -cs_shared18595830  10108659   54.4   55:42  3024.9
> 145:29  1158.1
> borneo.shc -_shared_212075330   8126030   67.3   40:23  3353.9
> 30:27  4447.4
> britain.sh /shared01 25085110  12979245   51.7   37:29  5771.6
> 172:00  1257.7
> sumatra.sh //java/c$  7488930   7488930--70:04  1781.5
> 22:30  5548.0
>
> (brought to you by Amanda version 2.4.4p1)



-- 
Kurt Yoder
Sport & Health network administrator



removing "amadmin find host" entries

2004-01-09 Thread Kurt Yoder
Hello list

I just did some out-of-the-ordinary year-end backups. For various
reasons I did not flush some of my dumps to tape and will be
deleting them. I have re-dumpted these to another tape. So far, so
good.

So how do I modify the output of "amadmin YearlySet1 find "?
This shows both the "ignored" dumps and the "successful" dumps. I
would like to remove the "ignored" dumps from the amadmin records
because they are misleading.

-- 
Kurt Yoder
Sport & Health network administrator



Re: extremely varied tape write rates?

2004-01-09 Thread Kurt Yoder
Yes, using software compression. But should that even matter? The
dump files are already compressed, it is only a matter of writing
them out to tape. I have hardware compression turned off on the tape
drive.

Eugen Leitl said:
>
> Are you using software compression, and how compressible are the
> individual
> files?




-- 
Kurt Yoder
Sport & Health network administrator


extremely varied tape write rates?

2004-01-09 Thread Kurt Yoder
Hello list

I have noticed that some dump files take much longer than others to
write to tape. Furthermore, it is always dump files from the *same*
host that take so long. So if I do a level 0 dump of host A I might
see 4000 KB/s tape write rates. If I do a level 0 dump of host B I
might only see 1000 KB/s tape write rates. Can anyone explain this
behavior?

Here is part of an Amanda report which shows these large tape write
rate disparities:


DUMP SUMMARY:
   DUMPER STATS 
 TAPER STATS
HOSTNAME   DISKL   ORIG-KBOUT-KB  COMP%  MMM:SSKB/s 
MMM:SSKB/s 
-- ---
borneo.shc -corporate25821120  12795031   49.6   67:34  3155.9  
45:57  4641.0
borneo.shc -cs_shared18595830  10108659   54.4   55:42  3024.9 
145:29  1158.1
borneo.shc -_shared_212075330   8126030   67.3   40:23  3353.9  
30:27  4447.4
britain.sh /shared01 25085110  12979245   51.7   37:29  5771.6 
172:00  1257.7
sumatra.sh //java/c$  7488930   7488930--70:04  1781.5  
22:30  5548.0

(brought to you by Amanda version 2.4.4p1)



-- 
Kurt Yoder
Sport & Health network administrator



Re: Pre/Post-dump scripts?

2004-01-07 Thread Kurt Yoder

Paul Bijnens said:
> [EMAIL PROTECTED] wrote:
>> I need to back up a data base, but want to have it dump the tables
>> first.  I thought there was a way to have amdump trigger pre/post
>> dump processes natively.  Or, is the only way to wrap amdump in a
>> script of the same name, and effectively hide the real amdump
>> program?
>
>
> http://amanda.sourceforge.net/fom-serve/cache/348.html

Are there any plans to add support for pre/post dump scripts in
future versions of amanda? It would be extremely convenient and
solve a recurring question...


-- 
Kurt Yoder
Sport & Health network administrator



Re: dump to tape failed - how to diagnose?

2004-01-02 Thread Kurt Yoder

John Dalbec said:
>> So the dumper immediately reports 'connection refused' when
>> attempting
>> to connect to the taper process. Wrong permissions?
>
> Wrong permissions on what?  It's a TCP connection over the loopback.
>  What
> permissions could possibly affect that?
> John

Perhaps a dumb question: did you add the amanda server pieces to
your inetd.conf file and then restart inetd? "Connection refused"
sounds like the amanda server ports aren't open at all.

-- 
Kurt Yoder
Sport & Health network administrator



Re: amanda server on sco 5.0.6

2003-12-30 Thread Kurt Yoder

Gene Heskett said:
>>So what should be my next troubleshooting step? Maybe recompile
>> with
>>some debugging output verifying that I got to certain parts of my
>>amlabel code?
>
> That sounds like the next logical step, unless somebody else has a
> better idea?

I hate to be a pain, but:

Can you give me an example of a debugging line to add and where to
add it? If I have an example to work off of, I can take it from
there. As I've mentioned to others, my C knowledge is extremely
primitive.

-- 
Kurt Yoder
Sport & Health network administrator


Re: Append to active tape

2003-12-30 Thread Kurt Yoder

Jon LaBadie said:
> So, GH's tummy ache happens after you copied from tape to holding
> disk, while rewriting.  Now you've lost ?everything?, the precious
> tape of yesterday and all previous days as well as todays stuff.

True, but you're always going to face that risk anyway if you want
to do an "append to tape" setup. At least if you write out to tape
doing a "simulated append" your exposure to a "tummy ache" is
lessened.

-- 
Kurt Yoder
Sport & Health network administrator



Re: Append to active tape

2003-12-30 Thread Kurt Yoder

Gene Heskett said:



> The design decision is because amanda has absolutely no guarantee
> that
> someone will not eject the tape, or otherwise mess with the tapes
> position, from one days run to the next.  So amanda is designed to
> do
> 2 things:
>
> 1: rewind the tape and read the label to make sure its the right
> tape
> in the sequence to use next, doing this with each days invocation.
> This in itself destroys the location you get from an 'mt -f device
> tell' between last nights run and tonights.
>
> 2. Because not all tape drives can reliably do an 'mt -f device
> seof'
> to restore that location, and it would be a total loss to write over
> last nights backup with tonights, the chance of doing that is never
> taken.  Hence, amanda will never attempt to append to a tape.  It
> *must* know that it has the tapes undivided attention during the
> duration of a run.  To that end, if the drive has a door lock
> command
> or ioctl, it is used to prevent you from ejecting the tape in
> mid-run.
>
> Its inconvienient for some, but infinitly safer for all this way.

Couldn't "append to tape" be simulated? That is, rewind the tape and
check the tape label as normal. Then copy all contents of the tape
to the holding disk. Then use amdump to add to the holding disk.
Then flush the holding disk back to tape. The drawback to this
solution is that it would take quite a bit longer. However, there
would be no risk of accidentally overwriting portions of the tape.

I'm just asking in theory; I have no plans to implement anything
like this at my site.

-- 
Kurt Yoder
Sport & Health network administrator



Re: amanda server on sco 5.0.6

2003-12-29 Thread Kurt Yoder

Gene Heskett said:


> This is odd.  I haven't noted any changes to amlabel of late, and it
> worked the last time I used it with the -f option just fine.
> Whats happened here is going to have to be troubleshot on a system
> either with the good data moved out of the way, or on a throwaway
> system.  Has anyone else encountered this?

I'm guessing it's something to do with the version I compiled for
sco. Running it with -f on sco produces the same results. 2.4.4p1
works fine for me on my Linux boxes.

So what should be my next troubleshooting step? Maybe recompile with
some debugging output verifying that I got to certain parts of my
amlabel code?

-- 
Kurt Yoder
Sport & Health network administrator


Re: NT backup

2003-12-23 Thread Kurt Yoder
I'd first try "man smbclient". This will give you options to
connect, etc. Something like this:

smbclient //remotemachine/c$ -U username

should ask you for password, then you connect and can use

get somefile

to download a file. If this doesn't work, your amanda problem is
actually a samba/smbclient problem.

jessica blackburn said:
> could you possibly give me some steps to try with the smbclient.  i
> am
> an intern here and am trying to get this up and running.  i
> installed
> amanda so i am fairly knowledgeable with that, but this samba stuff
> is a
> new ballgame.  my disklist currently contains the setup for the
> win32.
> i'll change it over and try it again.


-- 
Kurt Yoder
Sport & Health network administrator


Re: NT backup

2003-12-23 Thread Kurt Yoder

jessica blackburn said:
> I think im using the amanda win32 because i could get samba to see
> the
> files of the MS box but not back them up. so, i moved on the try the
> win32.  do i need to use samba and win32 together?  or just one over
> the
> other?  and if so which is better?

That's odd. You should be able to read/copy the files using
smbclient if you can see them. Did you try manually connecting using
smbclient? You should be able to use smbclient to copy a file from
the windows machine to your linux machine. If this works, amanda's
samba connection should work too.

I was using the win32 client for a while, but found it troublesome.
You can't verify the amanda backups, because they are in "nttar"
format. So you have no idea whether the backups are actually
working. Also, I wasn't able to get nttar to restore any backups
using the included gui. I had to manually dump the whole backup file
to the windows machine, then use nttar to extract individual files;
very time consuming and inefficient. Plus, the win32 backups would
inexplicably fail frequently. So I just gave up on it altogether.

-- 
Kurt Yoder
Sport & Health network administrator


Re: NT backup

2003-12-23 Thread Kurt Yoder

jessica blackburn said:
> hello again!
>
> i got the samba working so i can talk with the ms box.  now i'm
> trying
> to get the amanda win32 working to try and backup the system.  i am
> connecting to the MS box but i am getting an error that i can't seem
> to
> figure out when i'm running amcheck.
>
>
> -bash-2.05b$ /usr/sbin/amcheck DailySet1
> Amanda Tape Server Host Check
> -
> Holding disk /var/tmp: 28918452 KB disk space available, that's
> plenty
> amcheck-server: slot 4: date 20031205 label DailySet103 (exact label
> match)
> NOTE: skipping tape-writable test
> Tape DailySet103 label ok
> Server check took 0.320 seconds
>
> Amanda Backup Client Hosts Check
> 
> ERROR: NAK hccdevelop03: execute access to
> "/usr/amanda/libexec/selfcheck" denied
> Client check: 2 hosts checked in 0.135 seconds, 1 problem found

This looks an awful lot like an amanda-win32-client error. Are you
sure you're actually using samba in your disklist? It should look
like

machine_with_smbclient //hccdevelop03/c$ user-tar

if it looks like

hccdevelop03 /mnt_c user-tar

you're still using win32 client


-- 
Kurt Yoder
Sport & Health network administrator



Re: amanda server on sco 5.0.6

2003-12-23 Thread Kurt Yoder

Gene Heskett said:
> On Tuesday 23 December 2003 11:01, Kurt Yoder wrote:
>>Gene Heskett said:
>>
>>
>>
>>>>So if amlable is having trouble with this line, but this line
>>>>appears syntactically correct and doesn't cause warnings for
>>>>amcheck, doesn't it indicate some sort of trouble with my
>>>> compiled
>>>>amlabel? Could commenting out changer-src have caused this? Or is
>>>> it
>>>>something else?
>>>
>>> Is there a missmatch between the system end of line convention,
>>> like one is expecting a crlf and the other is lf only?
>>
>>There shouldn't be. They're both Unix. Also, if there were a
>>mismatch, wouldn't amcheck complain about it?
>
> I'd certainly think so Kurt.  Maybe it does have something to do
> with
> commenting out the changer-src stuffs.  Browseing the amlabel srcs
> might be informative.  But you knew that, and I'm just prattling. :)

Eh... forgive me, but I am a bit allergic to C source. Just not that
familiar with it. Someday...

OK, I figured out the problem with make. I think my sources got
messed up somehow. So I re-downloaded a virgin copy and
configure/make/make install worked without and changer-src trickery.

However, I'm still faced with the same problem when trying to run
amlabel. Maybe someone on the list can recommend something to try
based on what is in my configs, plust the errors I am getting?



Here's output of "amlabel REDailySet1 REDS1tape01":


"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 1:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 1: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 2:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 2: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 3:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 6:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 6: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 7:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 7: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 8:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 8: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 10:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 10: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 11:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 11: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 12:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 12: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 14:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 14: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 15:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 15: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 18:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 18: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 19:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 19: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 20:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 20: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 21:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 21: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 23:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 23: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 24:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 24: end of
line expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 25:
configuration keyword expected
"/usr/local/etc/amand

Re: amanda server on sco 5.0.6

2003-12-23 Thread Kurt Yoder

Gene Heskett said:



>>So if amlable is having trouble with this line, but this line
>>appears syntactically correct and doesn't cause warnings for
>>amcheck, doesn't it indicate some sort of trouble with my compiled
>>amlabel? Could commenting out changer-src have caused this? Or is
>> it
>>something else?
>
> Is there a missmatch between the system end of line convention, like
> one is expecting a crlf and the other is lf only?

There shouldn't be. They're both Unix. Also, if there were a
mismatch, wouldn't amcheck complain about it?

-- 
Kurt Yoder
Sport & Health network administrator


Re: amanda server on sco 5.0.6

2003-12-23 Thread Kurt Yoder

Eric Siegerman said:



>> Can I just remove all references to changer-src from the configure
>> script? I don't need a tape changer. Would I break amanda-server
>> if
>> I tried to compile without changer-src?
>
> Not sure; try it and see...

OK, removed all from configure, did make clean, re-ran configure,
ran make. Everything compiles OK. I installed everything on another
SCO 5.0.6 machine. I add the folders and config files that the
amanda server and client look for. amcheck runs OK, so I try to run
"amlabel REDailySet1 REDS1tape01". Now I get a whole bunch of errors
like:

"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 1:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 1: end of line
expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 2:
configuration keyword expected
"/usr/local/etc/amanda/REDailySet1/amanda.conf", line 2: end of line
expected


for every line in the config file. I'm guessing the amanda.conf is
fine, because I copied it from a working configuration on Linux and
only changed a few specifics. Line 1 should be OK:

org "Regency DailySet1"

So if amlable is having trouble with this line, but this line
appears syntactically correct and doesn't cause warnings for
amcheck, doesn't it indicate some sort of trouble with my compiled
amlabel? Could commenting out changer-src have caused this? Or is it
something else?

-- 
Kurt Yoder
Sport & Health network administrator



amanda server on sco 5.0.6

2003-12-22 Thread Kurt Yoder
Hello list

I have gotten the amanda client to work ok on sco 5.0.6. Now I'm
trying to compile the server. I do

$ ./configure --with-user=backup --with-group=backup
--with-gnutar=/usr/local/bin/tar

I get some warnings (I culled these from the other configure messages)

configure: WARNING: *** You do not have gnuplot.  Amplot will not be
installed.
configure: WARNING: `cc' requires `-belf' to build shared libraries
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite
headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's
result
configure: WARNING: *** No readline library, no history and command
line editing in amrecover!



I'm not certain if these are fatal, so I go ahead and type make. A
lot of messages go by, then make halts and I see this:

Making all in changer-src
line 544: Syntax error.
*** Error code 1 (bu21)

Can I just remove all references to changer-src from the configure
script? I don't need a tape changer. Would I break amanda-server if
I tried to compile without changer-src?

-- 
Kurt Yoder
Sport & Health network administrator



Re: Debian/Woody backport of 2.4.4p1 ?

2003-12-15 Thread Kurt Yoder

Brandon D. Valentine said:
> On Fri, Dec 12, 2003 at 04:06:39PM -0500, [EMAIL PROTECTED]
> wrote:
>>
>> Does anyone know if there's a backport of amanda 2.4.4p1 to Debian
>> Woody?  I could use the packages in testing, but the require an
>> upgrade of libc, which I really want to avoid on my production
>> servers right now.
>
> Assuming your user is in the src group, testing is in your
> sources.list,
> you've run apt-get update recently and you've got fakeroot
> installed:
>
> % su -
> # apt-get build-dep amanda
> # exit
> % cd /usr/src
> % apt-get source amanda
> % cd amanda-2.4.4p1
> % perl -p -i -e 's/debhelper \(>= 4.1.16\)/debhelper/'
> debian/control
>   (this step is necesary because the Debian amanda package maintainer
>   uses the mess that is debhelper and it has marked itself as
>   dependent on a version of debhelper that isn't in woody, but it
>   works just fine with the version that is in woody)
> % dpkg-buildpackage -b -uc -rfakeroot
> % su -
> # dpkg -i /usr/src/amanda-*.deb
>
> And now Amanda 2.4.4p1 is installed, built against Woody.
>
> Use the force, Luke.
>
> HTH,

When I did this on my stable Amanda server a few weeks ago, I had
trouble with the version of debhelper. The dpkg-buildpackage
depended on debhelper from testing. So I had to disregard dependency
problems using "fakeroot dpkg-buildpackage -D -us -b -d" (extra -d).

If you have trouble making this work, email me off-list. I can send
you my pre-compiled 2.4.4p1 packages.

-- 
Kurt Yoder
Sport & Health network administrator



"include" syntax?

2003-12-09 Thread Kurt Yoder
Hello list

I installed amanda server 2.4.4p1 and am trying to manually break up
a DLE into multiple smaller entries. Here is what I have:

borneo.shcorp.com /home/shared/creative_services/graphics_photos
/home/shared/creative_services/graphics_photos {
comp-user-tar
exclude "./PHOTOS\ 2/[a-z]*"
}
borneo.shcorp.com /home/shared/creative_services/graphics_photos01
/home/shared/creative_services/graphics_photos {
comp-user-tar
include "./PHOTOS\ 2/[a-z]*"
}

When run with amcheck, this results in

Amanda Backup Client Hosts Check

ERROR: borneo.shcorp.com: [Can't open disk
'/home/shared/creative_services/graphics_photos']
ERROR: borneo.shcorp.com: [No include for
'/home/shared/creative_services/graphics_photos01']


If the second entry above reads

borneo.shcorp.com /home/shared/creative_services/graphics_photos01
/home/shared/creative_services/graphics_photos {
comp-user-tar
exclude "./PHOTOS\ 2/[!a-z]*"
}

amcheck and dump work fine. However, I don't think it's doing what I
intend, which is "include everything from './PHOTOS\ 2/[a-z]*' in
photos01, and put everything else in photos". So what am I doing
wrong with my "include" syntax?

-- 
Kurt Yoder
Sport & Health network administrator



Re: ignore certain log errors?

2003-12-04 Thread Kurt Yoder

Jon LaBadie said:
>> Hmm... guess I could add an "ignore file" on the client side. It
>> could be the same type of thing as the exclude list file. It could
>> reside in the base directory of the DLE being backed up and get
>> read
>> in by sendbackup.
>>
>> Would this work for smbclient backups too?
>
> The amanda client is not the PC.  It is the unix box running
> smbclient.
> That box is running sendbackup* just as if it were backing up local
> FS's.
> As mentioned previously, that is where the ignore error messages
> list is used.
> The list seems to contain some smbclient messages already.

So assuming I want to add more ignore messages from a file, perhaps
I could read from /.amanda_sendbackup_ignore. Is there already a set
of functions within the amanda source to read such a file in? Or
should I write my own functions to accomplish this? I'd prefer the
former, since I am unfortunately not very experienced with C.

-- 
Kurt Yoder
Sport & Health network administrator



Re: ignore certain log errors?

2003-12-04 Thread Kurt Yoder

Jon LaBadie said:
> On Thu, Dec 04, 2003 at 10:42:15AM -0500, Kurt Yoder wrote:
>>
>> Jon LaBadie said:
>> > On Wed, Dec 03, 2003 at 03:37:07PM -0500, Kurt Yoder wrote:
>> >> Hello list
>> >>
>> >> I do backups of directories containing files that sometimes
>> change
>> >> or disappear during backup. I don't want to add the directories
>> or
>> >> files to an exclude list, because I want to continue to attempt
>> to
>> >> back them up. But I also don't want errors regarding these
>> files
>> >> to
>> >> be reported back to me, because the backup failure isn't
>> critical.
>> >> Is there a way to construct an "ignore errors list" that is
>> >> specific
>> >> to each disklist entry?
>> >
>> > This approach would require a rebuild of amanda.
>> >
>> > There are files that contain an array of regular expression
>> > patterns describing messages that can be safely ignored from
>> > dump and tar and ???.  Some are commented out, or enclosed in
>> > conditional "#if.../#endif" clauses.  And the list can be
>> > extended.  I think, but am not certain, it is the sendbackup*
>> > source files.
>>
>> Suppose I wanted to define the "log exclude" lines in the disklist
>> file instead of hard-coding them into the client binary? Is there
>> a
>
> There is no way that I know of to define dynamically a set of
> error messages to ignore.  Only the static one I mentioned above
> in the sendbackup*.c files.

Well, if I'm going to be hacking code, I might as well add the
capability. Rebuilding the binary every time I want to add an
"ignore" entry would be a PITA.

> And you would not want them in the the disklist file anyway.  If I
> understand your need, you are seeing things like "file changed as
> we backed it up" or "no such file" because it was deleted before
> it was backed up.  You would want to ignore these in a more generic
> way, not linked to a specific file or DLE.  The place to add dynamic
> error message ignoring (if you really want to do it) is in the
> dumptype.
> So that all "comp-user-tar" DLE's would ignore it rather than
> putting
> the ignore pattern in a 10 DLE's.

Actually, I *would* want to define them individually for each DLE. A
"file changed as we read it" error might be OK for one DLE, but not
for another. However, I agree that the capability to put it in the
dump type would be useful.

>> function within the server code that examines the log messages
>> coming back from the clients? Or maybe I could catch these
>> messages
>> on the server side right before they get written to the email
>> report?
>
> As currently constructed, it is the clients responsibility to
> examine
> the messages and drop those that are not important desired.

Hmm... guess I could add an "ignore file" on the client side. It
could be the same type of thing as the exclude list file. It could
reside in the base directory of the DLE being backed up and get read
in by sendbackup.

Would this work for smbclient backups too?

-- 
Kurt Yoder
Sport & Health network administrator



Re: ignore certain log errors?

2003-12-04 Thread Kurt Yoder

Jon LaBadie said:
> On Wed, Dec 03, 2003 at 03:37:07PM -0500, Kurt Yoder wrote:
>> Hello list
>>
>> I do backups of directories containing files that sometimes change
>> or disappear during backup. I don't want to add the directories or
>> files to an exclude list, because I want to continue to attempt to
>> back them up. But I also don't want errors regarding these files
>> to
>> be reported back to me, because the backup failure isn't critical.
>> Is there a way to construct an "ignore errors list" that is
>> specific
>> to each disklist entry?
>
> This approach would require a rebuild of amanda.
>
> There are files that contain an array of regular expression
> patterns describing messages that can be safely ignored from
> dump and tar and ???.  Some are commented out, or enclosed in
> conditional "#if.../#endif" clauses.  And the list can be
> extended.  I think, but am not certain, it is the sendbackup*
> source files.

Suppose I wanted to define the "log exclude" lines in the disklist
file instead of hard-coding them into the client binary? Is there a
function within the server code that examines the log messages
coming back from the clients? Or maybe I could catch these messages
on the server side right before they get written to the email
report?

I'd also need to know where the code is in the server that examines
the disk list, if you know this.

Should I be posting to the amanda-hackers list instead?

-- 
Kurt Yoder
Sport & Health network administrator


ignore certain log errors?

2003-12-03 Thread Kurt Yoder
Hello list

I do backups of directories containing files that sometimes change
or disappear during backup. I don't want to add the directories or
files to an exclude list, because I want to continue to attempt to
back them up. But I also don't want errors regarding these files to
be reported back to me, because the backup failure isn't critical.
Is there a way to construct an "ignore errors list" that is specific
to each disklist entry?

Thanks

-- 
Kurt Yoder
Sport & Health network administrator



Re: Is it a bad idea to share the /holdingdisk/ area among several concurrent dump sets?

2003-12-03 Thread Kurt Yoder

[EMAIL PROTECTED] said:
> Hi --
>
> I did a search through the FAQ-O-Matic and through the Yahoo egroup
> for
> 'share holding' and didn't find anything specific in response to
> this
> question, so I think it's safe to ask:
>
>   Is it a bad idea to have a central /holdingdisk/ area in use by
>   multiple concurrent dump sets?

If you're worried about collision of holding disk directories, you
can set a different subdirectory for each configuration. So config1
uses /holdingdisk/config1/. config2 uses /holdingdisk/config2/, etc.
All configs may use any holding disk space that is available, and
you won't get any collisions.

> But before you answer that, maybe I should ask this:
>
>   Is it a bad idea to run multiple concurrent dump sets in the first
> place?
>
> (While searching the egroup archive for an answer to this, I came
> across
> comments from some of the Amanda veterans that led me to believe
> that I
> should be using a _single_ backup set, instead of running multiple
> concurrent ones.  Am I reading that correctly?  If so, then the
> original
> question is moot...)

It depends on what you want to do; what do you mean by concurrent? I
use multiple dump sets: a daily set that runs every day except
Wednesday. On Wednesdays, I write to a separate weekly set unless
it's the first Wednesday of the month. If 1st Wed of month, I write
to a separate monthly set unless it's first Wed of year. If 1st Wed
of year, I write to a separate yearly set. This setup lets me keep
archival offsite backups.

So I use multiple sets, but only for archival purposes.

BTW, to do what I do requires more than the standard "call
amcheck/amdump from cron" method, since there's no way I know of in
cron to specify "day before 1st Wednesday of month unless 1st
Wednesday of year", etc. I wrote a script to pick which set to
check/dump; this script is called from cron every day. It in turn
calls amdump or amcheck with the correct backup set. If you don't
mind looking at hacked-together perl code, you can go look at it.
It's at

http://sourceforge.net/projects/ampick/



-- 
Kurt Yoder
Sport & Health network administrator



Re: Copying from one tape to another tape

2003-09-19 Thread Kurt Yoder

I will be out of the office from Monday 9/22/03 until 
Monday 10/6/03. If you need an immediate reply, please
email one of the IT staff.


Re: tar dumping to /dev/null

2003-09-18 Thread Kurt Yoder

Paul Bijnens said:
> Marc Cuypers wrote:
>
>> There is no sendbackup.*.debug.
>
> I don't remember anymore where 2.4.2 put it's debug files,
> and for how long.  I do remember JRJ changed something about
> handling those debug files in 2.4.2p2.  Maybe they are named
> different, or not kept long enough.
> Of course sendbackup.*debug is only generated when the backup
> really runs; while doing the estimate it generates sendsize.*debug
> files; and both commands can be found in runtar.*.debug files.

I'm using Debian woody too, and here are the /tmp/amanda files I
have from today:

amandad.20030918003003.debug   runtar.20030918003014.debug
amandad.20030918021518.debug   runtar.20030918022143.debug
amandad.20030918021919.debug   sendbackup.20030918021518.debug
amandad.20030918022142.debug   sendbackup.20030918021919.debug
amandad.20030918022517.debug   sendbackup.20030918022142.debug
amandad.20030918024550.debug   sendbackup.20030918022517.debug
amtrmidx.20030918063934.debug  sendbackup.20030918024550.debug
amtrmlog.20030918063933.debug  sendsize.20030918003003.debug
runtar.20030918003003.debug


> Slowly I do remember JRJ changed the handling of debugfiles, so
> that they are not overwritten be previous runs. If you have many
> disks, only the last one would be found.  Upgrading is best anyway.

Not sure I concur with the "upgrading is best" part. The Debian
Woody packages (2.4.2p2) have been working fine for me for quite
some time. So I'd suggest it's a simple config error.


-- 
Kurt Yoder
Sport & Health network administrator



ANSWER: pre- and post-dump script?

2003-09-18 Thread Kurt Yoder
So I asked about pre and post-dump scripts several weeks ago. Here
is what I've ended up doing; it seems to be working, and amverify is
happy:

1. compile amanda with tar=/usr/local/bin/tar
2. copy or symlink tar to /usr/local/bin/realtar
3. create a script /usr/local/bin/tar
4. chmod 755 /usr/local/bin/tar

/usr/local/bin/tar contains:

#!/bin/sh

RealCMD=/usr/local/bin/realtar# or whatever it is
DB_DLE=/# or whatever
EstOrDmp=estimate# a flag, values are estimate or dump
IsDB_DLE=no# a flag, values are yes and no

case "$5" in
$DB_DLE) IsDB_DLE=yes ;;
*) IsDB_DLE=no  ;;
esac

case "$3" in
/dev/null) EstOrDmp=estimate ;;
-) EstOrDmp=dump ;;
*) : # unexpected, some error;;
esac

echo `date` >> /tmp/amanda/tarlog
echo [EMAIL PROTECTED] >> /tmp/amanda/tarlog
echo $3 >> /tmp/amanda/tarlog
echo $5 >> /tmp/amanda/tarlog
echo ${IsDB_DLE} >> /tmp/amanda/tarlog
echo ${EstOrDmp} >> /tmp/amanda/tarlog

if [ ${IsDB_DLE} = yes -a ${EstOrDmp} = dump ];
then
#: #shutdown database (':' is a NoOp placeholder)
# PROFIT$ Database Server Shutdown
# *MUST* not allow any output from database shutdown
#otherwise tar breaks
/u/profits/profits_stop >/dev/null 2>1
fi

${RealCMD} "[EMAIL PROTECTED]"# this just runs the real gtar
RtrnCode=$?# with all the original args

if [ ${IsDB_DLE} = yes -a ${EstOrDmp} = dump ];
then
#: #restart database
# PROFIT$ Database Server Startup
# *MUST* not allow any output from database startup
#otherwise tar breaks
/u/profits/profits_start >/dev/null 2>1
fi

exit ${RtrnCode}

-- 
Kurt Yoder
Sport & Health network administrator



ANSWER: FATAL syncpipe_put: Broken pipe

2003-09-11 Thread Kurt Yoder

Kurt Yoder said:
> What does "taper: FATAL syncpipe_put: Broken pipe" mean? I've tried
> twice to flush a 26 GB dump image to tape, and got this message both
> times.

It was a hardware problem. Something about the motherboard and Linux
didn't get along. Switching to previous motherboard seems to have
fixed it.

-- 
Kurt Yoder
Sport & Health network administrator



Re: FATAL syncpipe_put: Broken pipe

2003-09-11 Thread Kurt Yoder

Paul Bijnens said:
> Kurt Yoder wrote:
>
>> My amdump log file is quite long, so here's the part that seems
>> most
>> relevant:
>  >  ...
>
> It seems it is the taper writer that is somehow crashing, without
> telling anybody.  Do you find a core file in the amanda home dir
> or in /tmp/amanda ?

Nope

[EMAIL PROTECTED]:/tmp/amanda# find / -name core
/dev/core
/proc/sys/net/core
/old/dev/core


> Just a wild guess: is the tapecapacity < 26Gbyte?  You're still
> running
> version 2.4.2p2 and I remember somewhere someone changed something
> so that a file that fails twice while taping, is not a candidate
> anymore
> (avoiding that one file is tried on each tape and trashes all tapes
> in the loader).

Tape and drive capacity is 40 GB uncompressed. So what would be
wrong with the dump image? Should I try manually uncompressing that
image and seeing what's on it?

> If you're brave, upgrade to 2.4.4p1 (or the latest 2.4.4 snapshot
> from
> http://www.iro.umontreal.ca/~martinea/amanda ) and if the problem
> persists, recompile amanda with TAPER_DEBUG=1.

I'd like to avoid that if at all possible...

-- 
Kurt Yoder
Sport & Health network administrator


Re: FATAL syncpipe_put: Broken pipe

2003-09-11 Thread Kurt Yoder

Paul Bijnens said:
> Kurt Yoder wrote:
>
>> What does "taper: FATAL syncpipe_put: Broken pipe" mean? I've
>> tried
>> twice to flush a 26 GB dump image to tape, and got this message
>> both
>> times.
>
> Any other messages in the file "amdump.*" and the LOG.datestamp.lvl.
> file?
> There are two tapers, a reader and a writer.  Maybe there are some
> error messages from one of those.

My amdump log file is quite long, so here's the part that seems most
relevant:

driver: finished-cmd time 9464.088 dumper0 dumped
borneo.shcorp.com:/home/groups/graphics_photos
driver: send-cmd time 9464.088 to taper: FILE-WRITE 00-00026
/backups/amandadisk/holding/20030911/borneo.shcorp.com._home_groups_graphics__photos.0
borneo.shcorp.com /home/groups/graphics_photos 0 20030911
driver: state time 9464.088 free kps: 36000 space: 55661264 taper:
writing idle-dumpers: 4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 86400
driver-idle: not-idle
driver: interface-state time 9464.088 if : free 36000
driver: hdisk-state time 9464.088 hdisk 0: free 55661264 dumpers 0
syncpipe_put: Broken pipe
taper: pid 6574 finish time Thu Sep 11 03:31:12 2003
driver: result time 10870.550 from taper:
dump of driver schedule before start degraded mode:

Then here's my amflush log file:

driver: send-cmd time 0.000 to taper: START-TAPER 20030911
taper: pid 7964 executable taper version 2.4.2p2
changer: opening pipe to: /usr/lib/amanda/chg-multi -info
changer: got exit: 0 str: 1 1 1
changer_query: changer return was 1 1
changer_query: searchable = 0
changer_find: looking for CDS1tape07 changer is searchable = 0
changer: opening pipe to: /usr/lib/amanda/chg-multi -slot current
changer: got exit: 0 str: 1 /dev/nst0
taper: slot 1: date 20030811 label CDS1tape07 (exact label match)
taper: read label `CDS1tape07' date `20030811'
taper: wrote label `CDS1tape07' date `20030911'
driver: send-cmd time 11.544 to taper: FILE-WRITE 00-1
/backups/amandadisk/holding/20030911/borneo.shcorp.com._home_groups_graphics__photos.0
borneo.shcorp.com /home/groups/graphics_photos 0 20030911
syncpipe_put: Broken pipe
taper: pid 7965 finish time Thu Sep 11 09:18:40 2003
driver: send-cmd time 44.205 to taper: QUIT
writing taper command: Broken pipe

and here's my log.20030911.1:

START amflush date 20030911
START taper datestamp 20030911 label CDS1tape07 tape 0
FATAL taper syncpipe_put: Broken pipe
WARNING amflush
/backups/amandadisk/holding/20030911/borneo.shcorp.com._home_groups_graphics__photos.0:
taper error, leaving file on disk
WARNING amflush Could not rmdir
/backups/amandadisk/holding/20030911.  Check for cruft.
FINISH amflush date 20030911 time 44.205


-- 
Kurt Yoder
Sport & Health network administrator


FATAL syncpipe_put: Broken pipe

2003-09-11 Thread Kurt Yoder
What does "taper: FATAL syncpipe_put: Broken pipe" mean? I've tried
twice to flush a 26 GB dump image to tape, and got this message both
times.

-- 
Kurt Yoder
Sport & Health network administrator



Re: Amanda win32 Client

2003-09-03 Thread Kurt Yoder
Anyone on this list interested in being paid to re-do the Windows
client? Ideally, I'd want something with an easy-to-use installer.
Should work more consistently than the current Windows client, and
file restores should be simple. I don't care if it's a ground-up
reimplementation, or what language it's in.

Any takers? Approximate asking price to do the job? Anyone else want
to chip in money to make this happen?

JC Simonetti said:
> You have 3 ways to backup Windows by Amanda:
> 1. Win32 client: good luck, since its development has been stopped 2
> years ago
> 2. Windows shares and Samba client on your Amanda box: not so good
> because of the rights of the files that are bot backed up
> 3. Amanda standard client installed under Cygwin on your Windows
> box: OK, but you have to install Cygwin first; and I'm not sure I
> like this solution, just because I have to install a "Linux
> emulator" on a Windows box (can you imagine yourself installing a
> Wine on your Linux just to make some administrative operations? I
> don't).


-- 
Kurt Yoder
Sport & Health network administrator



Re: getting amverify to verify nttar, etc

2003-09-02 Thread Kurt Yoder

Paul Bijnens said:


> Is it amverify only that says "Cannot do nttar dumps" or does
> amcheck
> and others complain with similar errormsgs?

Only amverify complains; amcheck does not complain. I can also
restore off the gtar, etc images with no problem.

>  > What am I doing wrong? (In fact, echoing the value of $2 to a
> file
>  > right above this code fragment doesn't even work, which is
> confusing
>  > me)
>
> "doesn't even work"? as emty output? or other error msg?
> What if you add as first line, just after the hash-bang
>
>   #!/bin/sh
>   echo ARGS: "$@" > /tmp/amverify-args.$$
>   # rest of the program.

There's a section of the script like this:

if [ X"$HEADER" = X"" ]; then
   echo "** No header" > $TEMP/errors
else
   set X $HEADER
   shift
   shift 9

Right after that, I added

echo $2 >> /tmp/transcript
echo "blah" >> /tmp/transcript

but /tmp/transcript was empty. Confusing, it should have at least
contained the line "blah" for every amverify that was done.

I will add your testing line and see what it does.

-- 
Kurt Yoder
Sport & Health network administrator


hung client stopped whole backup

2003-09-02 Thread Kurt Yoder
So last night/this morning a backup was supposed to happen for all
the servers. Unfortunately, one of the clients never sent results
back, and this hung the whole process. When I checked at 8:30, the
dump process was *still* waiting for this single host to deliver
estimates. The estimates were all started at 12:30 AM, 8 hours
earlier.

My etimeout is set to 3200 (I have a few extremely sluggish hosts)
and the host in question has 4 disks. So the amanda server *should*
have timed out this host after about 3.5 hours and continued with
the backups from the other hosts. Any ideas on why it didn't time
out as it should have?


-- 
Kurt Yoder
Sport & Health network administrator



getting amverify to verify nttar, etc

2003-08-29 Thread Kurt Yoder
How do I get amverify to verify nttar, gtar, etc? I'm attempting to
edit the amverify script to contain this:

if [ X"$TAR" != X"" -a X"$2" = X"$TAR" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a X"$SAMBA_CLIENT" != X"" \
-a X"$2" = X"$SAMBA_CLIENT" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a \(
X`basename $2` = X`basename $TAR` \
-o X`basename $2` = X"gtar" \
-o X`basename $2` = X"gnutar" \
-o X`basename $2` = X"nttar" \) ]; then
CMD=$TAR
ARGS="tf -"

However, I still receive messages like "(** Cannot do nttar dumps)".
What am I doing wrong? (In fact, echoing the value of $2 to a file
right above this code fragment doesn't even work, which is confusing
me)


-- 
Kurt Yoder
Sport & Health network administrator



Re: Restoring a blown-up server; determining which tapes havethe backup

2003-08-29 Thread Kurt Yoder
Paul Bijnens said:
> Kurt Yoder wrote:
>
>> I don't think this would work. AFAIK, you can't back up the index
and log files for the current backup onto the current backup.
>> Plus,
>> there's no way to guarantee that this partition is the last one
backed up onto tape. Plus, even if you could guarantee that,
there
>> would be no way of knowing how many backup images are on the
tape,
>> so you couldn't do "mt fsf " to get to where you want to
>> be on tape.
>
> Oh yes there is.  A quick and dirty way:
>
>amdump YourConf  &&  tar -zcf /dev/nst0 /var/lib/amanda

True; hadn't thought of that.

I wonder if it would be worthwhile to put in a feature request for
Amanda: store current tape's index & backup information at the
beginning of the tape before anything else is written. Could be set
as an option for those who would want this kind of thing.

-- 
Kurt Yoder
Sport & Health network administrator





Re: Restoring a blown-up server; determining which tapes have the backup

2003-08-29 Thread Kurt Yoder

Antonios Christofides said:
> Hi,
>
> I know this has been discussed before, but I need some more ideas.
> I've recently switched from homegrown script to Amanda, and although
> backup works fine, I haven't made the recovery plan yet, I'm doing
> so
> now.
>
> Suppose the server blows-up and that the few items that survived the
> explosion are soaked in the fire brigade's water. I need to rebuild
> the
> server from scratch, and the only thing I have is the tapes. How do
> I
> know which tape has which backup levels for each partition?
>
> The answer given to this some weeks ago was to print the amanda
> report
> each time, and store the hard printed reports together with the
> tapes.
> This works, but I find it inconvenient; essentially it doubles tape
> storage complexity - instead of storing a number of tapes, I have to
> store a number of tapes plus an equal (at least) number of pieces of
> paper.
>
> So I thought of this alternative: place the amanda index and log
> files
> (and, maybe, amanda reports, but not hard printed) on a small
> partition
> which is always fully backed up, and always last on tape (so that it
> contains the updated information about that tape's backups). So I
> recover that partition, and then I run amrecover or amrestore or
> something and the rest is figured out by amanda. The only thing I
> need
> to find out is which is the most recent tape, but I don't think
> that's
> too difficult; it will either be the tape which precedes a missing
> tape (which is presumably reduced to ashes), or it may be
> remembered,
> and it can be verified with a "dd if=/dev/nst0 bs=32k".
>
> You think this would (a) work, and (b) be a good idea?
>

I don't think this would work. AFAIK, you can't back up the index
and log files for the current backup onto the current backup. Plus,
there's no way to guarantee that this partition is the last one
backed up onto tape. Plus, even if you could guarantee that, there
would be no way of knowing how many backup images are on the tape,
so you couldn't do "mt fsf " to get to where you want to
be on tape.

Perhaps you could try something like an index/log backup script
every day. Just copy the index and log files onto removable media
and store them with the backup tapes. Alternately, find a non-local
machine and rsync the index and log files onto it via the network.
You could even use an internet shell account with a few MB of local
storage for this purpose; perhaps your ISP can provide this for you.


don't understand amverify

2003-08-28 Thread Kurt Yoder
So I'm trying to get amverify to verify "nttar" and "gtar" backups.
I've looked at this part of the amverify script from amanda 2.4.2p2:

if [ X"$1" = X"program" -a X"$2" != X"" ]; then
if [ X"$TAR" != X"" -a X"$2" = X"$TAR" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a X"$SAMBA_CLIENT" != X"" \
-a X"$2" = X"$SAMBA_CLIENT" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a X`basename $2` = X`basename $TAR` ]; then
CMD=$TAR
ARGS="tf -"

But I don't understand it. If $1 is "tar", oes X"$1" = X"program"
compare "Xtar" to "Xprogram"? What are all these X's for?

-- 
Kurt Yoder
Sport & Health network administrator



Re: Spam is getting old...

2003-08-27 Thread Kurt Yoder

Mitch Collinsworth said:
> SpamAssassin has blocked all spam/virus mail arriving through this
> list for me since I started using it.  (It hasn't done as well for
> non-list spam however.)  So now I don't see the spam/virus, I just
> see the handful of 'you sent me a spam/virus' replies that follow
> each one and are sent erroneously to the list.
>
> If I were list manager I would either unzubscribe or block posting
> from sites generating these replies.

So who *is* the list manager who would be in charge of doing this
anyway?

-- 
Kurt Yoder
Sport & Health network administrator



Re: How do I improve performance in Amanda?

2003-08-27 Thread Kurt Yoder
Maybe. If you can, try backing up the filesystems directly instead
of via nfs and see if this makes a difference.

Ashwin Bijur said:
> But we are using hardware compression.  A majority of the
> filesystem,
> however, is nfs mounted.  Will that slow down the backups?
>
> Kurt Yoder wrote:
>
>>If you're using software/gzip compression, it slows it down below
>>the bandwidth of a 100 Mbps network.
>>
>>Ashwin Bijur said:
>>
>>>Hello,
>>>
>>>I am using amanda 2.4.4 and the amanda host (running RedHat 9) has
>>> a
>>>gigabit connection to the network. Yet it seems to utilize only a
>>>fraction of the available bandwidth.  How do I force it to run at
>>>100%
>>>capacity?  Here are the statistics from my last backup and below
>>> you
>>>can
>>>see my amanda.conf file.  Thanks in advance.
>>>
>>
>>
>
>


-- 
Kurt Yoder
Sport & Health network administrator



Re: pre- and post-dump script?

2003-08-25 Thread Kurt Yoder

Jon LaBadie said:
> Interesting.  Of course as I do not amverify I would not have
> encountered that problem.  I looked at amverify.  It is a shell
> script.  In there is a section:
>
> if [ X"$1" = X"program" -a X"$2" != X"" ]; then
>   if [ X"$TAR" != X"" \
>-a \( X"`basename $2`" = X"`basename $TAR`" \
>  -o X"`basename $2`" = X"gtar" \
>  -o X"`basename $2`" = X"gnutar" \
>  -o X"`basename $2`" = X"tar" \) ]; then
>   CMD=$TAR
>   ARGS="tf -"
>   elif [ X"$TAR" != X"" \
>  -a X"$SAMBA_CLIENT" != X"" \
>  -a X"$2" = X"$SAMBA_CLIENT" ]; then
>   CMD=$TAR
>   ARGS="tf -"
>
> Which on first inspection would suggest there is a limitation.
> I'll see if I can look at this closer in the future.  Now I'm
> taking down my system and updating the OS.

Kewl. I didn't realize amverify is just a shell script. I'm using
2.4.2p2, and my version of amverify appears not include gtar or
gnutar. I'm adding gtar and nttar to the "accepted" list in my
amverify script. I'll see how well it works...

-- 
Kurt Yoder
Sport & Health network administrator



Re: pre- and post-dump script?

2003-08-25 Thread Kurt Yoder

Jon LaBadie said:
> On Fri, Aug 22, 2003 at 02:33:59PM -0400, Kurt Yoder wrote:
>> Thanks for instrucs; I'll try them out.
>>
>> Jon LaBadie said:
>> > On my system, amanda installs under /usr/local and puts
>> > some executables in "libexec" so I copy my gnutar to that
>> > directory and name it "amgtar".  Then my configure options
>> > include "--with-guntar=/usr/local/libexec/amgtar".
>>
>> Do you do amverify also? Does it complain about "amgtar" and
>> refuse
>> to verify it?
>
> No, I don't amverify (bad Jon!)
>
> But I don't see why you think it might be a problem.

For me, amverify refuses to run a verify on tar backups made with
any program that isn't called tar. For instance, I installed a
custom-compiled tar on a freebsd machine and called it gtar.
Amverify thinks it doesn't know how to handle gtar, even though gtar
is gnu tar 1.13.25. I even put some symlinks on the backup server;
/usr/local/bin/gtar points to /bin/tar, but this didn't help either.

-- 
Kurt Yoder
Sport & Health network administrator



close list to non-subscribers?

2003-08-25 Thread Kurt Yoder

Whoever is admin'ing the amanda-users list: is it possible for you
to prevent posts from non-subscribers? Or if this is already the
case, please cancel the subscriptions of the people sending all the
spam to this list...



-- 
Kurt Yoder
Sport & Health network administrator



Re: How do I improve performance in Amanda?

2003-08-22 Thread Kurt Yoder
If you're using software/gzip compression, it slows it down below
the bandwidth of a 100 Mbps network.

Ashwin Bijur said:
> Hello,
>
> I am using amanda 2.4.4 and the amanda host (running RedHat 9) has a
> gigabit connection to the network. Yet it seems to utilize only a
> fraction of the available bandwidth.  How do I force it to run at
> 100%
> capacity?  Here are the statistics from my last backup and below you
> can
> see my amanda.conf file.  Thanks in advance.


-- 
Kurt Yoder
Sport & Health network administrator



Re: pre- and post-dump script?

2003-08-22 Thread Kurt Yoder
Thanks for instrucs; I'll try them out.

Jon LaBadie said:
> On my system, amanda installs under /usr/local and puts
> some executables in "libexec" so I copy my gnutar to that
> directory and name it "amgtar".  Then my configure options
> include "--with-guntar=/usr/local/libexec/amgtar".

Do you do amverify also? Does it complain about "amgtar" and refuse
to verify it?

-- 
Kurt Yoder
Sport & Health network administrator


Re: pre- and post-dump script?

2003-08-21 Thread Kurt Yoder
This is a possibility. The disadvantage is that the database stays
shut down for the duration of a complete amdump. I really only need
it to be shut down for the duration of the backup on the database
server. I could do it the way you are suggesting if no other way is
feasible.

Robert Helmer said:
> Maybe I am missing something, but can't you run a script from cron
> that does something like :
>
> pre_backup.sh &&
> amdump DailySet1 &&
> post_backup.sh
>
>
> On Thu, Aug 21, 2003 at 04:46:29PM -0400, Kurt Yoder wrote:
>> So, what's the easiest way to run a command on a client before the
>> dump starts and a different command after the dump finishes? I
>> need
>> to shut down a database, do the dump, then restart the database.
>> Do
>> I have to re-code the runtar executable to do this? C is a bit
>> beyond my abilities at this point. If anyone has an example of how
>> they've done this, please post or let me know.
>>
>> Thanks
>>
>> --
>> Kurt Yoder
>> Sport & Health network administrator
>>
>


-- 
Kurt Yoder
Sport & Health network administrator



RE: pre- and post-dump script?

2003-08-21 Thread Kurt Yoder
Actually, I already have the command-line to use to shut it down and
start it back up. I just need to know how to execute these commands
before Amanda starts the dump and after it's finished.

Amanda server is 2.4.2p2 on Debian Linux
Amanda client is 2.4.4 on SCO Unix
Database is Progress (but as mentioned, I already have the scripts
to shut down and start it)
SCO Unix shell is plain Bourne Shell, can't determine version.
I can run remote commands either way if need be.

Rebecca Pakish Crum said:
> Is this an oracle database? Or what kind?
> What's your OS? Do you have bash?
> A basic bash script can start a remote shell out to the client and
> shut
> down your db, then run amdump and then remote shell back out and
> start
> the db.
> With a little more info maybe I can help...
>
>> -Original Message-
>> From: Kurt Yoder [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, August 21, 2003 3:46 PM
>> To: [EMAIL PROTECTED]
>> Subject: pre- and post-dump script?
>>
>>
>> So, what's the easiest way to run a command on a client
>> before the dump starts and a different command after the dump
>> finishes? I need to shut down a database, do the dump, then
>> restart the database. Do I have to re-code the runtar
>> executable to do this? C is a bit beyond my abilities at this
>> point. If anyone has an example of how they've done this,
>> please post or let me know.
>>
>> Thanks
>>
>> --
>> Kurt Yoder
>> Sport & Health network administrator
>>
>>
>


-- 
Kurt Yoder
Sport & Health network administrator


pre- and post-dump script?

2003-08-21 Thread Kurt Yoder
So, what's the easiest way to run a command on a client before the
dump starts and a different command after the dump finishes? I need
to shut down a database, do the dump, then restart the database. Do
I have to re-code the runtar executable to do this? C is a bit
beyond my abilities at this point. If anyone has an example of how
they've done this, please post or let me know.

Thanks

-- 
Kurt Yoder
Sport & Health network administrator



pre- and post-dump script?

2003-08-21 Thread Kurt Yoder
So, what's the easiest way to run a command on a client before the
dump starts and a different command after the dump finishes? I need
to shut down a database, do the dump, then restart the database. Do
I have to re-code the runtar executable to do this? C is a bit
beyond my abilities at this point. If anyone has an example of how
they've done this, please post or let me know.

Thanks

-- 
Kurt Yoder
Sport & Health network administrator



Re: strange "disk offline" error

2003-07-28 Thread Kurt Yoder

So it looks like this has something to do with me compiling this on
SCO. I've asked my local "knowledgeable SCO guy" and he gave me an
explanation that I don't understand but perhaps one of the coders
would. Should I direct this thread to amanda-hackers instead?

Kurt Yoder said:
> More information about this problem:
>
> Looking more closely in /tmp/amanda/sendsize...debug, I see
> something strange:
>
> sendsize[7578]: time 0.020: calculating for amname '/', dirname '/',
> spindle -1
> sendsize[7578]: time 0.020: getting size via dump for / level 0
> sendsize[7578]: time 0.020: calculating for device '/' with ''
> sendsize[7578]: time 0.022: running "/bin/dump 0Esf 1048576 - /"
> sendsize[7578]: time 0.023: running /usr/local/libexec/killpgrp
> sendsize[7578]: time 0.137: Usage: dump [-?CDVcgl -L[v] -a[v] -f[v]
> -h[dnv] -o[v] -r[dnv] -s[dnv] -t[nv] -T index1[, index2]] file(s)
> ...
> sendsize[7578]: time 0.138: .
> sendsize[7578]: estimate time for / level 0: 0.116
> sendsize[7578]: no size line match in /bin/dump output for "/"
> sendsize[7578]: .
> sendsize[7578]: estimate size for / level 0: -1 KB
> sendsize[7578]: time 0.138: asking killpgrp to terminate
> sendsize[7578]: time 1.149: done with amname '/', dirname '/',
> spindle -1
>
> Notice line 6 "Usage: " message. Perhaps dump is not acting the way
> amanda expects? Is this my problem? I had trouble getting gnu tar to
> compile, but maybe I should try again so I can use it instead of
> dump.

-- 
Kurt Yoder
Sport & Health network administrator



Re: strange "disk offline" error

2003-07-25 Thread Kurt Yoder
So I'm still getting the "disk offline" error, and seeing this in my
/tmp/amanda/sendsize...debug:




sendsize: debug 1 pid 502 ruid 19 euid 19: start at Fri Jul 25
14:24:16 2003
sendsize: version 2.4.4
sendsize[502]: time 0.026: waiting for any estimate child
sendsize[505]: time 0.026: calculating for amname '/', dirname '/',
spindle -1
sendsize[505]: time 0.026: getting size via gnutar for / level 0
sendsize[505]: time 0.042: spawning /usr/local/libexec/runtar in
pipeline
sendsize[505]: argument list: /usr/local/bin/tar --create --file
/dev/null --directory / --one-file-system --listed-incremental
/usr/local/var/amanda/gnutar-lists/db.shcorp.com__0.new --sparse
--ignore-failed-read --totals --exclude-from
/tmp/amanda/sendsize._.20030725142416.exclude .
sendsize[505]: time 0.054: error [cannot find user backup in passwd
file]
sendsize[505]: time 0.056:
sendsize[505]: time 0.057: .
sendsize[505]: estimate time for / level 0: 0.015
sendsize[505]: no size line match in /usr/local/bin/tar output for "/"
sendsize[505]: .
sendsize[505]: estimate size for / level 0: -1 KB
sendsize[505]: time 0.057: waiting for /usr/local/bin/tar "/" child
sendsize[505]: time 0.160: after /usr/local/bin/tar "/" wait
sendsize[505]: time 0.160: done with amname '/', dirname '/',
spindle -1
sendsize[502]: time 0.160: child 505 terminated normally
sendsize: time 0.160: pid 502 finish time Fri Jul 25 14:24:16 2003




I'm pretty certain my problem has to do with the "cannot find user
backup in passwd file". But this makes no sense. I can su - backup
and then view /etc/passwd. The user backup is definitely in it. Any
ideas for what's causing this?

-- 
Kurt Yoder
Sport & Health network administrator



Re: strange "disk offline" error

2003-07-24 Thread Kurt Yoder

Joshua Baker-LePain said:



> Yup, that's definitely the problem.  Is amanda picking the right
> dump for
> your filesystem?  You can tell by the output of ./configure (it
> might also
> be in the amandad*debug files -- I'm not sure).
>
> tar is nice for being so cross platform.  If you can get that to go,
> it
> might be your better option.

OK, I got gnu tar 1.13 compiled and working. However, I still get
the "disk offline" error. Now in /tmp/amanda/sendsize... I see this
which doesn't look good either:

sendsize: debug 1 pid 15490 ruid 19 euid 19: start at Thu Jul 24
00:30:05 2003
sendsize: version 2.4.4
sendsize[15490]: time 0.009: waiting for any estimate child
sendsize[15492]: time 0.009: calculating for amname '/', dirname
'/', spindle -1sendsize[15492]: time 0.015: getting size via gnutar
for / level 0
sendsize[15492]: time 0.016: spawning /usr/local/libexec/runtar in
pipeline
sendsize[15492]: argument list: /usr/local/bin/tar --create --file
/dev/null --directory / --one-file-system --listed-incremental
/usr/local/var/amanda/gnutar-lists/db.shcorp.com__0.new --sparse
--ignore-failed-read --totals --exclude-from
/tmp/amanda/sendsize._.20030724003005.exclude .
sendsize[15492]: time 0.028: error [cannot find user backup in
passwd file]
sendsize[15492]: time 0.059:
sendsize[15492]: time 0.060: .
sendsize[15492]: estimate time for / level 0: 0.044
sendsize[15492]: no size line match in /usr/local/bin/tar output for
"/"
sendsize[15492]: .
sendsize[15492]: estimate size for / level 0: -1 KB
sendsize[15492]: time 0.061: waiting for /usr/local/bin/tar "/" child
sendsize[15492]: time 0.061: after /usr/local/bin/tar "/" wait
sendsize[15492]: time 0.061: done with amname '/', dirname '/',
spindle -1
sendsize[15490]: time 0.061: child 15492 terminated normally


Again I see "cannot find user backup in passwd file". In looking at
/etc, I noticed the passwd file is actually a symlink to a passwd
file in another directory (For anyone who has SCO, why in GOD'S NAME
do they do this symlink BS for everything? It is horrible!). Is this
the only problem that's stopping me here, or is there anything else
that needs fixing?

-- 
Kurt Yoder
Sport & Health network administrator


FOLLOW-UP: amverify runs on same tape twice

2003-07-24 Thread Kurt Yoder

Kurt Yoder said:
> Hello folks
>
> I've only got one tape drive with no robot, so if I have more than
> one tape, I change it manually. Thus, I've set up a "manual changer"
> configuration; part of that is setting "runtapes 2". So far, so
> good.
>
> Now if I run amverify, it verifies once (ok), then rewinds and
> *re-verifies the same tape*. According to amverify man page, this is
> because I've set runtapes to 2. I would like to set runtapes to 2 so
> I can manually change tapes, but not have amverify check the same
> tape twice. Is this possible?

For anyone who was interested, I ended up creating a new set
exclusively for verifies. This set has runtapes set to 1. Problem
solved...

-- 
Kurt Yoder
Sport & Health network administrator



Re: How could amflush NOT flush ? :o)

2003-07-23 Thread Kurt Yoder

Nicolas Ecarnot said:
> Hi,
>
> My Amanda setup keeps improving tests after tests and I still have
> so many questions.
> Today is : How could I do to make automatic flushes (autoflush) but
> without deleting the holding disk directories ?
>
> What I'd like to have is this situation :
> - cron launches amdump
> - the autoflush option is set, so as to write datas on the holding
> disk AND to tape
> - but to keep the last holding disk directory
> - Another cron would remove the (n-1) last hoslding disk directory
>
> That way, I could restore the previous-day files directly from the
> holding disk files, without having to go search my tapes.

Just an idea for you: use rsync to make on-line backups of all your
amanda disks. This is what I do. That way, there's no tweaking of
amanda necessary (though rsync must be set up). Restoring files from
your on-line backups is then as simple as using "scp", "ftp", or
whatever you want.

-- 
Kurt Yoder
Sport & Health network administrator



Re: strange "disk offline" error

2003-07-23 Thread Kurt Yoder
More information about this problem:

Looking more closely in /tmp/amanda/sendsize...debug, I see
something strange:

sendsize[7578]: time 0.020: calculating for amname '/', dirname '/',
spindle -1
sendsize[7578]: time 0.020: getting size via dump for / level 0
sendsize[7578]: time 0.020: calculating for device '/' with ''
sendsize[7578]: time 0.022: running "/bin/dump 0Esf 1048576 - /"
sendsize[7578]: time 0.023: running /usr/local/libexec/killpgrp
sendsize[7578]: time 0.137: Usage: dump [-?CDVcgl -L[v] -a[v] -f[v]
-h[dnv] -o[v] -r[dnv] -s[dnv] -t[nv] -T index1[, index2]] file(s)
...
sendsize[7578]: time 0.138: .
sendsize[7578]: estimate time for / level 0: 0.116
sendsize[7578]: no size line match in /bin/dump output for "/"
sendsize[7578]: .
sendsize[7578]: estimate size for / level 0: -1 KB
sendsize[7578]: time 0.138: asking killpgrp to terminate
sendsize[7578]: time 1.149: done with amname '/', dirname '/',
spindle -1

Notice line 6 "Usage: " message. Perhaps dump is not acting the way
amanda expects? Is this my problem? I had trouble getting gnu tar to
compile, but maybe I should try again so I can use it instead of
dump.

-- 
Kurt Yoder
Sport & Health network administrator



strange "disk offline" error

2003-07-22 Thread Kurt Yoder
(That previous message should have had this subject; sorry, mail
client troubles)

Hello list

I just compiled amanda on a SCO Unix machine (uname -a shows "SCO_SV
shcorp 3.2 5.0.6 i386") and tried to follow instructions to install
it, instructing amanda to back up both of its disks. Everything
appears successful, and the machine passes amcheck tests. When I run
amdump at night, my other linux, freebsd, and windows machines dump
successfully. However on my SCO machine, I get the message:

shcorp.shc /stand lev  FAILED [disk /stand offline on
shcorp.shcorp.com?]
shcorp.shc / lev  FAILED [disk / offline on shcorp.shcorp.com?]

I've looked in google, and found the following suggestions:

(from faq-o-matic,
http://amanda.sourceforge.net/fom-serve/cache/10.html)

is disk really offline?
Answer appears to be no. After all, I'm using this machine
throughout the day. So I'd assume it should be available for backup,
since no-one touches the machine at night.

filesystem error?
Well, I suppose there *could* be. But the fact that it happens on
both disks seems to indicate that this is not the problem. (I also
installed the same compiled version on a separate sco machine, and
it does the exact same thing).

filesystem too large?
Does not seem to be. /stand is only 15 megabytes, but still fails.

conflicting user name?
Doesn't seem to be it. I configured with user "backup". This only
shows up once in the passwd file, and this box does not have any
external sources for authentication (no nis, ldap, etc)

don't have dump installed?
This isn't it. I compiled by hand, and the config.log shows that
amanda found the dump program. I suppose it could conceivably be
something that amanda doesn't like about SCO's dump program though.
How can I check if this might be the problem?

(from an archived post:
http://groups.yahoo.com/group/amanda-users/message/40200)
permissions on /etc/fstab ok?
On SCO, the file seems to be /etc/mnttab. It is unix mode 644, so
this shouldn't be a problem.



So, I looked at the logs in /tmp/amanda. For the last failed dump, I
see these logs:

-rw---   1 root backup   231 Jul 22 00:30
killpgrp.20030722043007.debug
-rw---   1 root backup   231 Jul 22 00:30
killpgrp.20030722043009.debug
-rw---   1 root sys 2108 Jul 22 00:30
sendsize.20030722003007.debug
-rw---   1 root sys 2275 Jul 22 00:30
amandad.20030722003005.debug

(strange that these are owned by root instead of backup; is this a
problem?)

sendsize ends with

sendsize[1383]: time 2.300: child 1388 terminated normally
sendsize: time 2.300: pid 1383 finish time Tue Jul 22 00:30:10 2003

Looks ok to me

amandad ends with

amandad: time 4.281: got packet:

Amanda 2.4 ACK HANDLE 00E-00A00608 SEQ 1058848217


amandad: time 4.281: pid 1382 finish time Tue Jul 22 00:30:10 2003

seems fine, or?

first killpgrp

killpgrp: debug 1 pid 1386 ruid 19 euid 0: start at Tue Jul 22
04:30:07 2003
/usr/local/libexec/killpgrp: version 2.4.4
killpgrp: error [cannot find user root in passwd file]
killpgrp: pid 1386 finish time Tue Jul 22 04:30:07 2003


second killpgrp

killpgrp: debug 1 pid 1389 ruid 19 euid 0: start at Tue Jul 22
04:30:09 2003
/usr/local/libexec/killpgrp: version 2.4.4
killpgrp: error [cannot find user root in passwd file]
killpgrp: pid 1389 finish time Tue Jul 22 04:30:09 2003


Weird errors here. The root user is definitely in the passwd file.
Could this be part of the problem?

Thanks for any ideas on fixing this...


-- 
Kurt Yoder
Sport & Health network administrator



strange

2003-07-22 Thread Kurt Yoder
Hello list

I just compiled amanda on a SCO Unix machine (uname -a shows "SCO_SV
shcorp 3.2 5.0.6 i386") and tried to follow instructions to install
it, instructing amanda to back up both of its disks. Everything
appears successful, and the machine passes amcheck tests. When I run
amdump at night, my other linux, freebsd, and windows machines dump
successfully. However on my SCO machine, I get the message:

shcorp.shc /stand lev  FAILED [disk /stand offline on
shcorp.shcorp.com?]
shcorp.shc / lev  FAILED [disk / offline on shcorp.shcorp.com?]

I've looked in google, and found the following suggestions:

(from faq-o-matic,
http://amanda.sourceforge.net/fom-serve/cache/10.html)

is disk really offline?
Answer appears to be no. After all, I'm using this machine
throughout the day. So I'd assume it should be available for backup,
since no-one touches the machine at night.

filesystem error?
Well, I suppose there *could* be. But the fact that it happens on
both disks seems to indicate that this is not the problem. (I also
installed the same compiled version on a separate sco machine, and
it does the exact same thing).

filesystem too large?
Does not seem to be. /stand is only 15 megabytes, but still fails.

conflicting user name?
Doesn't seem to be it. I configured with user "backup". This only
shows up once in the passwd file, and this box does not have any
external sources for authentication (no nis, ldap, etc)

don't have dump installed?
This isn't it. I compiled by hand, and the config.log shows that
amanda found the dump program. I suppose it could conceivably be
something that amanda doesn't like about SCO's dump program though.
How can I check if this might be the problem?

(from an archived post:
http://groups.yahoo.com/group/amanda-users/message/40200)
permissions on /etc/fstab ok?
On SCO, the file seems to be /etc/mnttab. It is unix mode 644, so
this shouldn't be a problem.



So, I looked at the logs in /tmp/amanda. For the last failed dump, I
see these logs:

-rw---   1 root backup   231 Jul 22 00:30
killpgrp.20030722043007.debug
-rw---   1 root backup   231 Jul 22 00:30
killpgrp.20030722043009.debug
-rw---   1 root sys 2108 Jul 22 00:30
sendsize.20030722003007.debug
-rw---   1 root sys 2275 Jul 22 00:30
amandad.20030722003005.debug

(strange that these are owned by root instead of backup; is this a
problem?)

sendsize ends with

sendsize[1383]: time 2.300: child 1388 terminated normally
sendsize: time 2.300: pid 1383 finish time Tue Jul 22 00:30:10 2003

Looks ok to me

amandad ends with

amandad: time 4.281: got packet:

Amanda 2.4 ACK HANDLE 00E-00A00608 SEQ 1058848217


amandad: time 4.281: pid 1382 finish time Tue Jul 22 00:30:10 2003

seems fine, or?

first killpgrp

killpgrp: debug 1 pid 1386 ruid 19 euid 0: start at Tue Jul 22
04:30:07 2003
/usr/local/libexec/killpgrp: version 2.4.4
killpgrp: error [cannot find user root in passwd file]
killpgrp: pid 1386 finish time Tue Jul 22 04:30:07 2003


second killpgrp

killpgrp: debug 1 pid 1389 ruid 19 euid 0: start at Tue Jul 22
04:30:09 2003
/usr/local/libexec/killpgrp: version 2.4.4
killpgrp: error [cannot find user root in passwd file]
killpgrp: pid 1389 finish time Tue Jul 22 04:30:09 2003


Weird errors here. The root user is definitely in the passwd file.
Could this be part of the problem?

Thanks for any ideas on fixing this...

-- 
Kurt Yoder
Sport & Health network administrator


Re: Suggestions for a dedicated Amanda-System

2003-07-18 Thread Kurt Yoder
I just use a stock kernel (Debian Linux) with my amanda servers. I
seem not to have had trouble with doing this. The biggest
bottlenecks for me lie on the client side. That is, I end up waiting
a long time for clients to compress data and send it to the amanda
server. So I doubt optimization on the server side would make any
difference for me. For me, the advantages of stock kernels are that
I can easily upgrade, and most "extras" on the kernel are modules,
so they're easily accessible if I ever need them.

As for a stripped down system, again Debian comes through for me.
The basic Debian install is about 40 MB and includes all the basic
tools I need. Add amanda server and client packages plus
dependencies and a few extra tools I use like ssh, and I'm up to 50
or 60 MB. At that point, I don't believe much else could be stripped
out without hurting something.

Stefan G. Weichinger said:
>
> Hi, Amanda-Users,
>
> I´m thinking about building a system dedicated to just run Amanda at
> its best.
>
> I want to strip down a linux-system to the basics needed for backup.
> Just the necessary hard- and software, rock-solid and fast.
>
> As the brand new kernel compiles in another window on my desktop I
> think about compiling a kernel that just supports the basic backup
> hardware and leaves stuff like sound or isdn away.
>
> What do you think?
>
> Does it make sense to spend time and thoughts on stripping the
> system
> down?
>
> I know from years of using Amanda that the bottlenecks lie elsewhere
> but I would like to build a very minimal system which I could offer
> to
> my clients as a kind of "Amanda-Box" doing just what it should.
>
> I would like to hear your thoughts on this topic, maybe some of you
> have already done stuff like specific kernel-compilations to satisfy
> Amanda´s needs.
>
> I´m looking forward to your answers.
>
> Best regards,
>
> Stefan.
>
>
>


-- 
Kurt Yoder
Sport & Health network administrator



tar errors always on same disk

2003-07-16 Thread Kurt Yoder
Hello list

Yet another question to bug y'all with. I am consistently getting a
tar error on *one* disk entry from a host when running amverify.
Here is what I see:

Errors found:
WS1tape01 (eurasia.shcorp.com._usr.20030716.1):
amrestore: WARNING: not at start of tape, file numbers will be offset
amrestore:   0: restoring eurasia.shcorp.com._usr.20030716.1
/bin/tar: Skipping to next header
/bin/tar: Error exit delayed from previous errors
64+0 records in
64+0 records out

I do not understand why this particular disk always has this
problem. I back up other disks from this host, and they don't have
any trouble; their dump type is identical to this disk. I don't have
this trouble on any of my other hosts. Is this something dumb I've
overlooked?


-- 
Kurt Yoder
Sport & Health network administrator



Re: sdlt versus DLT library

2003-07-15 Thread Kurt Yoder


Steven J. Backus said:
> "Kurt Yoder" <[EMAIL PROTECTED]> wrote:
>
>> No. See FAQ:
>>
>> http://amanda.sourceforge.net/fom-serve/cache/32.html
>
> How about an amflush?  Say you have more than one tape worth in
the holding disk?

AFAIK it will hit end of tape and ask for another tape. However,
there is no way to flush a single dump image to multiple tapes. So
if you have a 20 GB dump image (even if it's been split up into
pieces due to the chunksize parameter) and a 10 GB tape, there is no
way to put the dump image on that tape.

> So what does the runtapes parameter do?

See "man amanda", look for "runtapes". Tells you the maximum number
of tapes you can write to if you have a tape changer configured.


-- 
Kurt Yoder
Sport & Health network administrator




-- 
Kurt Yoder
Sport & Health network administrator



Re: sdlt versus DLT library

2003-07-15 Thread Kurt Yoder

Steven J. Backus said:
> "Kurt Yoder" <[EMAIL PROTECTED]> wrote:
>
>> No. See FAQ:
>>
>> http://amanda.sourceforge.net/fom-serve/cache/32.html
>
> How about an amflush?  Say you have more than one tape worth in the
> holding disk?

AFAIK it will hit end of tape and ask for another tape. However,
there is no way to flush a single dump image to multiple tapes. So
if you have a 20 GB dump image (even if it's been split up into
pieces due to the chunksize parameter) and a 10 GB tape, there is no
way to put the dump image on that tape.

> So what does the runtapes parameter do?

See "man amanda", look for "runtapes". Tells you the maximum number
of tapes you can write to if you have a tape changer configured.


-- 
Kurt Yoder
Sport & Health network administrator



Re: chg-multi says no tape online

2003-07-15 Thread Kurt Yoder
(cc'ing list)

Paul Bijnens said:
> Kurt Yoder wrote:
>
>> Hello list
>> I recently switched amanda servers, and copied a manual chg-multi
>
> What is a "manual chg-multi"?  I use a "chg-multi" in my config,
and I have used a "chg-manual" in the past.  Can you use chg-multi
for manual purposes too?

Yes. Unfortunately I can't find the documentation that said how to
do this any more. However, one does it by setting run-tapes to some
number and tpchanger to chg-multi. Then in the changerfile one
specifies a single slot pointing to the tape drive device, firstslot
1 and lastslot 1.

So amanda writes everything it can to tape 1. Then if it has more it
tries to write to tape 2..n but is forced to leave it on the holding
disk instead. Then you can manually put in the next tape and flush.

It worked well on this machine, but I reinstalled the machine with a
different hard disk and new configuration (see separate thread on
this list about gzip errors for the reason). Now it's not working
any more.

> How does your chg-multi.conf look like?

multieject 0
gravity 0
needeject 0
ejectdelay 0
statefile /var/backups/changer-status
firstslot 1
lastslot 1
slot 1 /dev/nst0

Looks identical to the previous working config.


-- 
Kurt Yoder
Sport & Health network administrator





Re: sdlt versus DLT library

2003-07-15 Thread Kurt Yoder

Jeremy L. Mordkoff said:
> I'm using a DLT IV tape drive now (one tape a night), but it's not
> big
> enough. I have 70GB partitions and when they get full, I'll have
> problems. If I switch to a DLT tape library (8x40GB), will that
> solve my
> problem? Will Amanda split backup across two tapes? Or should I just
> get
> a SDLT tape drive (160GB)?

No. See FAQ:

http://amanda.sourceforge.net/fom-serve/cache/32.html

-- 
Kurt Yoder
Sport & Health network administrator



Re: amanda + gzip errors on debian?

2003-07-15 Thread Kurt Yoder

Niall O Broin said:



> What's your backup device ? If it's a SCSI tape then I'd say your
> problem is
> most likely SCSI cabling termination. I had this a long time ago and
> it drove
> me nuts. I eventually found that the SCSI chain wasn't terminated
> correctly.
> Just like you, I would only encounter the problems on big backups
> (because it
> was only producing occasional errors, and the bigger the file, the
> more
> likely I was to encounter it. The way to fix the problem is to make
> sure that
> all SCSI cable connections are well made and that termination is
> correct.
> Using good quality SCSI cables is a big help too.
>
> If OTOH you're not using SCSI tape then I'm afraid I'm all out of
> clue.

I had a similar thought when I first had this problem. However, I
was able to duplicate the problem simply by gzipping a big file to
my ATA/IDE holding disk. So I'm certain it's not a scsi problem.

-- 
Kurt Yoder
Sport & Health network administrator



Re: which tape is which ???

2003-07-15 Thread Kurt Yoder

Michael D. Schleif said:



> That's my problem: if I knew which of these tapes is the ``most
> recently-written one'', then I would know which is in the current
> cycle
> ;<
>
> So, how do I determine that?

Ah. Put one in and do "dd if= of=test_header bs=32k".
This will grab the amanda tape header and put it in the file
test_header. In this file you will then see the date of the dump on
this tape.

-- 
Kurt Yoder
Sport & Health network administrator



Re: which tape is which ???

2003-07-15 Thread Kurt Yoder
I believe both of them will be accepted by amanda when it's looking
for "backup.005". So just pick the most recently-written one to use
as the "real" backup.005. Then erase the other one using mt or dd,
and treat it as a blank tape.

Michael D. Schleif said:
> I have been using amanda for several weeks.  Initially, I tested
> various
> configurations; but, now I am supposed to be ``in production'' ;>
>
> Somehow, I find myself with two (2) identically labeled tapes:
> backup.005 ;<
>
> amcheck finds both to be valid.
>
> tapelist shows one (1) entry for backup.005.
>
> How can I find out which of these is really in the current backup
> cycle?


-- 
Kurt Yoder
Sport & Health network administrator



amanda + gzip errors on debian?

2003-07-15 Thread Kurt Yoder
Hello list

I've been having a problem with amanda and gzip on my debian backup
servers for a while now. I do my backups with gzip compression, and
they seem to go fine. However, upon verifying the backups, I notice
gzip errors. I get two different kinds of errors: "crc" errors and
"format violated" errors. The errors don't happen on all dump
images, usually just the bigger ones (which means level 0's, which
means I'm screwed for restores!). I've had them crop up from 300 MB
into the image to 10 GB into it, and anywhere in between. At least
one gzipped image fails on every backup.

I installed a second Debian backup server, and it had the exact same
problem right after installation. I re-did my backup server on a
different hard disk, and still had the problem. I had been using a
security-updated gzip, so I tried the pre-security gzip, but had the
same problem.

I tried manually gzipping and unzipping images on the backup server
without using amanda at all, and had the same problem. "Aha!" you
say, it must not be amanda then. Well... maybe. I tried a fresh
debian install with just the base system on it which includes gzip.
I created a 20 GB tar file, gzipped and gunzipped it, and had no
errors. The only link between all these boxes with gzip problems is
that the Debian amanda-server package was installed.

Anyone else noticed this problem? And fixed it?

-- 
Kurt Yoder
Sport & Health network administrator



chg-multi says no tape online

2003-07-11 Thread Kurt Yoder
Hello list

I recently switched amanda servers, and copied a manual chg-multi
config from a previous amanda server with a functioning
configuration. On the new server amcheck is giving me this message:

amcheck-server: slot /usr/lib/amanda/chg-multi:: no tape online

But the tape device is definitely accessible. "mt status" returns
normal information, and normal, non-chg-multi backups work fine.
/dev/tape is symlinked to /dev/nst0, and chg-multi script is
theoretically referencing /dev/nst0 anyway.

Why is it doing this, and how do I fix it?

Thanks

-- 
Kurt Yoder
Sport & Health network administrator



amverify runs on same tape twice

2003-07-03 Thread Kurt Yoder
Hello folks

I've only got one tape drive with no robot, so if I have more than
one tape, I change it manually. Thus, I've set up a "manual changer"
configuration; part of that is setting "runtapes 2". So far, so
good.

Now if I run amverify, it verifies once (ok), then rewinds and
*re-verifies the same tape*. According to amverify man page, this is
because I've set runtapes to 2. I would like to set runtapes to 2 so
I can manually change tapes, but not have amverify check the same
tape twice. Is this possible?

-- 
Kurt Yoder
Sport & Health network administrator



Re: to compress or not to compress ???

2003-07-03 Thread Kurt Yoder
How do you recover an amanda dump file without amrestore? I had dd'd
one to disk and tried to untar it but got the message "not a tar
file". Once I ran it through amrestore I was able to untar it
though.

George Kelbley said:
> restoring w/o amrestore can be done with dd, gzip, tar, and so on,
> way
> messy compared to amrecover (or amrestore) but its possible.  That's
> one
> of the plus's to amanda.
>
> Kurt Yoder wrote:
>>
>> Assuming you're running Linux, all you need is some form of Linux
>> rescue disk. I've got a bunch of Debian installer cd's lying
>> around
>> and have used them for similar purposes before. Probably most
>> Linux
>> installer cd's can be used like this, and I'm quite certain
>> something like Knoppix would include all the utilities anyone
>> would
>> need. Who knows, might even work to restore tapes made with
>> non-Linux amanda servers.
>>
>> BTW, if restoring without an amanda server, doesn't one also need
>> amrestore? The other day I tried restoring an amanda image, and
>> had
>> to run it through amrestore before I could untar it.
>>
>> Eric Siegerman said:
>> > On Thu, Jul 03, 2003 at 12:17:16PM -0400, Ean Kingston wrote:
>> >> Also, with hardware compression, I know I can restore the tape
>> >> without having
>> >> to worry about finding the right libraries and programs to do
>> the
>> >> restore.
>> >
>> > True.  But one can work around that by backing up /
>> uncompressed,
>> > and making sure it contains a (possibly statically linked) copy
>> > of gzip.  Hmmm, something to add to my to-do list :-(
>>
>> --
>> Kurt Yoder
>> Sport & Health network administrator
>
> --
> George KelbleySystem Support Group
> Computer Science Department   University of New Mexico
> 505-277-6502  Fax: 505-277-6927
>


-- 
Kurt Yoder
Sport & Health network administrator


Re: to compress or not to compress ???

2003-07-03 Thread Kurt Yoder

Michael D. Schleif said:
> Also, what is the best way to turn off compression?
>
> # sudo mt-gnu -f /dev/nst0 datcompression
> Compression on.
> Compression capable.
> Decompression capable.
>
> # sudo mt-gnu -f /dev/nst0 datcompression 0
> Compression off.
> Compression capable.
> Decompression capable.
>
> # sudo mt-gnu -f /dev/nst0 datcompression
> Compression off.
> Compression capable.
> Decompression capable.
>
> Will this persist across power cycles?  Will previously hardware
> compressed tapes turn hardware compression back on?

mt datcompression 0 will work fine for you. Just make sure you run
that command every time you boot. Put it in one of your boot
scripts. I'm using debian, and made a file called "nocompress" which
contains:

#!/bin/sh
#turn off tape drive hardware compression
/bin/mt -f /dev/nst0 datcompression 0

This file resides in /etc/rc.boot and is mode -rwxr-xr-x (755).

-- 
Kurt Yoder
Sport & Health network administrator



Re: to compress or not to compress ???

2003-07-03 Thread Kurt Yoder
Assuming you're running Linux, all you need is some form of Linux
rescue disk. I've got a bunch of Debian installer cd's lying around
and have used them for similar purposes before. Probably most Linux
installer cd's can be used like this, and I'm quite certain
something like Knoppix would include all the utilities anyone would
need. Who knows, might even work to restore tapes made with
non-Linux amanda servers.

BTW, if restoring without an amanda server, doesn't one also need
amrestore? The other day I tried restoring an amanda image, and had
to run it through amrestore before I could untar it.

Eric Siegerman said:
> On Thu, Jul 03, 2003 at 12:17:16PM -0400, Ean Kingston wrote:
>> Also, with hardware compression, I know I can restore the tape
>> without having
>> to worry about finding the right libraries and programs to do the
>> restore.
>
> True.  But one can work around that by backing up / uncompressed,
> and making sure it contains a (possibly statically linked) copy
> of gzip.  Hmmm, something to add to my to-do list :-(


-- 
Kurt Yoder
Sport & Health network administrator



Re: to compress or not to compress ???

2003-07-03 Thread Kurt Yoder

Michael D. Schleif said:
> [1] Should I use hardware compression?
>
> There seem to be several schools of thought here.  I want to know
> how
> Amanda works with hardware compression?  What are the advantages of
> using software compression?  What are the disadvantages of using
> *both*
> hardware and software compression?

I prefer software compression personally:

-Amanda can make a more accurate estimate of how much tape is
needed.  So if you know your tape is 20 GB, and your
software-compressed dump files total 21 GB, you know they won't all
fit. With hardware compression you just have to guess-timate

-Less bandwidth consumed if you do your compression on the client
side (eg, before it comes to the tape server)

-Less disk space used on your holding disk

-If you back up to disks instead of tapes, hardware compression is
not even an option


The only drawback to software compression that I can see is the
greater amount of cpu power consumed. For me, this is not really a
problem, since my backups all happen in the wee hours when no-one is
on my systems anyway.

-- 
Kurt Yoder
Sport & Health network administrator



Re: server will not backup itself ?!?!

2003-07-01 Thread Kurt Yoder

Did you look through the amcheck debug files that you saw in
/tmp/amanda?

Can you manually connect to the services in question? (eg telnet
localhost 10082, etc)?

Your /etc/amandahosts has localhost commented out. If you're
connecting to localhost this could be a problem. Also, my
amandahosts is in /var/backup/.amandahosts, and I'm also running
Debian. Unless
/etc/amandahosts is a symlink to /var/backup/.amandahosts, you might
 try adding your entries there.

On Tuesday, July 1, 2003, at 07:36  PM, Michael D. Schleif wrote:

> Hi!  I installed amanda on a Debian Woody system, and everything 
appears
> to be configured properly.  amcheck -lstw runs without incident.
>
> However, I am victim to what appears to be the most common problem:
>
> selfcheck request timed out.  Host down?
>
> I have scoured the Faq-O-Matic, and I list below the results of
all the suggested fixes.
>
> What do you think?
>
>
> ###
> ###
>
> # sudo -u backup amcheck -lstw DailySet1
> Amanda Tape Server Host Check
> -
> Holding disk /space: 1294188 KB disk space available, that's
plenty Tape backup.003 is writable
> Tape backup.003 label ok
> NOTE: info dir /var/lib/amanda/DailySet1/curinfo: does not exist
NOTE: it will be created on the next run
> Server check took 0.077 seconds
>
> (brought to you by Amanda 2.4.2p2)
>
> ###
> ###
>
> # sudo -u backup amcheck -c DailySet1
>
> Amanda Backup Client Hosts Check
> 
> WARNING: 192.168.123.150: selfcheck request timed out.  Host down?
Client check: 1 host checked in 30.024 seconds, 1 problem found
>
> (brought to you by Amanda 2.4.2p2)
>
> ###
> ###
> # find /tmp/amanda
> /tmp/amanda
> /tmp/amanda/amcheck.20030701093517.debug
> /tmp/amanda/amcheck.20030701093730.debug
> /tmp/amanda/amcheck.20030701093853.debug
> /tmp/amanda/amcheck.20030701094157.debug
> /tmp/amanda/amcheck.20030701094626.debug
> /tmp/amanda/amandad.20030701095200.debug
> /tmp/amanda/amcheck.20030701095919.debug
> /tmp/amanda/amcheck.20030701100359.debug
>
> ###
> ###
>
> # grep amanda /etc/services
> amanda  10080/udp   # amanda backup 
services
> kamanda 10081/tcp   # amanda backup 
services (Kerberos)
> kamanda 10081/udp   # amanda backup 
services (Kerberos)
> amandaidx   10082/tcp   # amanda backup 
services
> amidxtape   10083/tcp   # amanda backup 
services
>
> ###
> ###
>
> # grep amanda /etc/inetd.conf
> amanda dgram udp wait backup /usr/sbin/tcpd
/usr/lib/amanda/amandad amandaidx stream tcp nowait backup
/usr/sbin/tcpd
> /usr/lib/amanda/amindexd
> amidxtape stream tcp nowait backup /usr/sbin/tcpd
> /usr/lib/amanda/amidxtaped
>
> ###
> ###
>
> # kill -HUP 351
>
> # ps aux | grep inetd
> root   351  0.0  0.0  1256  544 ?S01:30   0:00
> /usr/sbin/inetd
>
> ###
> ###
> # su - backup
> [EMAIL PROTECTED]:~$ /usr/lib/amanda/amandad
> [EMAIL PROTECTED]:~$ exit
> logout
>
> ###
> ###
>
> # cat /etc/amandahosts
> # localhost backup
> 192.168.123.150 backup
> # bragi.private.network backup
>
> ###
> ###
> # grep -v '^\([# ]\|$\)' /etc/amanda/DailySet1/disklist
> 192.168.123.150 sda1 comp-root
> 192.168.123.150 sda4 comp-user
>
> ###
> ###
>
> --
> Best Regards,
>
> mds
> mds resource
> 877.596.8237
> -
> Dare to fix things before they break . . .
> -
> Our capacity for understanding is inversely proportional to how
much we think we know.  The more I know, the more I know I don't
know . . . --
>




-- 
Kurt Yoder
Sport & Health network administrator



Re: I don't understand this

2001-12-14 Thread Kurt Yoder

Adolfo Manuel Pachón Rodríguez wrote:

> Hi all:
> 
> I have an HP24DAT SCSI over Linux RH 7.1. I want to backup the weekdays 
> only, using 5+1 tapes.
> 
> I've this in the amanda.conf:
> 
> dumpcycle 7
> runspercycle 5
> tapecycle 6
> 
> The tapes are labeled:
> 
> Daily-000 (monday)
> Daily-001 (tuesday)
> Daily-002 (wednesday)
> Daily-003 (thursday)
> Daily-004 (friday)
> Daily-005 (extra)
> 
> What I want is this:
> 
> For each day, use the Daily-00X tape.
> 
> Today, thursday, I use the Daily-003 tape. With amdump Daily, I do the 
> backup. But the report says this:
> 
> These dumps were to tape Daily-003.
> The next tape Amanda expects to use is: Daily-006.
> 
> This is my question. Why Daily-006? Why not the next tape is Daily-004?
> 
> Thanks
> 

I don't think amanda works as you're expecting. You can only give amanda 
a sequence of tapes, but not say "I want x tape on x day and y tape on y 
day". Amanda will simply go through each tape in its list and use them 
as needed. So your 000 tape will end up being used any day of the week.

Of course, if you give amanda 10 tapes and do 5 backups in a week, 
you'll always be using 0 and 6 on a Monday, 1 and 7 on a Tuesday.

Also, in order to use them in sequence and not skip from 3 to 6, you 
have to label them all in order. So if you labeled 0 through 5, let 
amanda use 0 and 1, then labeled 6, amanda will expect the sequence to 
be 0 1 6 2 3 4 5.

I'm not sure how to change which tape amanda expects next, short of 
removing the tapes using amrmtape and relabeling them. Edit the tapelist 
file? Anyone else on the list have any answers?




Re: Is this correct?

2001-12-14 Thread Kurt Yoder

Adolfo Manuel Pachón Rodríguez wrote:

> Hi all:
> 
> I have 5 tapes for one HP24DAT SCSI unit. I want to use one tape per day, 
> not including saturday/monday.
> 
> Is this the correct configuration?
> 
> dumpcycle 7 days
> runspercycle 5 days
> tapecycle 5 tapes  
> 
> thanks
> 

You probably want at least one more tape in "tapecycle", so at least 6. 
Everyone is always saying you want extras in case there's a bad run.

(Not that I understand this; after all, if there's a bad run, why not 
just increment "tapecycle" then?)




exlude file not working?

2001-10-30 Thread Kurt Yoder

Hello list

I can't seem to get amanda to use the file exclude list I have given it.
In /tmp/amanda/, I type

root@gondwana:/tmp/amanda# cat amandad.20011026140001.debug | grep
exclude
GNUTAR /var 0 OPTIONS
|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
GNUTAR /usr 0 OPTIONS
|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
GNUTAR / 0 OPTIONS
|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
root@gondwana:/tmp/amanda# cat /usr/local/lib/amanda/exclude.gtar
/dev/*
/usr/home/apache/debian

However, amanda is still backing up /usr/home/apache/debian. I'm running
amanda 2.4.2p2 client on Debian Linux 2.2.19pre17. Any ideas?

Thanks

-Kurt



Re: NT backups

2001-10-25 Thread Kurt Yoder

I posted my version of the setup instructions to this list last week,
since the ones included with the client are a bit difficult to read (for
all I know, so are mine :) ). For all who are interested, I posted them
to the project's "help" forum.

"Rivera, Edwin" wrote:
> 
> http://sourceforge.net/projects/amanda-win32/
> 
> it's a bit tricky to get working...
> 
> -edwin
> 
> -Original Message-
> From: Stephen Carville [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 3:17 PM
> To: Amanda Users
> Subject: NT backups
> 
> I recently read a message here about a native NT client (doesn't
> require samba) for backing up NT boxes using Amanda but I cannot fond
> the message in Google or the archives.  Can someone point me to a web
> or ftp site?



Re: Win32 client setup

2001-10-17 Thread Kurt Yoder

Jon LaBadie wrote:
> I did not feel the installation instructions were too clear.
> Maybe I have not found the correct ones.  Pointers?

This is very true; I had to fiddle a bit to make it work. Here's what I
did:

-download the "amanda-clients-bin" latest zip file and unzip it
-make a folder "usr" in one of your drives
-move the amanda folder into it; path to binaries should be
\usr\amanda\bin and so forth
-copy pw32.8.dll from the "bin" folder to "libexec" and "sbin" folders
-copy \usr\amanda\share\amanda-win32-clients\.amandahosts to
\usr\amanda\etc\amanda\
-add your amanda master to the \usr\amanda\etc\amanda\.amandahosts
-start your amanda test: run \usr\amanda\libexec\rc.amandad.bat (an
empty dos window should pop up)
-add entries to the amanda master's disklist; use the form "
/mnt_ ", one for each disk on each nt host; my
disklist entry for my nt host looks like "gandalf /mnt_c user-tar", etc
-run amcheck on the master, make sure you see the server connecting on
the nt host; you should see its name show up in the window on the nt
machine that rc.amandad.bat opened
-if the test was successful, close rc.amandad.bat and install
\usr\amanda\libexec\amandad.exe as a service named "amandad" (use
srvany.exe from the nt resource kit for this); service should be a
system account and start up automatically
-suggested registry entries for the amandad service are in
\usr\amanda\share\amanda\amandad.reg; double click on this file to
install its keys
-make sure the drive letter and path in the registry's
hklm/system/ccs/services/amandad/parameters key matches where
amandad.exe is actually installed
-start up the amandad service
 
> Two questions, does the W32 client anticipate the cygwin package
> is installed on the M$ box?  Though I did not see it stated, I
> got that impression.

Cygwin is not necessary.

> Second, I came across a page describing environment variables
> that need be set.  Something about the PW32 environment (Posix
> Win 32??).  Are these set on the unix amanda server or on the
> client when started from the service routines?

I didn't set any environment variables on the NT machine.



Re: Win32 client setup

2001-10-17 Thread Kurt Yoder

Wayne Richards wrote:
> 
> I've got the Win32 client setup and running in a console window on an NT box
> running NT4.0 SP6a.  It works well.  I've also setup amanda as a service
> according to the instructions.  However, the service does not start.  It hangs
> for a while and then gives an error:
> 
> Error 2186:  The service is not responding to the control function.
> 
> Now, I went to the MS support site and found the 2186 error.  The solution
> given was to upgrade to the most current SP.  So I checked my machine and it
> had SP6a, but there was a hotfix that wasn't loaded (Q246009), so I loaded it
> and restarted the system.
> 
> The service is to run under the user 'amanda' as a local user with
> administrative rights including the right to 'login as a service'.  It's setup
> as a 'Manual' service so it does not try to start at boot, even though that's
> what I would prefer.  The server is a Sun E3000 and has no problem backing up
> the NT box when the client is running in the foreground in a console window or
> command window.
> 
> Has anyone had any luck with the Win32 client as a service?
> 
> I found the client at:
> http://sourceforge.net/projects/amanda-win32/

Yes, I've been using it for several weeks. It seems it's a bit buggy
though. I've had it refuse to work on two machines until I rebooted.
Then it works for awhile, but eventually does the same thing a few days
later, and I need to reboot again. I've also had one of the machines
refuse to work (Dr Watson errors) until I deinstalled Python and
WxPython, which are necessary for the client's amrestore; weird. 

I have my service running using the "system account", with "interact
with the desktop" left unchecked. I would try this first. I also have my
service starting up automatically at bootup. Also, don't forget to edit
the registry settings of the service to point to the correct path of the
amanda installation.

-Kurt



FOLLOW-UP: getting message "lev 0 failed [data timeout]"

2001-10-09 Thread Kurt Yoder

Kurt Yoder wrote:
> 
> Hello
> 
> (I tried sending this message to the list two times so far, but didn't
> see it get posted, so I'm trying again)

My apologies for reposting this message; I finally received the two
original posts from the mailing list today (10/3/01), two weeks after I
originally posted them. I Don't know if it's something wrong with our
mail setup or something wrong with the mailing list software.

> I'm getting this error whenever I try to run amdump (2.4.2p1) on freebsd
> 4.2:
> 
> /-- galadriel. /usr lev 0 FAILED [data timeout]
> sendbackup: start [galadriel.shcorp.com:/usr level 0]
> sendbackup: info BACKUP=/usr/local/bin/gtar
> sendbackup: info RECOVER_CMD=/usr/local/bin/gtar -f... -
> sendbackup: info end
> ? sendbackup: index tee cannot write [Broken pipe]
> ? index returned 1
> sendbackup: error [/usr/local/bin/gtar got signal 13]
> \



I got this working by doubling the "etimeout" setting in amanda.conf.



Re: Windows and linux

2001-09-28 Thread Kurt Yoder

webmaster wrote:
> 
> I've been told that Amanada supports both windows and linux clients, but I have a 
>few questions about this.
> 
> 1. will it back up both clients in the same tape set?
> 2. Does it support backing up the data over multiple tapes?
> 3. Where do I find the clients for windoze 95, nt
> 4. Does it support windows 2000 as a client?
> 
> Any suggestions or helpful hints would be appreciated.

You can do it via samba (which I haven't personally done). There's also
an amanda win32 client at http://sourceforge.net/projects/amanda-win32/
which I'm using to back up Windows NT servers.



getting message "lev 0 failed [data timeout]"

2001-09-26 Thread Kurt Yoder

Hello

(I tried sending this message to the list two times so far, but didn't
see it get posted, so I'm trying again)

I'm getting this error whenever I try to run amdump (2.4.2p1) on freebsd
4.2:

/-- galadriel. /usr lev 0 FAILED [data timeout]
sendbackup: start [galadriel.shcorp.com:/usr level 0]
sendbackup: info BACKUP=/usr/local/bin/gtar
sendbackup: info RECOVER_CMD=/usr/local/bin/gtar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Broken pipe]
? index returned 1
sendbackup: error [/usr/local/bin/gtar got signal 13]
\

All the other partitions on galadriel and the other hosts I'm backing up
are OK, so the amanda client install seems alright. I've also tried
installing the latest version of gnutar; 1.13.22 and increasing the
dtimeout setting in amanda.conf from 1800 to 3600. Is there anything
else I can try (such as upping one of the other timeout settings)?

here's /tmp/amanda/sendbackup.debug; doesn't seem to shed any light on
it (although I wonder why it says "1970"):

sendbackup: debug 1 pid 10243 ruid 1000 euid 1000 start time Wed Sep 19
02:13:31 2001
/usr/local/libexec/amanda/sendbackup: got input request: GNUTAR /usr 0
1970:1:1:0:0:0 OPTIONS
|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
  parsed request as: program `GNUTAR' disk `/usr' lev 0 since
1970:1:1:0:0:0 opt
`|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;'
  waiting for connect on 3189, then 3190, then 3191
  got all connections
sendbackup: doing level 0 dump as listed-incremental:
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
sendbackup: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning "/usr/local/libexec/amanda/runtar" in pipeline
sendbackup: argument list: "gtar" "--create" "--directory" "/usr"
"--listed-incremental"
"/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new"
"--sparse" "--one-file-system" "--ignore-failed-read" "--totals"
"--file" "-" "--exclude-from" "/usr/local/lib/amanda/exclude.gtar" "."
sendbackup-gnutar: pid 10245: /usr/local/libexec/amanda/runtar --create
--directory /usr --listed-incremental
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
--sparse --one-file-system --ignore-failed-read --totals --file
-
/usr/local/lib/amanda/exclude.gtar--exclude-from/usr/local/lib/amanda/exclude.gtar
sendbackup: started index creator: "/usr/local/bin/gtar -tf -
2>/dev/null | sed
-e 's/^\.//'"
index tee cannot write [Broken pipe]
index tee cannot write [Broken pipe]
sendbackup: pid 10244 finish time Wed Sep 19 02:28:02 2001
error [/usr/local/bin/gtar got signal 13]
error [/usr/local/bin/gtar got signal 13]
sendbackup: pid 10243 finish time Wed Sep 19 02:28:02 2001



getting message "lev 0 failed [data timeout]"

2001-09-24 Thread Kurt Yoder

Hello

(I tried sending this message to the list last week, but didn't see it
get posted, so I'm trying again)

I'm getting this error whenever I try to run amdump (2.4.2p1) on freebsd
4.2:

/-- galadriel. /usr lev 0 FAILED [data timeout]
sendbackup: start [galadriel.shcorp.com:/usr level 0]
sendbackup: info BACKUP=/usr/local/bin/gtar
sendbackup: info RECOVER_CMD=/usr/local/bin/gtar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Broken pipe]
? index returned 1
sendbackup: error [/usr/local/bin/gtar got signal 13]
\

All the other partitions on galadriel and the other hosts I'm backing up
are OK, so the amanda client install seems alright. I've also tried
installing the latest version of gnutar; 1.13.22 and increasing the
dtimeout setting in amanda.conf from 1800 to 3600. Is there anything
else I can try (such as upping one of the other timeout settings)?

here's /tmp/amanda/sendbackup.debug; doesn't seem to shed any light on
it (although I wonder why it says "1970"):

sendbackup: debug 1 pid 10243 ruid 1000 euid 1000 start time Wed Sep 19
02:13:31 2001
/usr/local/libexec/amanda/sendbackup: got input request: GNUTAR /usr 0
1970:1:1:0:0:0 OPTIONS
|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
  parsed request as: program `GNUTAR' disk `/usr' lev 0 since
1970:1:1:0:0:0 opt
`|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;'
  waiting for connect on 3189, then 3190, then 3191
  got all connections
sendbackup: doing level 0 dump as listed-incremental:
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
sendbackup: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning "/usr/local/libexec/amanda/runtar" in pipeline
sendbackup: argument list: "gtar" "--create" "--directory" "/usr"
"--listed-incremental"
"/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new"
"--sparse" "--one-file-system" "--ignore-failed-read" "--totals"
"--file" "-" "--exclude-from" "/usr/local/lib/amanda/exclude.gtar" "."
sendbackup-gnutar: pid 10245: /usr/local/libexec/amanda/runtar --create
--directory /usr --listed-incremental
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
--sparse --one-file-system --ignore-failed-read --totals --file
-
/usr/local/lib/amanda/exclude.gtar--exclude-from/usr/local/lib/amanda/exclude.gtar
sendbackup: started index creator: "/usr/local/bin/gtar -tf -
2>/dev/null | sed
-e 's/^\.//'"
index tee cannot write [Broken pipe]
index tee cannot write [Broken pipe]
sendbackup: pid 10244 finish time Wed Sep 19 02:28:02 2001
error [/usr/local/bin/gtar got signal 13]
error [/usr/local/bin/gtar got signal 13]
sendbackup: pid 10243 finish time Wed Sep 19 02:28:02 2001



getting message "lev 0 failed [data timeout]"

2001-09-21 Thread Kurt Yoder

Hello

I'm getting this error whenever I try to run amdump (2.4.2p1) on freebsd
4.2:

/-- galadriel. /usr lev 0 FAILED [data timeout]
sendbackup: start [galadriel.shcorp.com:/usr level 0]
sendbackup: info BACKUP=/usr/local/bin/gtar
sendbackup: info RECOVER_CMD=/usr/local/bin/gtar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Broken pipe]
? index returned 1
sendbackup: error [/usr/local/bin/gtar got signal 13]
\

All the other partitions on galadriel and the other hosts I'm backing up
are OK, so the amanda client install seems alright. I've also tried
installing the latest version of gnutar; 1.13.22 and increasing the
dtimeout setting in amanda.conf from 1800 to 3600. Is there anything
else I can try (such as upping one of the other timeout settings)?

here's /tmp/amanda/sendbackup.debug; doesn't seem to shed any light on
it (although I wonder why it says "1970"):

sendbackup: debug 1 pid 10243 ruid 1000 euid 1000 start time Wed Sep 19
02:13:31 2001
/usr/local/libexec/amanda/sendbackup: got input request: GNUTAR /usr 0
1970:1:1:0:0:0 OPTIONS
|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
  parsed request as: program `GNUTAR' disk `/usr' lev 0 since
1970:1:1:0:0:0 opt
`|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;'
  waiting for connect on 3189, then 3190, then 3191
  got all connections
sendbackup: doing level 0 dump as listed-incremental:
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
sendbackup: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning "/usr/local/libexec/amanda/runtar" in pipeline
sendbackup: argument list: "gtar" "--create" "--directory" "/usr"
"--listed-incremental"
"/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new"
"--sparse" "--one-file-system" "--ignore-failed-read" "--totals"
"--file" "-" "--exclude-from" "/usr/local/lib/amanda/exclude.gtar" "."
sendbackup-gnutar: pid 10245: /usr/local/libexec/amanda/runtar --create
--directory /usr --listed-incremental
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
--sparse --one-file-system --ignore-failed-read --totals --file
-
/usr/local/lib/amanda/exclude.gtar--exclude-from/usr/local/lib/amanda/exclude.gtar
sendbackup: started index creator: "/usr/local/bin/gtar -tf -
2>/dev/null | sed
-e 's/^\.//'"
index tee cannot write [Broken pipe]
index tee cannot write [Broken pipe]
sendbackup: pid 10244 finish time Wed Sep 19 02:28:02 2001
error [/usr/local/bin/gtar got signal 13]
error [/usr/local/bin/gtar got signal 13]
sendbackup: pid 10243 finish time Wed Sep 19 02:28:02 2001



Re: recovering index

2001-09-18 Thread Kurt Yoder

Joshua Baker-LePain wrote:
> 
> On Thu, 6 Sep 2001 at 10:40am, [EMAIL PROTECTED] wrote
> 
> > i have an old tape with backup on itunfortunately , i don't have the
> > index file for this tape
> >
> > is someone knows how to extract a specified file from this tape?
> > is it possible to recover the index file for this tape ?
> 
> Use amrestore or dd to grab the image off the tape, and then pipe it
> through your restore program (e.g. for GNUtar, 'tar t') to get the table
> of contents.

Will this work with indexed backups? I tried restoring an indexed
backup, but got a bunch of strange directories with one file in each of
them (directory names like "00016345000354100"). Or maybe one only
needs the toc file?



Re: Disk Offline

2001-09-17 Thread Kurt Yoder

What does /tmp/amanda/* say?

Patrick LIN wrote:
> 
> FAILURE AND STRANGE DUMP SUMMARY:
>bigeasy.in vg00_lvol5 lev 0 FAILED [disk vg00_lvol5 offline on
> bigeasy.in?]
> 
> what that mean please
> amcheck without errors but the report giveme that.
> 
> the client is a HP
> the serveur is a sun Solaris
> and the version of amanda is 2.4.2p2



Re: Tapelist

2001-09-14 Thread Kurt Yoder

> clem wrote:
> 
> Hi,
> 
> I would like to know the perfect settings for my Amanda config as I
> seem to be having problems with tape rotations.
> 
> I have 21 tapes for a 3 weeks worth of backup before I start to rotate
> them. Furthermore I have 3 extra tapes. What figures should I be
> putting in my Amanda config file so that I preserve the 3 weeks backup
> before I start to overwrite it.

dumpcycle 21 days
runspercycle 21
tapecycle 24 tapes



amanda client broken pipe

2001-09-06 Thread Kurt Yoder

Hello

I'm getting a weird error on one of my amanda clients (2.4.1p1 on
freebsd 4.2 using gnu tar v 1.13) that I'm having trouble understanding:

FAILED AND STRANGE DUMP DETAILS:

/-- galadriel. /usr lev 0 FAILED [data timeout]
sendbackup: start [galadriel.shcorp.com:/usr level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Broken pipe]
sendbackup: error [/usr/bin/tar got signal 13, index returned 1]
\

/tmp/amanda/sendbackup.debug says:

sendbackup: debug 1 pid 25453 ruid 1000 euid 1000 start time Thu Sep  6
02:08:29 2001
/usr/local/libexec/amanda/sendbackup: got input request: GNUTAR /usr 0
1970:1:1:0:0:0 OPTIONS
|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
  parsed request as: program `GNUTAR' disk `/usr' lev 0 since
1970:1:1:0:0:0 opt
`|;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;'
sendbackup: exclude list file "/usr/local/lib/amanda/exclude.gtar" does
not exist, ignoring
  waiting for connect on 2473, then 2474, then 2475
  got all connections
sendbackup: doing level 0 dump as listed-incremental:
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
sendbackup: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning "/usr/local/libexec/amanda/runtar" in pipeline
sendbackup: argument list: "gtar" "--create" "--directory" "/usr"
"--listed-incremental"
"/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new"
"--sparse" "--one-file-system" "--ignore-failed-read" "--totals"
"--file" "-" "."
sendbackup-gnutar: pid 25456: /usr/local/libexec/amanda/runtar --create
--directory /usr --listed-incremental
/usr/local/var/amanda/gnutar-lists/galadriel.shcorp.com_usr_0.new
--sparse --one-file-system --ignore-failed-read --totals --file
- .
sendbackup: started index creator: "/usr/bin/tar -tf - 2>/dev/null | sed
-e 's/^\.//'"
index tee cannot write [Broken pipe]
error [/usr/bin/tar got signal 13, index returned 1]

any ideas on how to fix this? TIA!



trouble on freebsd

2001-08-29 Thread Kurt Yoder

Hello

I am trying to get the Amanda client working on a FreeBSD4 box. I
installed 2.4.2p1 (and also p2 in trying to resolve this). I run the
dump, and get two different errors on two boxes:

FAILED AND STRANGE DUMP DETAILS:

/-- aragorn.sh /dev/da0s1a lev 0 FAILED [/usr/bin/tar returned 1]
sendbackup: start [aragorn.shcorp.com:/dev/da0s1a level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
? gtar: ./dev/rsa0.ctl: minor number too large; not dumped
| Total bytes written: 186224640
sendbackup: error [/usr/bin/tar returned 1]
\

/-- galadriel. /dev/ad0s1g lev 0 FAILED [data timeout]
sendbackup: start [galadriel.shcorp.com:/dev/ad0s1g level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Broken pipe]
sendbackup: error [/usr/bin/tar got signal 13, index returned 1]
\

I've tried various gtar versions, including 1.11.2, 1.13, and 1.13.19,
but they all give me errors. Does anyone know how to fix this?



Re: level 0 dumps getting overwritten?

2001-08-29 Thread Kurt Yoder

Darin Dugan wrote:
> 
> At 04:01 PM 8/28/2001, Kurt Yoder wrote:
> >Hello
> >My level 0 dumps seem to be getting overwritten. I run amadmin and see
> >only level 1 dumps:
> >[...]
> >Am I setting up my configuration file correctly? I've got:
> >
> >dumpcycle 7 days
> >runspercycle 6
> >tapecycle 2 tapes
> 
> So you're telling Amanda to make sure she has a full (level 0) backup of
> everything at least every 7 days, spread into 6 runs. But you're only
> giving her 2 tapes! *Buy more tapes!* Really.
> 
> >I've got a third tape in my tapelist so I can flush dumps from my
> >holding disk. I'm trying to do 6 backups every 7 days (the 7th day has a
> >weekly backup set that isn't part of this configuration) using two tapes
> >(alternate between them).
> 
> If you absolutely have to stick with two tapes, you pretty much need to do
> full dumps every run to be safe. (Take for instance the case where tape1
> has level0's, tape2 has level1's, you go to do level0's on tape1 again and
> there's an error and the tape is fubar'd. You've just lost all hope of a
> restore.) Use 'dumpcycle 0' in the dumptype to force level 0's.
> 
> >I must be setting up my "numbers" wrong, or?
> 
> Or you need more tapes!

Thanks for the info. I am probably still a bit foggy on the concepts
behind "dumpcycle", "runspercycle", and "tapecycle". 

Questions:

In my case, I _must_ use at least 6 tapes in order for amanda not to
overwrite any of its level 0 backups? 
If I wanted to use only 2 tapes, I would need to set "runspercycle" to
2? 
"tapecycle" must always be >= "runspercycle"? 
Are there any advantages to making "tapecycle" > "runspercycle"?
If I have "tapecycle" at 6, and define 7 tapes in the tapelist, Amanda
cycles through all 7 tapes, with a level 0 at a minimum of every 6 runs
(every 7 days, in my case)?



level 0 dumps getting overwritten?

2001-08-28 Thread Kurt Yoder

Hello

My level 0 dumps seem to be getting overwritten. I run amadmin and see
only level 1 dumps: 

Dunedin# amadmin DailySet1 find dunedin
Scanning /usr/local/amanda/holdingdisk...
 
date   host   disklv tape or file file status
2001-08-25 dunedin.shcorp.com /dev/da0s1f  1 DS1tape01d  2 OK
2001-08-26 dunedin.shcorp.com /dev/da0s1f  1 DS1tape03   1 OK
2001-08-27 dunedin.shcorp.com /dev/da0s1f  1 DS1tape03   3 OK
2001-08-28 dunedin.shcorp.com /dev/da0s1f  1 DS1tape02   2 OK

Am I setting up my configuration file correctly? I've got:

dumpcycle 7 days
runspercycle 6
tapecycle 2 tapes

I've got a third tape in my tapelist so I can flush dumps from my
holding disk. I'm trying to do 6 backups every 7 days (the 7th day has a
weekly backup set that isn't part of this configuration) using two tapes
(alternate between them).

I must be setting up my "numbers" wrong, or?

Thanks!

-Kurt



  1   2   >