RE: Tape order

2011-07-08 Thread McGraw, Robert P
Jean-Louis,

It seem that amadmin config tape figures out the order of the new tapes, 
while amcheck, and I assume amdump, seems to use the tape in the first 
available slot. Just a guess.

I already have a script that will look for unlabeled tapes and label, and I 
have modified the script to sorts the tapes into the ascending slots in 
ascending order after they are labeled.

This should resolve my problem.

Thanks

Robert


 -Original Message-
 From: Jean-Louis Martineau [mailto:martin...@zmanda.com]
 Sent: Thursday, July 07, 2011 5:22 PM
 To: McGraw, Robert P
 Cc: 'amanda-users@amanda.org'
 Subject: Re: Tape order
 
 
 % amadmin archive tape
 The next Amanda run should go onto 6 new tapes.
 The next 6 new tapes already labelled are: A00221, A00222, A00224,
 A00225, A00226, A00223
 
 Ha, they are new tapes, there is no order for new tape, amanda use the
 first one.
 Put them in the changer in the oreder you want them to be used.
 
 Jean-Louis
 
 
 On 07/07/2011 04:39 PM, McGraw, Robert P wrote:
  I usually do that just sliped my mind.
 
  My setup is
 
  I am running Amanda-3.2.3 on a Solaris 10 X86 host and I have changer
 defined as
 
  define changer c4 {
 tpchanger chg-robot:/dev/changer/0
 changerfile chg-zd-mtx-state
 property tape-device 0=tape:/dev/rmt/0cbn
 property eject-before-unload true
 property eject-delay 10
 property unload-delay 10
 property use-slots 31-36
 property load-poll 0s poll 5s until 120s
 device-property BLOCK_SIZE 1024k
 device-property LEOM true
  }
 
 
  -Original Message-
  From: Jean-Louis Martineau [mailto:martin...@zmanda.com]
  Sent: Thursday, July 07, 2011 3:20 PM
  To: McGraw, Robert P
  Cc: 'amanda-users@amanda.org'
  Subject: Re: Tape order
 
 
  Always post which amanda release you are using!
 
  Try chg-robot for your changer.
 
  Jean-Louis
 
  On 07/07/2011 02:21 PM, McGraw, Robert P wrote:
  I am trying to determine what tape order amanda uses when requesting a
  reuse tape.
  My amanda.conf is configured to use slots 31-36 for my archive tapes.
  These slots contain the following tapes.
  Storage Element 31:Full :VolumeTag=A00224L2
  Storage Element 32:Full :VolumeTag=A00225L2
  Storage Element 33:Full :VolumeTag=A00226L2
  Storage Element 34:Full :VolumeTag=A00221L2
  Storage Element 35:Full :VolumeTag=A00222L2
  Storage Element 36:Full :VolumeTag=A00223L2
 
 
  When I run amadmin archive tape I get this order list.
 
% amadmin archive tape
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: A00221, A00222, A00224,
  A00225, A00226, A00223
  When I run amcheck -s archive I get the following:
 
% amcheck -s archive
Amanda Tape Server Host Check
-
Holding disk /zvol/amanda/holdingdisk/archive: 1918267 MB disk space
  available, using 921600 MB as requested
slot ?: slot 13 not in use-slots (31-36)
slot 31: volume 'A00224'
Will write to volume 'A00224' in slot 31.
NOTE: skipping tape-writable test
Server check took 42.518 seconds
 
  For my archive run slot 31 is the first slot used by my archive run
 that
  has a reuse tape.
  I would really like to have my archive tape in the sequential order
 such
  as A00221, A00222, A00224, A00225, A00226, A00223, but amcheck tell me
  that it will start with what every tape is in slot 31, which happens to
 be
  A00224 and will use tapes in slot 31-36.
  Why the difference between the two command.?
  amadmin list the order in which the tape should be used.
  amcheck  list the first tape it will use, it is your responsibility to
  but the tape you want in the correct slot
  chg-zd-mtx do not use the barcode, that's why the fiorst slot is always
  used.
 
  Jean-Louis




