Hi Marco, -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marco van Wieringen Sent: Montag, 4. November 2013 11:02 To: [email protected] Subject: [bareos-users] Re: question regarding library scan
Sascha Bejer <sascha.bejer <at> access-company.com> writes: >> Maybe this is stupid question but not clear to me: >> When does bareos query the tape library for changes? > Only when you ask it to do. e.g. "update slots storage=<storage>" >> I am used to just unlock a complete 12-slot tray and remove the full >> tapes, fill with scratch ones and put the tray back. Comvault could >> cope with this, Bareos does not show changed slot allocation. > Correct both Bareos and Bacula don't like you changing its view of the world without you telling it. > Things will go seriously wrong if the view of the world in the software doesn't match with the actual state. >> The library _does_ rescan the inventory automatically after tray >> operations, so the information is in the library. Question is, on what >> basis bareos decides to read it... > On an operator entering the "update slots" its not like the software is monitoring the library all the time for some SCSI signal hey my content has changed. That would also be seriously library specific. >> So, what is the recommended procedure, the mail slot is particular >> cumbersome to use on this library :-/ >The right way of doing this is indeed using the mail-slot or so called import/export slot of the library. I know the smaller ones only have one slot so it will take some time but we implemented in Bareos the import/export command which are exactly for this operation. e.g. with the export you can move a tape to the mailslot and get it out and then with a import get it back in after you changed it with a new tape. > This really works well on bigger libraries we did some tests on a IBM changer last week which has 256 Import/Export slots. The nice thing about import/export is that it will also update the slot information of the internal slots it touched so you don't have to run an update slots. > When you want to keep on swapping the whole tray then your only option is to run an update slots after your library has done a full internal inventory. Most libraries also don't like you opening it that way as it will scan the whole library not only what was replaced. MSL2024 is what I have here, at least with latest firmware, it愀 smart and rescans only moved trays. http://www8.hp.com/de/de/products/tape-automation/product-detail.html?oid= 4209041 Mail slot is actually a dual-purpose storage slot. Also its multiple tapes a week to Output, with one-by-one the library operation take ages. The work done on the import/export portion of the code is well honored and understand the reason. I am still wondering, if an option sort of "re-read library status before changer operations" could be implemented. Is my use case that wired? Looked into stored/autochanger.c, but I miss a lot architecture knowledge (who calls who, communication between DIR and SD). Could be worked around with a cron job, not the elegant way :(. BR, Sascha Bejer -- . ________________________________________ The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mailer and delete this message and its attachments, if any. Thank you for your cooperation. ________________________________________ -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
