Am 08.11.18 um 19:11 schrieb Nathan Stratton Treadway:
> On Thu, Nov 08, 2018 at 09:40:37 -0800, Chris Miller wrote:
>> bash-4.2$ ls -l /net/nas1/d0/Mail.TCLC.org/ 
>> : 
>> -rwxr-xr-x. 1 amandabackup disk 1110 Nov 8 09:12 state 
>> drwxr-xr-x. 2 amandabackup disk 0 Nov 5 10:17 vtape.00 
>> : 
>> drwxr-xr-x. 2 amandabackup disk 0 Nov 5 10:17 vtape.62 
>>
>> When I run amlabel: amlabel mail.tclc.org Mail.TCLC.org.00 slot vtape.00 
>>
>> Reading label... 
>> Slot vtape.00 not found 
>> Slot vtape.00 not found 
>>
>> I apparently do not understand the whole "vtape" thing at all... At a
>> minimum, I don't see where the config declares my "slots" as having
>> names "vtape.{00..62}"
> 
> A little later I will look for a reference to documentation on this, but
> in short: I believe the issue is that you are mixing the *name of the
> subdirectory* and the *amanda label of on the vtape*.
> 
> The Amanda label is what shows up in your interactition with Amanda, and
> is actually a name stored in a little header file on your physical tape
> or under the vtape subdirectory, to help Amanda keep track of which
> tape/vtape is which.
> 
> On the other hand, the subdirectories the chg-disk: changer uses to hold
> its vtapes are not really designed for direct human interaction... and
> they have a built-in naming pattern you can't change.
> 
> So, your first step is going to be to rename your subdirectories to
> "slot1", "slot2" ... "slot9", "slot10"...  (Note that you can _not_
> zero-pad the first 9 slot numbers -- "ls -v" may come in handy.)
> 
> After that, the amlabel command should work (or at least give a new
> error message) ... but note that the "slot" argument takes a slot
> number, rather than some sort of name.

I agree.
Plus:

amtape <confname> inventory

is your friend here, it should display your virtual tapes as soon as you
get things set up ...

example:

$ amtape vtape inventory

slot 0:1: label vtape-001-001 (vtape-005) [retention-no]
slot 0:2: label vtape-001-002 (vtape-005) [retention-no]
slot 0:3: label vtape-001-003 (vtape-005) [retention-no]
slot 0:4: label vtape-001-004 (vtape-005) [retention-no]
slot 0:5: label vtape-001-005 (vtape-005) [retention-tapes]

(forget my 0:1 slot, you should see 1, 2, 3 ...)

Reply via email to