Re: Tape order

2011-07-07 Thread Jean-Louis Martineau

Always post which amanda release you are using!

Try chg-robot for your changer.

Jean-Louis

On 07/07/2011 02:21 PM, McGraw, Robert P wrote:

I am trying to determine what tape order amanda uses when requesting a reuse 
tape.

My amanda.conf is configured to use slots 31-36 for my archive tapes. These 
slots contain the following tapes.

   Storage Element 31:Full :VolumeTag=A00224L2
   Storage Element 32:Full :VolumeTag=A00225L2
   Storage Element 33:Full :VolumeTag=A00226L2
   Storage Element 34:Full :VolumeTag=A00221L2
   Storage Element 35:Full :VolumeTag=A00222L2
   Storage Element 36:Full :VolumeTag=A00223L2


When I run amadmin archive tape I get this order list.

% amadmin archive tape
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: A00221, A00222, A00224, 
A00225, A00226, A00223

When I run amcheck -s archive I get the following:

% amcheck -s archive
Amanda Tape Server Host Check
-
Holding disk /zvol/amanda/holdingdisk/archive: 1918267 MB disk space 
available, using 921600 MB as requested
slot ?: slot 13 not in use-slots (31-36)
slot 31: volume 'A00224'
Will write to volume 'A00224' in slot 31.
NOTE: skipping tape-writable test
Server check took 42.518 seconds

For my archive run slot 31 is the first slot used by my archive run that has a 
reuse tape.

I would really like to have my archive tape in the sequential order such as 
A00221, A00222, A00224, A00225, A00226, A00223, but amcheck tell me that it 
will start with what every tape is in slot 31, which happens to be A00224 and 
will use tapes in slot 31-36.

Why the difference between the two command.?


amadmin list the order in which the tape should be used.
amcheck  list the first tape it will use, it is your responsibility to 
but the tape you want in the correct slot
chg-zd-mtx do not use the barcode, that's why the fiorst slot is always 
used.


Jean-Louis



RE: Tape order

2011-07-07 Thread McGraw, Robert P
I usually do that just sliped my mind.

My setup is

I am running Amanda-3.2.3 on a Solaris 10 X86 host and I have changer defined 
as 

define changer c4 {
  tpchanger chg-robot:/dev/changer/0
  changerfile chg-zd-mtx-state
  property tape-device 0=tape:/dev/rmt/0cbn
  property eject-before-unload true
  property eject-delay 10
  property unload-delay 10
  property use-slots 31-36
  property load-poll 0s poll 5s until 120s
  device-property BLOCK_SIZE 1024k
  device-property LEOM true
}


 -Original Message-
 From: Jean-Louis Martineau [mailto:martin...@zmanda.com]
 Sent: Thursday, July 07, 2011 3:20 PM
 To: McGraw, Robert P
 Cc: 'amanda-users@amanda.org'
 Subject: Re: Tape order
 
 
 Always post which amanda release you are using!
 
 Try chg-robot for your changer.
 
 Jean-Louis
 
 On 07/07/2011 02:21 PM, McGraw, Robert P wrote:
  I am trying to determine what tape order amanda uses when requesting a
 reuse tape.
 
  My amanda.conf is configured to use slots 31-36 for my archive tapes.
 These slots contain the following tapes.
 
 Storage Element 31:Full :VolumeTag=A00224L2
 Storage Element 32:Full :VolumeTag=A00225L2
 Storage Element 33:Full :VolumeTag=A00226L2
 Storage Element 34:Full :VolumeTag=A00221L2
 Storage Element 35:Full :VolumeTag=A00222L2
 Storage Element 36:Full :VolumeTag=A00223L2
 
 
  When I run amadmin archive tape I get this order list.
 
  % amadmin archive tape
  The next Amanda run should go onto 6 new tapes.
  The next 6 new tapes already labelled are: A00221, A00222, A00224,
 A00225, A00226, A00223
 
  When I run amcheck -s archive I get the following:
 
  % amcheck -s archive
  Amanda Tape Server Host Check
  -
  Holding disk /zvol/amanda/holdingdisk/archive: 1918267 MB disk space
 available, using 921600 MB as requested
  slot ?: slot 13 not in use-slots (31-36)
  slot 31: volume 'A00224'
  Will write to volume 'A00224' in slot 31.
  NOTE: skipping tape-writable test
  Server check took 42.518 seconds
 
  For my archive run slot 31 is the first slot used by my archive run that
 has a reuse tape.
 
  I would really like to have my archive tape in the sequential order such
 as A00221, A00222, A00224, A00225, A00226, A00223, but amcheck tell me
 that it will start with what every tape is in slot 31, which happens to be
 A00224 and will use tapes in slot 31-36.
 
  Why the difference between the two command.?
 
 amadmin list the order in which the tape should be used.
 amcheck  list the first tape it will use, it is your responsibility to
 but the tape you want in the correct slot
 chg-zd-mtx do not use the barcode, that's why the fiorst slot is always
 used.
 
 Jean-Louis




