Re: manual updating tapelist and tape headers after disk crash

2017-11-10 Thread Jon LaBadie
On Fri, Nov 10, 2017 at 08:18:03PM +, Debra S Baddorf wrote:
> 
> > On Nov 10, 2017, at 2:02 PM, Jon LaBadie  wrote:
> > 
> > On Wed, Nov 08, 2017 at 06:10:12PM +, Debra S Baddorf wrote:
> >> 
> >>> Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
>  My vtapes are spread across several disks.  One of the
>  smallest recently died in a most audible way.
>  
>  I'm replacing the disk with a larger one.
>  
>  I would like to recreate the lost vtapes (no backup
>  data, that is gone!) and have them reused in the
>  order they would have been used.
>  
>  Also, I would like to add vtapes and have them used
>  after the currently highest numbered vtape.
>  
>  I.e. I am succumbing to that human fraility of wanting
>  things to run in numerical order when it really doesn't
>  matter.
> >>> 
> >> 
> >> I haven’t tried this with vtapes, but with physical tapes,  I’ll just edit 
> >> the tapelist file.
> >> I move the desired tape into the correct slot and edit the date field to 
> >> be just after
> >> the previous line (so it fits, sequentially, with prior and subsequent 
> >> lines).
> >> 
> >> For blank tapes, which are at the end of the file,  I just move the line 
> >> to the end of
> >> the file, so it uses this tape next.
> >> “amadmin   tape”   will tell me the order it plans to use the next 
> >> few tapes,
> >> so I can tell if I got it right.
> >> 
> >> Note:  don’t change the line for a GOOD tape until just before you want it 
> >> to be used.
> >> I’m not sure what these changes would do to amrestore  or amrecover  
> >> processes.
> >> 
> > 
> > I'm surprised at amanda's reordering the tapelist file
> > at several points.  But the leading '0' files, whether
> > "reuse" or "no-reuse" keep being moved to the bottom.
> > 
> > I think I'm going to try setting the dates manually.
> > I'm concerned about the "tape header file",
> > 0-.  It has a DATE last used field
> > which is "X", I guess "never used".  I wonder if that
> > must match the tapefile date field?
> > 
> > Jon
> 
> Well,  for overwriting the tape,  it has never mattered for me.  My tapelist 
> edits (above)
> have worked.  Now,  for READING the tape and doing restores,  it may very 
> well matter.
> But for re-using the tape, it has to re-write that record anyway, with the 
> current date.  
> 
> Deb 

Makes sense.  I just finished changing the "0's" to datestamps,
reordering the list, and in the header file replacing the "X"
with the matching tapelist time stamp.  There were about 50,
so I wrote a script for some of the work.

I've left them at "no-reuse" but in the desired order.
If they stay that way for a few days I'll remove the "no-".

Thanks,

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


Re: manual updating tapelist and tape headers after disk crash

2017-11-10 Thread Debra S Baddorf

> On Nov 10, 2017, at 2:02 PM, Jon LaBadie  wrote:
> 
> On Wed, Nov 08, 2017 at 06:10:12PM +, Debra S Baddorf wrote:
>> 
>>> Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
 My vtapes are spread across several disks.  One of the
 smallest recently died in a most audible way.
 
 I'm replacing the disk with a larger one.
 
 I would like to recreate the lost vtapes (no backup
 data, that is gone!) and have them reused in the
 order they would have been used.
 
 Also, I would like to add vtapes and have them used
 after the currently highest numbered vtape.
 
 I.e. I am succumbing to that human fraility of wanting
 things to run in numerical order when it really doesn't
 matter.
>>> 
>> 
>> I haven’t tried this with vtapes, but with physical tapes,  I’ll just edit 
>> the tapelist file.
>> I move the desired tape into the correct slot and edit the date field to be 
>> just after
>> the previous line (so it fits, sequentially, with prior and subsequent 
>> lines).
>> 
>> For blank tapes, which are at the end of the file,  I just move the line to 
>> the end of
>> the file, so it uses this tape next.
>> “amadmin   tape”   will tell me the order it plans to use the next 
>> few tapes,
>> so I can tell if I got it right.
>> 
>> Note:  don’t change the line for a GOOD tape until just before you want it 
>> to be used.
>> I’m not sure what these changes would do to amrestore  or amrecover  
>> processes.
>> 
> 
> I'm surprised at amanda's reordering the tapelist file
> at several points.  But the leading '0' files, whether
> "reuse" or "no-reuse" keep being moved to the bottom.
> 
> I think I'm going to try setting the dates manually.
> I'm concerned about the "tape header file",
> 0-.  It has a DATE last used field
> which is "X", I guess "never used".  I wonder if that
> must match the tapefile date field?
> 
> Jon

Well,  for overwriting the tape,  it has never mattered for me.  My tapelist 
edits (above)
have worked.  Now,  for READING the tape and doing restores,  it may very well 
matter.
But for re-using the tape, it has to re-write that record anyway, with the 
current date.  

Deb 




Re: manual updating tapelist and tape headers after disk crash

