Re: Tape rotation problem?

2002-05-02 Thread Frank Smith

--On Thursday, May 02, 2002 09:41:03 -0500 Michael Davis <[EMAIL PROTECTED]> wrote:

> Thanks for the help that fixed the problem. Based on your reply though it
> seems I had my cycles incorrect. I changed them to your recommendation,
> however, what I am trying to achieve is a 1 week cycle where there is a full
> backup on Sundays and incremental throughout the week. I thought the Amanda
> schedule did this by default when you setup the cycles correctly(which I now
> have done) Am I wrong?

Amanda's normal way of doing things is to spread out the fulls across
the dumpcycle so that it uses about the same amount of tape each day.
This also helps level out the time each days backup takes and lets you
backup more since it doesn't have to fit it all in one run.
  Having said that, when you first configure Amanda it knows that
everything in your disklist needs a full, so your first run will be
large and some disks may not make it to tape the first day, but then
Amanda will start doing some fulls somewhat ahead of the dumpcycle
schedule so they will eventually end up scattered throughout the cycle.
This is probably the hardest part about switching to Amanda if you are
used to doing weekend fulls and weekday incrementals.
   If you really, really want to force it to what you planned, then
you need two Amanda configs, one that uses a dumptype of noinc that
you only run on Sunday and one that uses nofull that runs weekdays.
Check the archives since there are other details involved.  This
question comes up fairly often, but since I don't use Amanda that way
I don't remember the details.

> Also, I saw no mention of the levels for the dumps in the man page for
> Amanda. Where can I find more information about these levels?

The levels are just what dump (and gnu tar) use. Level 0 is a full,
level 1 is the files changed since the last level 0, level 2 is files
changed since the last level 1, etc., up to 9 or so.  The more levels
you use, the more tapes you need to read to do a restore.  Amanda has
several options relating to levels in its man page, search for full,
incr, and bump to get started.

Good luck,
Frank

> Thanks,
> Michael Davis  <[EMAIL PROTECTED]>
> Chief Technical Officerhttp://www.urbancom.net
> Urban Communications, Inc.
> Phone: 708-687-2090  Cell: 708-243-2850
> "After three days without programming, life becomes meaningless." - The Tao
> of Programming
> - Original Message -
> From: "Frank Smith" <[EMAIL PROTECTED]>
> To: "Michael Davis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, May 02, 2002 9:29 AM
> Subject: Re: Tape rotation problem?
>
>
>>
>>
>> --On Thursday, May 02, 2002 07:29:30 -0500 Michael Davis
> <[EMAIL PROTECTED]> wrote:
>>
>> > I have amanda cofigured to use the tapeio code. I am running
> amanda-2.4.3b3
>> > on all servers and clients. Attached is my amanda.conf and my
> changer.conf.
>> > Here is what amcheck reports:
>> >
>> > Amanda Tape Server Host Check
>> > -
>> > Holding disk /backups: 210982006 KB disk space available, using
> 210982006 KB
>> > amcheck-server: slot 7: date 20020422 label DailySet107 (active tape)
>> > amcheck-server: slot 1: date 20020502 label DailySet101 (active tape)
>> > amcheck-server: slot 2: date 20020422 label DailySet102 (active tape)
>> > amcheck-server: slot 3: date 20020422 label DailySet103 (active tape)
>> > amcheck-server: slot 4: date 20020426 label DailySet104 (active tape)
>> > amcheck-server: slot 5: date 20020427 label DailySet105 (active tape)
>> > amcheck-server: slot 6: date 20020430 label DailySet106 (active tape)
>> > ERROR: new tape not found in rack
>> >(expecting a new tape)
>> > NOTE: skipping tape-writable test
>> > Server check took 0.582 seconds
>> >
>> > Amanda Backup Client Hosts Check
>> > 
>> > Client check: 4 hosts checked in 0.103 seconds, 0 problems found
>> >
>> > (brought to you by Amanda 2.4.3b3)
>> >
>> > How do I get amanda to automattically resuse the tapes?
>>
>> Change your config and/or get more tapes.  In your amanda.conf you have:
>>
>> dumpcycle 4 weeks   # the number of days in the normal dump cycle
>> runspercycle 20 # the number of amdump runs in dumpcycle days
>> # (4 weeks * 5 amdump runs per week -- just
> weekdays)
>> tapecycle 25 tapes  # the number of tapes in rotation
>>
>> You are saying you only need one level 0 every 4 weeks (dumpcycle) and
>> dur