Re: Tape order

2011-07-07 Thread Jean-Louis Martineau

% amadmin archive tape
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: A00221, A00222, A00224,  A00225, 
A00226, A00223

Ha, they are new tapes, there is no order for new tape, amanda use the 
first one.

Put them in the changer in the oreder you want them to be used.

Jean-Louis


On 07/07/2011 04:39 PM, McGraw, Robert P wrote:

I usually do that just sliped my mind.

My setup is

I am running Amanda-3.2.3 on a Solaris 10 X86 host and I have changer defined as

define changer c4 {
   tpchanger chg-robot:/dev/changer/0
   changerfile chg-zd-mtx-state
   property tape-device 0=tape:/dev/rmt/0cbn
   property eject-before-unload true
   property eject-delay 10
   property unload-delay 10
   property use-slots 31-36
   property load-poll 0s poll 5s until 120s
   device-property BLOCK_SIZE 1024k
   device-property LEOM true
}



-Original Message-
From: Jean-Louis Martineau [mailto:martin...@zmanda.com]
Sent: Thursday, July 07, 2011 3:20 PM
To: McGraw, Robert P
Cc: 'amanda-users@amanda.org'
Subject: Re: Tape order


Always post which amanda release you are using!

Try chg-robot for your changer.

Jean-Louis

On 07/07/2011 02:21 PM, McGraw, Robert P wrote:

I am trying to determine what tape order amanda uses when requesting a

reuse tape.

My amanda.conf is configured to use slots 31-36 for my archive tapes.

These slots contain the following tapes.

Storage Element 31:Full :VolumeTag=A00224L2
Storage Element 32:Full :VolumeTag=A00225L2
Storage Element 33:Full :VolumeTag=A00226L2
Storage Element 34:Full :VolumeTag=A00221L2
Storage Element 35:Full :VolumeTag=A00222L2
Storage Element 36:Full :VolumeTag=A00223L2


When I run amadmin archive tape I get this order list.

% amadmin archive tape
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: A00221, A00222, A00224,

A00225, A00226, A00223

When I run amcheck -s archive I get the following:

% amcheck -s archive
Amanda Tape Server Host Check
-
Holding disk /zvol/amanda/holdingdisk/archive: 1918267 MB disk space

available, using 921600 MB as requested

slot ?: slot 13 not in use-slots (31-36)
slot 31: volume 'A00224'
Will write to volume 'A00224' in slot 31.
NOTE: skipping tape-writable test
Server check took 42.518 seconds

For my archive run slot 31 is the first slot used by my archive run that

has a reuse tape.

I would really like to have my archive tape in the sequential order such

