transition to new tape library

2015-06-16 Thread Chris Hoogendyk
This ought to be a not uncommon situation: I have an existing server running Amanda 3.3.3 (on Ubuntu 
12.04) with a Sony Lib162-A5 tape library. I've added a SAS card and a NEOs T24 LTO6 tape library.


How can I configure Amanda with both libraries so that all new backups go to the T24, but if I did a 
recovery of data it would know to go to a tape on the Sony if necessary? I'd like to keep the 
existing configuration and history rather than starting with a totally clean slate and having to get 
a full set of level 0 backups to bootstrap it.


Then, at some later point, when I have cycled through a complete set of LTOs, I could de-configure 
the Sony and let go of the history related to the AIT tapes.


--
---

Chris Hoogendyk

-
   O__   Systems Administrator
  c/ /'_ --- Biology & Geology Departments
 (*) \(*) -- 347 Morrill Science Center
~~ - University of Massachusetts, Amherst



---

Erdös 4



Re: transition to new tape library

2015-06-16 Thread Debra S Baddorf
I suspect some manual intervention will be required  (unless others think of a 
really clever way).

How about creating a new configuration,  such as DAILY2  for the new tape 
library.  It would gradually build up its history as it fills tapes,
but YOU the intelligent human will have to know to do your restores from  DAILY 
 (or whatever the old config was called) until such time
as the new config has the date that your restore needs to come from.I.E.   
keep a record of the date when the new library goes into
effect,  and watch the dates of what you are restoring.   If earlier than the 
new library,  than restore from OLD-CONFIG-NAME.
If the date is new enough that the new library has done a backup and has the 
restore that you want,  then restore from NEW-CONFIG-NAME.

Deb Baddorf
Fermilab

On Jun 16, 2015, at 1:41 PM, Chris Hoogendyk  wrote:

> This ought to be a not uncommon situation: I have an existing server running 
> Amanda 3.3.3 (on Ubuntu 12.04) with a Sony Lib162-A5 tape library. I've added 
> a SAS card and a NEOs T24 LTO6 tape library.
> 
> How can I configure Amanda with both libraries so that all new backups go to 
> the T24, but if I did a recovery of data it would know to go to a tape on the 
> Sony if necessary? I'd like to keep the existing configuration and history 
> rather than starting with a totally clean slate and having to get a full set 
> of level 0 backups to bootstrap it.
> 
> Then, at some later point, when I have cycled through a complete set of LTOs, 
> I could de-configure the Sony and let go of the history related to the AIT 
> tapes.
> 
> -- 
> ---
> 
> Chris Hoogendyk
> 
> -
>   O__   Systems Administrator
>  c/ /'_ --- Biology & Geology Departments
> (*) \(*) -- 347 Morrill Science Center
> ~~ - University of Massachusetts, Amherst
> 
> 
> 
> ---
> 
> Erdös 4
> 




Re: transition to new tape library

2015-06-16 Thread Debra S Baddorf

On Jun 16, 2015, at 2:11 PM, Debra S Baddorf  wrote:

I suspect some manual intervention will be required  (unless others think of a 
really clever way).

How about creating a new configuration,  such as DAILY2  for the new tape 
library.  It would gradually build up its history as it fills tapes,
but YOU the intelligent human will have to know to do your restores from  DAILY 
 (or whatever the old config was called) until such time
as the new config has the date that your restore needs to come from.I.E.   
keep a record of the date when the new library goes into
effect,  and watch the dates of what you are restoring.   If earlier than the 
new library,  than restore from OLD-CONFIG-NAME.
If the date is new enough that the new library has done a backup and has the 
restore that you want,  then restore from NEW-CONFIG-NAME.

Deb Baddorf
Fermilab