Re: Tape rotation problem?

2002-05-02 Thread Jon LaBadie

On Thu, May 02, 2002 at 09:41:03AM -0500, Michael Davis wrote:
> however, what I am trying to achieve is a 1 week cycle where there is a full
> backup on Sundays and incremental throughout the week.

Amanda's standard way of operating is to spread the full backups of all
your disklist entries throughout the dumpcycle.  It does not schedule
"full backups" for Sunday ...  After you have run amanda for a while,
each run of amdump will contain a mixture of levels.

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



Re: Tape rotation problem?

2002-05-02 Thread Joshua Baker-LePain

On Thu, 2 May 2002 at 9:41am, Michael Davis wrote

> Thanks for the help that fixed the problem. Based on your reply though it
> seems I had my cycles incorrect. I changed them to your recommendation,
> however, what I am trying to achieve is a 1 week cycle where there is a full
> backup on Sundays and incremental throughout the week. I thought the Amanda
> schedule did this by default when you setup the cycles correctly(which I now
> have done) Am I wrong?

Yes (but it's a common mistake).  The 'dumpcycle' parameter tells amanda 
the longest amount of time you want between 2 level 0 (full) backups of 
any particular disklist entry.  'runspercycle' tells amanda how many times 
per 'dumpcycle' you're going to run amdump.  Amanda uses these parameters 
to schedule full and incremental backups of every disklist entry *with the 
goal of equalizing tape usage each night*.  To achieve this, amanda 
spreads the level 0s out over the length of the dumpcycle.  

> Also, I saw no mention of the levels for the dumps in the man page for
> Amanda. Where can I find more information about these levels?

The levels are described in the man pages of the backup tools (tar or 
dump), since those are what are actually doing the backups.

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




Re: Tape rotation problem?

2002-05-02 Thread Michael Davis

Thanks for the help that fixed the problem. Based on your reply though it
seems I had my cycles incorrect. I changed them to your recommendation,
however, what I am trying to achieve is a 1 week cycle where there is a full
backup on Sundays and incremental throughout the week. I thought the Amanda
schedule did this by default when you setup the cycles correctly(which I now
have done) Am I wrong?

Also, I saw no mention of the levels for the dumps in the man page for
Amanda. Where can I find more information about these levels?

Thanks,
Michael Davis  <[EMAIL PROTECTED]>
Chief Technical Officerhttp://www.urbancom.net
Urban Communications, Inc.
Phone: 708-687-2090  Cell: 708-243-2850
"After three days without programming, life becomes meaningless." - The Tao
of Programming
- Original Message -
From: "Frank Smith" <[EMAIL PROTECTED]>
To: "Michael Davis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 9:29 AM
Subject: Re: Tape rotation problem?


>
>
> --On Thursday, May 02, 2002 07:29:30 -0500 Michael Davis
<[EMAIL PROTECTED]> wrote:
>
> > I have amanda cofigured to use the tapeio code. I am running
amanda-2.4.3b3
> > on all servers and clients. Attached is my amanda.conf and my
changer.conf.
> > Here is what amcheck reports:
> >
> > Amanda Tape Server Host Check
> > -
> > Holding disk /backups: 210982006 KB disk space available, using
210982006 KB
> > amcheck-server: slot 7: date 20020422 label DailySet107 (active tape)
> > amcheck-server: slot 1: date 20020502 label DailySet101 (active tape)
> > amcheck-server: slot 2: date 20020422 label DailySet102 (active tape)
> > amcheck-server: slot 3: date 20020422 label DailySet103 (active tape)
> > amcheck-server: slot 4: date 20020426 label DailySet104 (active tape)
> > amcheck-server: slot 5: date 20020427 label DailySet105 (active tape)
> > amcheck-server: slot 6: date 20020430 label DailySet106 (active tape)
> > ERROR: new tape not found in rack
> >(expecting a new tape)
> > NOTE: skipping tape-writable test
> > Server check took 0.582 seconds
> >
> > Amanda Backup Client Hosts Check
> > 
> > Client check: 4 hosts checked in 0.103 seconds, 0 problems found
> >
> > (brought to you by Amanda 2.4.3b3)
> >
> > How do I get amanda to automattically resuse the tapes?
>
> Change your config and/or get more tapes.  In your amanda.conf you have:
>
> dumpcycle 4 weeks   # the number of days in the normal dump cycle
> runspercycle 20 # the number of amdump runs in dumpcycle days
> # (4 weeks * 5 amdump runs per week -- just
weekdays)
> tapecycle 25 tapes  # the number of tapes in rotation
>
> You are saying you only need one level 0 every 4 weeks (dumpcycle) and
> during that time Amanda runs 20 times (runspercycle) using a set of
> 25 tapes (tapecycle).  Since your changer is defined with 7 slots and
> Amanda has now used all those tapes, it is looking for the 8th tape
> which doesn't exist in the changer.  It will later want tapes 9 - 25
> before it will overwrite tape 1.
>If you really have 25 tapes, then you should put tapes 8 - 15 into
> your changer in place of tapes 1 - 7.
>If you really have only seven tapes then I would suggest changing
> the dumpcyle to 1 week, runspercycle to 5, and tapecycle to 7.  If
> a daily run doesn't fit on one tape, then you would need more tapes.
> Actually, you need more tapes anyway so you would have more than one
> level 0 of a disk on tape in case of a read error during a restore.
>
> Frank
>
> --
> Frank Smith
[EMAIL PROTECTED]
> Systems Administrator Voice:
512-374-4673
> Hoover's Online Fax:
512-374-4501
>




