On 16 Feb 2006 at 17:16, Rudolf Cejka wrote:

> Dan Langille wrote (2006/02/16):
> > > I think my status output may be unique...
> 
> ;o)

Well, that's what I thought when I was having trouble.

> > > # chio status -S
> > > ...
> > > drive 0: <ACCESS,FULL> source: <>
> > > The above situation represents a tape in the drive upon power up.
> 
> Yes, it is typical for tape libraries, because there could happen
> any condition/action during power down, so libraries have to learn
> all information again.

Yes.  That was causing trouble with another script I was trying.  It 
may have been my fault.

> > > But the status gives output I do not understand:
> > > # ~dan/rc-chio-changer /dev/ch0 list
> > > 2:001150
> > Sorry, all is well.  The above is just Slot 2, with label 001150.
> 
> Yes, if it is the only full slot (atleast learned without power
> interruption, however all libraries should rescan their slots after
> power up). I suppose that you have library with barcode reader.

It is the only full slot.  And yes, the library has a bar code 
reader.  A first for me.

> > I was thinking it would return just a list of slot numbers.  Is that 
> > what you expected?
> 
> List should return just list of full storage slots with volume names.
> 
> Usage: rc-chio-changer <changer-device> <cmd> [slot] [tape-device] 
> [drive-index]
> 
> Commands (<cmd>):
>   unload          Unloads a tape into the slot from where it was loaded.
>   load <slot>     Loads a tape from the slot <slot> (1-based).
>   list            Lists full storage slots.

Yes, I did read that.  But I wanted confirmation from you.  Man pages 
are good if you know what you're doing.  :)

One suggested change to the script:

-#   Changer Command = "path-to-this-script/chio-changer" %c %o %S %a 
%d
+#   Changer Command = "path-to-this-script/chio-changer %c %o %S %a 
%d"

I think the quote needs to be moved to where shown.  If you agree, 
I'll commit soon.

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to