as A00221, A00222, A00224, A00225, A00226, A00223, but amcheck tell me
that it will start with what every tape is in slot 31, which happens to be
A00224 and will use tapes in slot 31-36.

Why the difference between the two command.?

amadmin list the order in which the tape should be used.
amcheck  list the first tape it will use, it is your responsibility to
but the tape you want in the correct slot
chg-zd-mtx do not use the barcode, that's why the fiorst slot is always
used.

Jean-Louis




Re: Tape order

2011-07-07 Thread McGraw, Robert P


Sent from my Android phone using TouchDown (www.nitrodesk.com)


From: Jean-Louis Martineau
Sent: Thursday, July 07, 2011 9:21:48 PM
To: McGraw, Robert P
Cc: 'amanda-users@amanda.org'
Subject: Re: Tape order


% amadmin archive tape
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: A00221, A00222, A00224,  A00225, 
A00226, A00223

Ha, they are new tapes, there is no order for new tape, amanda use the
first one.
Put them in the changer in the oreder you want them to be used.

Jean-Louis


On 07/07/2011 04:39 PM, McGraw, Robert P wrote:
 I usually do that just sliped my mind.

 My setup is

 I am running Amanda-3.2.3 on a Solaris 10 X86 host and I have changer defined 
 as

 define changer c4 {
tpchanger chg-robot:/dev/changer/0
changerfile chg-zd-mtx-state
property tape-device 0=tape:/dev/rmt/0cbn
property eject-before-unload true
property eject-delay 10
property unload-delay 10
property use-slots 31-36
property load-poll 0s poll 5s until 120s
device-property BLOCK_SIZE 1024k
device-property LEOM true
 }


 -Original Message-
 From: Jean-Louis Martineau [mailto:martin...@zmanda.com]
 Sent: Thursday, July 07, 2011 3:20 PM
 To: McGraw, Robert P
 Cc: 'amanda-users@amanda.org'
 Subject: Re: Tape order


 Always post which amanda release you are using!

 Try chg-robot for your changer.

 Jean-Louis

 On 07/07/2011 02:21 PM, McGraw, Robert P wrote:
 I am trying to determine what tape order amanda uses when requesting a
 reuse tape.
 My amanda.conf is configured to use slots 31-36 for my archive tapes.
 These slots contain the following tapes.
 Storage Element 31:Full :VolumeTag=A00224L2
 Storage Element 32:Full :VolumeTag=A00225L2
 Storage Element 33:Full :VolumeTag=A00226L2
 Storage Element 34:Full :VolumeTag=A00221L2
 Storage Element 35:Full :VolumeTag=A00222L2
 Storage Element 36:Full :VolumeTag=A00223L2


 When I run amadmin archive tape I get this order list.

  % amadmin archive tape
  The next Amanda run should go onto 6 new tapes.
  The next 6 new tapes already labelled are: A00221, A00222, A00224,
 A00225, A00226, A00223
 When I run amcheck -s archive I get the following:

  % amcheck -s archive
  Amanda Tape Server Host Check
  -
  Holding disk /zvol/amanda/holdingdisk/archive: 1918267 MB disk space
 available, using 921600 MB as requested
  slot ?: slot 13 not in use-slots (31-36)
  slot 31: volume 'A00224'
  Will write to volume 'A00224' in slot 31.
  NOTE: skipping tape-writable test
  Server check took 42.518 seconds

 For my archive run slot 31 is the first slot used by my archive run that
 has a reuse tape.
 I would really like to have my archive tape in the sequential order such
 as A00221, A00222, A00224, A00225, A00226, A00223, but amcheck tell me
 that it will start with what every tape is in slot 31, which happens to be
 A00224 and will use tapes in slot 31-36.
 Why the difference between the two command.?
 amadmin list the order in which the tape should be used.
 amcheck  list the first tape it will use, it is your responsibility to
 but the tape you want in the correct slot
 chg-zd-mtx do not use the barcode, that's why the fiorst slot is always
 used.

 Jean-Louis