Re: Tape rotation problem?

2002-05-02 Thread Frank Smith



--On Thursday, May 02, 2002 07:29:30 -0500 Michael Davis <[EMAIL PROTECTED]> wrote:

> I have amanda cofigured to use the tapeio code. I am running amanda-2.4.3b3
> on all servers and clients. Attached is my amanda.conf and my changer.conf.
> Here is what amcheck reports:
>
> Amanda Tape Server Host Check
> -
> Holding disk /backups: 210982006 KB disk space available, using 210982006 KB
> amcheck-server: slot 7: date 20020422 label DailySet107 (active tape)
> amcheck-server: slot 1: date 20020502 label DailySet101 (active tape)
> amcheck-server: slot 2: date 20020422 label DailySet102 (active tape)
> amcheck-server: slot 3: date 20020422 label DailySet103 (active tape)
> amcheck-server: slot 4: date 20020426 label DailySet104 (active tape)
> amcheck-server: slot 5: date 20020427 label DailySet105 (active tape)
> amcheck-server: slot 6: date 20020430 label DailySet106 (active tape)
> ERROR: new tape not found in rack
>(expecting a new tape)
> NOTE: skipping tape-writable test
> Server check took 0.582 seconds
>
> Amanda Backup Client Hosts Check
> 
> Client check: 4 hosts checked in 0.103 seconds, 0 problems found
>
> (brought to you by Amanda 2.4.3b3)
>
> How do I get amanda to automattically resuse the tapes?

Change your config and/or get more tapes.  In your amanda.conf you have:

dumpcycle 4 weeks   # the number of days in the normal dump cycle
runspercycle 20 # the number of amdump runs in dumpcycle days
# (4 weeks * 5 amdump runs per week -- just weekdays)
tapecycle 25 tapes  # the number of tapes in rotation