2017-11-10 Thread Jon LaBadie
On Wed, Nov 08, 2017 at 06:10:12PM +, Debra S Baddorf wrote:
> 
> > Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
> >> My vtapes are spread across several disks.  One of the
> >> smallest recently died in a most audible way.
> >> 
> >> I'm replacing the disk with a larger one.
> >> 
> >> I would like to recreate the lost vtapes (no backup
> >> data, that is gone!) and have them reused in the
> >> order they would have been used.
> >> 
> >> Also, I would like to add vtapes and have them used
> >> after the currently highest numbered vtape.
> >> 
> >> I.e. I am succumbing to that human fraility of wanting
> >> things to run in numerical order when it really doesn't
> >> matter.
> > 
> 
> I haven’t tried this with vtapes, but with physical tapes,  I’ll just edit 
> the tapelist file.
> I move the desired tape into the correct slot and edit the date field to be 
> just after
> the previous line (so it fits, sequentially, with prior and subsequent lines).
> 
> For blank tapes, which are at the end of the file,  I just move the line to 
> the end of
> the file, so it uses this tape next.
> “amadmin   tape”   will tell me the order it plans to use the next 
> few tapes,
> so I can tell if I got it right.
> 
> Note:  don’t change the line for a GOOD tape until just before you want it to 
> be used.
> I’m not sure what these changes would do to amrestore  or amrecover  
> processes.
> 

I'm surprised at amanda's reordering the tapelist file
at several points.  But the leading '0' files, whether
"reuse" or "no-reuse" keep being moved to the bottom.

I think I'm going to try setting the dates manually.
I'm concerned about the "tape header file",
0-.  It has a DATE last used field
which is "X", I guess "never used".  I wonder if that
must match the tapefile date field?

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


Re: manual updating tapelist and tape headers after disk crash

2017-11-08 Thread Debra S Baddorf

> On Nov 8, 2017, at 9:31 AM, Stefan G. Weichinger  wrote:
> 
> Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
>> My vtapes are spread across several disks.  One of the
>> smallest recently died in a most audible way.
>> 
>> I'm replacing the disk with a larger one.
>> 
>> I would like to recreate the lost vtapes (no backup
>> data, that is gone!) and have them reused in the
>> order they would have been used.
>> 
>> Also, I would like to add vtapes and have them used
>> after the currently highest numbered vtape.
>> 
>> I.e. I am succumbing to that human fraility of wanting
>> things to run in numerical order when it really doesn't
>> matter.
> 
> A quick idea (no big solution): use "amadmin no-reuse" (or edit the
> reuse "flag" in tapelist) to temporarily disable all the tapes except
> the one freshly labelled vtape. By doing that you force amanda to use
> *this* tape with *this* label. Do so until you have all your re-created
> vtapes used once ...
> 
> creating the vtapes is labelling the slots ... I don't see the need to
> handcraft anything here.
> 
> But maybe I don't fully understand.
> 
> Stefan


I haven’t tried this with vtapes, but with physical tapes,  I’ll just edit the 
tapelist file.
I move the desired tape into the correct slot and edit the date field to be 
just after
the previous line (so it fits, sequentially, with prior and subsequent lines).

For blank tapes, which are at the end of the file,  I just move the line to the 
end of
the file, so it uses this tape next.
“amadmin   tape”   will tell me the order it plans to use the next few 
tapes,
so I can tell if I got it right.

Note:  don’t change the line for a GOOD tape until just before you want it to 
be used.
I’m not sure what these changes would do to amrestore  or amrecover  processes.

Deb Baddorf
Fermilab


Re: manual updating tapelist and tape headers after disk crash

2017-11-08 Thread Stefan G. Weichinger
Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
> My vtapes are spread across several disks.  One of the
> smallest recently died in a most audible way.
> 
> I'm replacing the disk with a larger one.
> 
> I would like to recreate the lost vtapes (no backup
> data, that is gone!) and have them reused in the
> order they would have been used.
> 
> Also, I would like to add vtapes and have them used
> after the currently highest numbered vtape.
> 
> I.e. I am succumbing to that human fraility of wanting
> things to run in numerical order when it really doesn't
> matter.

A quick idea (no big solution): use "amadmin no-reuse" (or edit the
reuse "flag" in tapelist) to temporarily disable all the tapes except
the one freshly labelled vtape. By doing that you force amanda to use
*this* tape with *this* label. Do so until you have all your re-created
vtapes used once ...

creating the vtapes is labelling the slots ... I don't see the need to
handcraft anything here.

But maybe I don't fully understand.

Stefan


manual updating tapelist and tape headers after disk crash

2017-11-06 Thread Jon LaBadie
My vtapes are spread across several disks.  One of the
smallest recently died in a most audible way.

I'm replacing the disk with a larger one.

I would like to recreate the lost vtapes (no backup
data, that is gone!) and have them reused in the
order they would have been used.

Also, I would like to add vtapes and have them used
after the currently highest numbered vtape.

I.e. I am succumbing to that human fraility of wanting
things to run in numerical order when it really doesn't
matter.

So, if I create new tapes and manually move their
tapelist entry to the position I want, will amanda
still use the "new" tape over the one at the bottom
of the list?

For those already existing vtapes lost in the crash,
can I create the directory and hand craft the tape
header.  Then just leave those tapelist entries alone.

Considering the unlikely possibility that I will attempt
recovery of something from the lost vtapes should I just
"amrmtape" the lost vtapes and recreate them from scratch?

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