RE: tape order

2006-10-18 Thread McGraw, Robert P.
This is what I do to keep my tapes in sequence.

Say I have the following tape list.

20061010200953 D00025 reuse
20061009201023 D00024 reuse
0 D00023 reuse
20061009141704 D00022 reuse
20061008200944 D00021 reuse

I change the time for D00023 to something in between D00022 and D00024. Such
as 

20061010200953 D00025 reuse
20061009201023 D00024 reuse
20061009141904 D00023 reuse
20061009141704 D00022 reuse
20061008200944 D00021 reuse

I have several L0 dumps so for me this is not a problem. It is best to do
this as time gets closer to the date you want to change to.

To keep things in order I always run 

sort -r  oldtapelist  new tapelist

The output will be sorted as above. The next tape on my list is always the
bottom tape. 

Since I have been running amanda (3 years) my daily tapes have always been
in sequence.

Now my amadmin config tape list the correct tapes that will be used next. 

There is no rocket science in what I am doing but it works for me.

Robert




_
Robert P. McGraw, Jr.
Manager, Computer System EMAIL: [EMAIL PROTECTED]
Purdue University ROOM: MATH-807
Department of MathematicsPHONE: (765) 494-6055
150 N. University Street   FAX: (419) 821-0540
West Lafayette, IN 47907-2067


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Steve Wray
 Sent: Tuesday, October 17, 2006 4:03 PM
 To: amanda-users@amanda.org
 Subject: Re: tape order
 
 
 Jon LaBadie wrote:
  On Tue, Oct 17, 2006 at 11:44:53AM -0400, Steven Settlemyre wrote:
  I have 24 tapes and a 8 tape changer. For some reason, it is going
  13-16-15-14-17. How can I fix this? can i just force it to take 14
  after 13 by only having 14 in there when it's expecting 16? My
 tapecycle
  is 10.
 
  As Michael suggests, your human ordering is VERY likely
  to get out of sequence.  Best to forget about it.
 
 This has been bugging me for years.
 
 It makes daily off-site storage of backup tapes problematic; the
 data-vault outfits typically need to know 24 hours in advance which tape
 they should bring to your site as they need to plan the route for their
 van.
 
 If you request that they send you a tape at 'short notice' they will
 typically charge extra for this.
 
 I've been looking for a way to get amanda to try to predict which tape
 it will want next in good time (a schedule for the next 3 days or so
 would be ideal). No luck so far...



smime.p7s
Description: S/MIME cryptographic signature


Re: tape order

2006-10-17 Thread Michael Loftis
Forget about tape order.  It's not important.  AMANDA bases the order on 
what is expiring/expired.  So just forget about tape order, it's going to 
get out of whack.  Especially as you replace tapes due to wear.


--On October 17, 2006 11:44:53 AM -0400 Steven Settlemyre 
[EMAIL PROTECTED] wrote:



I have 24 tapes and a 8 tape changer. For some reason, it is going
13-16-15-14-17. How can I fix this? can i just force it to take 14
after 13 by only having 14 in there when it's expecting 16? My tapecycle
is 10.

Steve





--
Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds.
-- Samuel Butler


Re: tape order

2006-10-17 Thread Jon LaBadie
On Tue, Oct 17, 2006 at 11:44:53AM -0400, Steven Settlemyre wrote:
 I have 24 tapes and a 8 tape changer. For some reason, it is going 
 13-16-15-14-17. How can I fix this? can i just force it to take 14 
 after 13 by only having 14 in there when it's expecting 16? My tapecycle 
 is 10.

As Michael suggests, your human ordering is VERY likely
to get out of sequence.  Best to forget about it.

If you insist, amanda looks for exact match for the sequence
amanda has been using, new tapes (labeled but never before 
by amanda since labeling), and tapes that are not one of
the last tapecycle (minus 1 I think) number of tapes used.

So, if you want it to use tape 14, and it has not been used
in the last tapecycle number of tapes, make sure that no
other tapes in the changer fit the three categories above.