You are saying you only need one level 0 every 4 weeks (dumpcycle) and
during that time Amanda runs 20 times (runspercycle) using a set of
25 tapes (tapecycle).  Since your changer is defined with 7 slots and
Amanda has now used all those tapes, it is looking for the 8th tape
which doesn't exist in the changer.  It will later want tapes 9 - 25
before it will overwrite tape 1.
   If you really have 25 tapes, then you should put tapes 8 - 15 into
your changer in place of tapes 1 - 7.
   If you really have only seven tapes then I would suggest changing
the dumpcyle to 1 week, runspercycle to 5, and tapecycle to 7.  If
a daily run doesn't fit on one tape, then you would need more tapes.
Actually, you need more tapes anyway so you would have more than one
level 0 of a disk on tape in case of a read error during a restore.

Frank

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



Re: Tape rotation problem?

2002-05-02 Thread Joshua Baker-LePain

On Thu, 2 May 2002 at 7:29am, Michael Davis wrote

> I have amanda cofigured to use the tapeio code. I am running amanda-2.4.3b3
> on all servers and clients. Attached is my amanda.conf and my changer.conf.
> Here is what amcheck reports:
> 
> Amanda Tape Server Host Check
> -
> Holding disk /backups: 210982006 KB disk space available, using 210982006 KB
> amcheck-server: slot 7: date 20020422 label DailySet107 (active tape)
> amcheck-server: slot 1: date 20020502 label DailySet101 (active tape)
> amcheck-server: slot 2: date 20020422 label DailySet102 (active tape)
> amcheck-server: slot 3: date 20020422 label DailySet103 (active tape)
> amcheck-server: slot 4: date 20020426 label DailySet104 (active tape)
> amcheck-server: slot 5: date 20020427 label DailySet105 (active tape)
> amcheck-server: slot 6: date 20020430 label DailySet106 (active tape)
> ERROR: new tape not found in rack
>(expecting a new tape)
> NOTE: skipping tape-writable test
> Server check took 0.582 seconds

*snip*

> How do I get amanda to automattically resuse the tapes?

You have 'tapecycle 25' in your amanda.conf, so amanda isn't going to 
reuse tapes until you label and use 25 "tapes."  Either crank down 
tapecycle or use more "tapes".

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




Tape rotation problem?

2002-05-02 Thread Michael Davis

I have amanda cofigured to use the tapeio code. I am running amanda-2.4.3b3
on all servers and clients. Attached is my amanda.conf and my changer.conf.
Here is what amcheck reports:

Amanda Tape Server Host Check
-
Holding disk /backups: 210982006 KB disk space available, using 210982006 KB
amcheck-server: slot 7: date 20020422 label DailySet107 (active tape)
amcheck-server: slot 1: date 20020502 label DailySet101 (active tape)
amcheck-server: slot 2: date 20020422 label DailySet102 (active tape)
amcheck-server: slot 3: date 20020422 label DailySet103 (active tape)
amcheck-server: slot 4: date 20020426 label DailySet104 (active tape)
amcheck-server: slot 5: date 20020427 label DailySet105 (active tape)
amcheck-server: slot 6: date 20020430 label DailySet106 (active tape)
ERROR: new tape not found in rack
   (expecting a new tape)
NOTE: skipping tape-writable test
Server check took 0.582 seconds

Amanda Backup Client Hosts Check

Client check: 4 hosts checked in 0.103 seconds, 0 problems found

(brought to you by Amanda 2.4.3b3)

How do I get amanda to automattically resuse the tapes?

Thanks,
Michael Davis  <[EMAIL PROTECTED]>
Chief Technical Officerhttp://www.urbancom.net
Urban Communications, Inc.
Phone: 708-687-2090  Cell: 708-243-2850
"After three days without programming, life becomes meaningless." - The Tao
of Programming



changer.conf
Description: Binary data


amanda.conf
Description: Binary data