PS  My library upgrades have always included a new computer host too,  so I 
kept the CONFIG name the same,  but had to remember
which host to address the request to.  In your case,  I would probably keep 
the config name the same,  but create a new name for the
OLD-CONFIG   (such as  OLD-CONFIG ;)  or  OLD-DAILY)  so that I could keep them 
straight. Or  DAILY-LTO2   and  keep the new
one as just  DAILY.   You get the gist.   Whatever feels best for you.

Deb



On Jun 16, 2015, at 1:41 PM, Chris Hoogendyk  wrote:

> This ought to be a not uncommon situation: I have an existing server running 
> Amanda 3.3.3 (on Ubuntu 12.04) with a Sony Lib162-A5 tape library. I've added 
> a SAS card and a NEOs T24 LTO6 tape library.
> 
> How can I configure Amanda with both libraries so that all new backups go to 
> the T24, but if I did a recovery of data it would know to go to a tape on the 
> Sony if necessary? I'd like to keep the existing configuration and history 
> rather than starting with a totally clean slate and having to get a full set 
> of level 0 backups to bootstrap it.
> 
> Then, at some later point, when I have cycled through a complete set of LTOs, 
> I could de-configure the Sony and let go of the history related to the AIT 
> tapes.
> 
> -- 
> ---
> 
> Chris Hoogendyk
> 
> -
>  O__   Systems Administrator
> c/ /'_ --- Biology & Geology Departments
> (*) \(*) -- 347 Morrill Science Center
> ~~ - University of Massachusetts, Amherst
> 
> 
> 
> ---
> 
> Erdös 4
> 





Re: transition to new tape library

2015-06-16 Thread Jean-Louis Martineau

Chris,

Define a new changer and set tpchanger to that changer.
If you don't already define a changer, then also define one for the old 
changer.


I would also use a different labeling scheme.

See: man amanda-changers

Jean-Louis


On 16/06/15 02:41 PM, Chris Hoogendyk wrote:
This ought to be a not uncommon situation: I have an existing server 
running Amanda 3.3.3 (on Ubuntu 12.04) with a Sony Lib162-A5 tape 
library. I've added a SAS card and a NEOs T24 LTO6 tape library.


How can I configure Amanda with both libraries so that all new backups 
go to the T24, but if I did a recovery of data it would know to go to 
a tape on the Sony if necessary? I'd like to keep the existing 
configuration and history rather than starting with a totally clean 
slate and having to get a full set of level 0 backups to bootstrap it.


Then, at some later point, when I have cycled through a complete set 
of LTOs, I could de-configure the Sony and let go of the history 
related to the AIT tapes.






Re: transition to new tape library

2015-06-19 Thread Chris Hoogendyk

Thanks, Brian. I think that amrestore comment is the key.

What I did was move my amanda.conf and changer.conf to amanda1.conf and changer1.conf. Then I 
replicated them with a 2 and edited that for the new tape library. Finally, I put a symlink at 
amanda.conf and changer.conf pointing to the 2 versions. That works. I labeled all the new LTO6 
tapes with a 2 in front, so my old AIT5 tapes are geo-daily-001 through 030, and the new ones are 
201 through 220 for starters. Then I put no-reuse on the old ones.


I initially tried just putting a reference to changer2.conf in amanda.conf, but amanda generated a 
whole new set of changer-... files with the 2. So I got rid of those and did it as described above. 
That leaves them all together. If I do an amrecover that calls for the older tapes, I can mount them 
from the old library and indicate that drive to recover from. That gives me a smooth transition with 
normal Amanda planner and incrementals based on the fulls that were just recently done on the AIT5 
tapes. I'm pretty sure I'll be able to recover in situations where Amanda calls for a full from an 
AIT5 tape followed by an incremental that's on an LTO6. But, going forward, it will all be on the 
LTO6. Ultimately, I can ask Amanda to just forget about the AIT5 tapes and all data associated with 
them.


Backups continue to run smoothly and successfully with this setup.


On 6/16/15 3:23 PM, Cuttler, Brian (HEALTH) wrote:

Extend the tape pool? Use new names for the new tapes (but falling into the 
current naming convention, add a digit or something) mark the older tapes as 
no-reuse, so they will not get rewritten but the config name remains the same 
and the historical archives will be contiguous.

If restoring, using # amrestore, the tape unit needs to be specified anyway.

-Original Message-
From: owner-amanda-us...@amanda.org [mailto:owner-amanda-us...@amanda.org] On 
Behalf Of Debra S Baddorf
Sent: Tuesday, June 16, 2015 3:12 PM
To: Chris Hoogendyk
Cc: Debra S Baddorf; AMANDA users
Subject: Re: transition to new tape library

I suspect some manual intervention will be required  (unless others think of a 
really clever way).

How about creating a new configuration,  such as DAILY2  for the new tape 
library.  It would gradually build up its history as it fills tapes, but YOU 
the intelligent human will have to know to do your restores from  DAILY  (or 
whatever the old config was called) until such time
as the new config has the date that your restore needs to come from.I.E.   
keep a record of the date when the new library goes into
effect,  and watch the dates of what you are restoring.   If earlier than the 
new library,  than restore from OLD-CONFIG-NAME.
If the date is new enough that the new library has done a backup and has the 
restore that you want,  then restore from NEW-CONFIG-NAME.

Deb Baddorf
Fermilab

On Jun 16, 2015, at 1:41 PM, Chris Hoogendyk  wrote:


This ought to be a not uncommon situation: I have an existing server running 
Amanda 3.3.3 (on Ubuntu 12.04) with a Sony Lib162-A5 tape library. I've added a 
SAS card and a NEOs T24 LTO6 tape library.

How can I configure Amanda with both libraries so that all new backups go to 
the T24, but if I did a recovery of data it would know to go to a tape on the 
Sony if necessary? I'd like to keep the existing configuration and history 
rather than starting with a totally clean slate and having to get a full set of 
level 0 backups to bootstrap it.

Then, at some later point, when I have cycled through a complete set of LTOs, I 
could de-configure the Sony and let go of the history related to the AIT tapes.

--
---

Chris Hoogendyk


--
---

Chris Hoogendyk

-
   O__   Systems Administrator
  c/ /'_ --- Biology & Geology Departments
 (*) \(*) -- 347 Morrill Science Center
~~ - University of Massachusetts, Amherst



---

Erdös 4



Re: transition to new tape library

2015-06-19 Thread Jon LaBadie
On Fri, Jun 19, 2015 at 11:49:23AM -0400, Chris Hoogendyk wrote:
> Thanks, Brian. I think that amrestore comment is the key.
> 
> What I did was move my amanda.conf and changer.conf to amanda1.conf and
> changer1.conf. Then I replicated them with a 2 and edited that for the new
> tape library. Finally, I put a symlink at amanda.conf and changer.conf
> pointing to the 2 versions. That works. I labeled all the new LTO6 tapes
> with a 2 in front, so my old AIT5 tapes are geo-daily-001 through 030, and
> the new ones are 201 through 220 for starters. Then I put no-reuse on the
> old ones.
> 
> I initially tried just putting a reference to changer2.conf in amanda.conf,
> but amanda generated a whole new set of changer-... files with the 2. So I
> got rid of those and did it as described above. That leaves them all
> together. If I do an amrecover that calls for the older tapes, I can mount
> them from the old library and indicate that drive to recover from. That
> gives me a smooth transition with normal Amanda planner and incrementals
> based on the fulls that were just recently done on the AIT5 tapes. I'm
> pretty sure I'll be able to recover in situations where Amanda calls for a
> full from an AIT5 tape followed by an incremental that's on an LTO6. But,
> going forward, it will all be on the LTO6. Ultimately, I can ask Amanda to
> just forget about the AIT5 tapes and all data associated with them.
> 
> Backups continue to run smoothly and successfully with this setup.
> 
Chris,

The steps you took, including the negative attempts, would make a good
article for the amanda wiki.

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)