Recognize too that there are probably some level 0 DLE dumps
on tape 14 and will be overwritten early.  The recovery value
of the incrementals on tape 17, etc., that are based on those
level 0's is reduced.

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


Re: tape order

2006-10-17 Thread Steven Settlemyre
right, but since I have 24 tapes and my dumpcycle is 1 week, I should 
never have to go that far back as to need these tapes.


Jon LaBadie wrote:

On Tue, Oct 17, 2006 at 11:44:53AM -0400, Steven Settlemyre wrote:
  
I have 24 tapes and a 8 tape changer. For some reason, it is going 
13-16-15-14-17. How can I fix this? can i just force it to take 14 
after 13 by only having 14 in there when it's expecting 16? My tapecycle 
is 10.



As Michael suggests, your human ordering is VERY likely
to get out of sequence.  Best to forget about it.

If you insist, amanda looks for exact match for the sequence
amanda has been using, new tapes (labeled but never before 
by amanda since labeling), and tapes that are not one of

the last tapecycle (minus 1 I think) number of tapes used.

So, if you want it to use tape 14, and it has not been used
in the last tapecycle number of tapes, make sure that no
other tapes in the changer fit the three categories above.

Recognize too that there are probably some level 0 DLE dumps
on tape 14 and will be overwritten early.  The recovery value
of the incrementals on tape 17, etc., that are based on those
level 0's is reduced.

  


Re: tape order

2006-10-17 Thread Steve Wray
Jon LaBadie wrote:
 On Tue, Oct 17, 2006 at 11:44:53AM -0400, Steven Settlemyre wrote:
 I have 24 tapes and a 8 tape changer. For some reason, it is going 
 13-16-15-14-17. How can I fix this? can i just force it to take 14 
 after 13 by only having 14 in there when it's expecting 16? My tapecycle 
 is 10.
 
 As Michael suggests, your human ordering is VERY likely
 to get out of sequence.  Best to forget about it.

This has been bugging me for years.

It makes daily off-site storage of backup tapes problematic; the
data-vault outfits typically need to know 24 hours in advance which tape
they should bring to your site as they need to plan the route for their
van.

If you request that they send you a tape at 'short notice' they will
typically charge extra for this.

I've been looking for a way to get amanda to try to predict which tape
it will want next in good time (a schedule for the next 3 days or so
would be ideal). No luck so far...



Re: tape order

2006-10-17 Thread Olivier Nicole
 I have 24 tapes and a 8 tape changer. For some reason, it is going 
 13-16-15-14-17. How can I fix this? can i just force it to take 14 
 after 13 by only having 14 in there when it's expecting 16? My tapecycle 
 is 10.

On the sticker used on the tape, do a double numbering, one by Amanda
label and one by human sequence (13 a) (16 b) (15 c) (14 d) (17 e) etc.

Though after many years of using Amanda I never had the tapes going
out of sequence, if one tape wears out, I replace it with a new tape,
using the same label (amlabel -f), but I do the replacement only the
very day I should have been reusing the bad tape.

When a dump resolve that tape 7 is faulty, I continue with tape 8 and
etc, only when Amanda ask to use tape 7 again, I label a new tape 7
and use that new 7. I do that with a PostIt on the bad tape to remind
me that I must replace that tape the next time I try to use it.

Olivier


Re: tape order

2006-10-17 Thread Jon LaBadie
On Wed, Oct 18, 2006 at 09:03:09AM +1300, Steve Wray wrote:
 
 This has been bugging me for years.
 
...
 
 I've been looking for a way to get amanda to try to predict which tape
 it will want next in good time (a schedule for the next 3 days or so
 would be ideal). No luck so far...

Isn't the tapelist file kept in order used, thus order to be used?
Whenever I look at my list the next needed tapes are at the bottom
of the file.  I'd expect a tail -n runtapes x days would give you
that info.

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