Thank you! I've got that set up now.

I tried labeling tapes. I thought it was working. e.g.:

   amanda@marlin:~/daily$ amlabel -f -o tpchanger=NEO200x48 -o
   'labelstr="^Bio-Research-[0-9][0-9][0-9]*$"' daily "Bio-Research-001" slot 1
   Reading label...
   Found label 'amtapetype-206980288' but it is not in the tapelist file.
   Writing label 'Bio-Research-001'...
   Checking label...
   Success!

After that (which I repeated for several tapes), I tried

   amanda@marlin:~/daily$ amlabel --storage research --assign daily 
"Bio-Research-[0-9][0-9][0-9]"
   Bio-Research-001: Can't assign storage without force, old storage is 'daily'
   [etc. for each of the several tapes]

So, adding -f

   amanda@marlin:~/daily$ amlabel -f --storage research --assign daily 
"Bio-Research-[0-9][0-9][0-9]"
   Bio-Research-001: Can't assign storage because it is a new labelled tape.
   [etc. for each of the several tapes]
   All labels already correctly set.

And looking at the tapelist, I see entries like:

   0 Bio-Research-001 reuse BARCODE:000001L7 BLOCKSIZE:2048 POOL:daily 
STORAGE:daily CONFIG:daily


Have I done something wrong? Or is that going to work, because it is a blank tape. In other words, since it is only accessible via tpchanger=NEO200x48, which is in the definition of the storage research; will it be accessed by those backups with the tag research and then re listed in the tapelist as belonging to storage research?

I also wasn't finding much detail in the man pages on the implications of pools. I don't have any such designations in my amanda.conf.



On 8/29/17 6:45 AM, Jean-Louis Martineau wrote:
Chris,

Everything looks good except the 'define changer' should be before the
'define storage'.

define changer NEO200x48 {
tpchanger
"chg-robot:/dev/tape/by-id/scsi-1BDT_FlexStor_II_00MX64200626_LL0" #
your changer device file (T48)
property "tape-device" "0=tape:/dev/nst1" # your tape
drive device file
property append "tape-device" "1=tape:/dev/nst2" # your
tape drive device file
property "use-slots" "1-11" # UPDATE WHEN TAPES
ADDED <<<<<<<<<<<<<<<<<<<<<
}

define storage research {
tpchanger "NEO200x48"
tapetype LTO7
labelstr "^Bio-Research-[0-9][0-9][0-9]*$"
amrecover_changer "NEO200x48"
dump-selection "Research" ALL
}

Jean-Louis

On 28/08/17 05:46 PM, Chris Hoogendyk wrote:
> I haven't found any examples of Amanda configurations using storage
> definitions. Having read through the man pages, I've come up with a
> modification of my amanda.conf that I think should work, and I'm
> looking for comments and feedback.
>
> I had temporarily set up a separate Amanda configuration to test my
> new LTO7 tape library. That seemed to work, and I was able to generate
> a typetype for LTO7. Now I want to fold it into my regular daily
> amanda.conf and have that use both my current LTO6 library and the new
> LTO7.
>
> I've added a section as follows:
>
> define storage research {
>
> define changer NEO200x48 {
> tpchanger
> "chg-robot:/dev/tape/by-id/scsi-1BDT_FlexStor_II_00MX64200626_LL0" # your
> changer device file (T48)
> property "tape-device" "0=tape:/dev/nst1" # your tape
> drive device file
> property append "tape-device" "1=tape:/dev/nst2" # your
> tape drive device file
> property "use-slots" "1-11" # UPDATE WHEN TAPES
> ADDED <<<<<<<<<<<<<<<<<<<<<
> }
> tpchanger "NEO200x48"
>
> tapetype LTO7
>
> labelstr "^Bio-Research-[0-9][0-9][0-9]*$"
>
> amrecover_changer "NEO200x48"
>
> dump-selection "Research" ALL
>
> }
>
> immediately after those same settings in the daily amanda.conf.
>
> I'm thinking with that in the configuration, I will be able to label
> tapes by, e.g.
>
> amlabel --storage "Research" daily "Bio-Research-012"
>
> Then I should be able to shift DLEs from the daily to the Research
> storage by putting a
>
> tag "Research"
>
> in the dump type, or in the DLE.
>
> I'm assuming that the default will follow my pre-existing amanda.conf
> with a default storage of "daily".
>
>


*Disclaimer*

This message is the property of *CARBONITE, INC.* <http://www.carbonite.com> and may contain confidential or privileged information.

If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone. Instead, destroy it and notify me by reply e-mail.


--
---------------

Chris Hoogendyk

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

<hoogen...@bio.umass.edu>

---------------

Erdös 4

Reply via email to