Re: Library and clean cartdrige...
Bill Arlofski via Bacula-users <[email protected]>
| Newsgroups | gmane.comp.bacula.user |
|---|---|
| Message-ID | <[email protected]> |
On 8/27/24 8:29 AM, Marco Gaiarin wrote: > Mandi! Bill Arlofski via Bacula-users > In chel di` si favelave... > >> You cannot tell Bacula to load a cleaning tape without experiencing >> these kinds of errors, because when the SD is told to >> load a tape from a slot into a drive, the 'mtx-changer' script calls the 'mtx' utility to load, then, once that returns OK, >> the script calls `mt -f /tape/nodeid status` over and over (with time/iteration limits and some sleep time between each call) >> until it sees a "ONLINE" in the `mt status` output (in the case of a Linux distribution). >> >> In the case of a cleaning tape, this "ONLINE" will never appear, and the mtx-changer script will always time out and fail, >> then return with errorlevel 1, and the SD will complain exactly as you have demonstrated above. > > I supposed that. Super clear! And thanks to all! Welcome! :) >> You have two choices for cleaning tape drives with Bacula: >> - Manual: Issue a disable command to the drive in bconsole, then manually load/unload a cleaning tape, then re-enable the drive. > > Only a note: you meant 'disable job(s)', right? 'disable [command to] the > drive' seems not possible in bconsole, or i'm missing something... Nope... You want to disable the drive in bconsole. Then, the drive will not be used for any jobs that start on the SD - this is nice when you have library with several drives because other jobs can continue to be started and run on the other drives while this one is disabled: ----8<---- *disable storage=mhvtl-waa_a-Autochanger drive=0 │ Automatically selected Catalog: MyCatalog │ Using Catalog "MyCatalog" │ 3002 Device ""mhvtl-waa_a-Autochanger_Dev0" (/dev/tape/by-id/scsi-350223344ab001700-nst)" disabled. ----8<---- And a status storage=mhvtl-waa_a-Autochanger now shows the device is currently disabled: ----8<---- Device Tape: "mhvtl-waa_a-Autochanger_Dev0" (/dev/tape/by-id/scsi-350223344ab001700-nst) is not open. Device is disabled. User command. Drive 0 is not loaded. ----8<---- Hope this helps! Bill -- Bill Arlofski [email protected] _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc
(application/pgp-signature, 509 B)
-----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBzBAEBCAAnBQJmzhdgCRBIDTDab9XDQBYhBMuLnlBaSQiuSUbb6UgNMNpv 1cNAAABlUQf/V7X6UPtC9QoSe8jG5PX2cZ64Jcb/HhUKrLwH3vWb/ZqgHZ0e rjOGLkJC+C3vo+vsjjkSxOHTvkjls1slZilelnXucYuzW7VcCKG79zXPrHHr xBSioSUc2ljsFB+6uf3lfBinOWuGIo5G3dayLfoLK4qEKCyapOvWDcu4FtxO SLzawO51eeY9kFeGrAvE3RRl4NhIa/884KjCmnn6ucnooKYr17ashWD5JGhp mgJhd0Yt2J+wtFjaP7Xs/o8nHHp1Qn1sDzr0XM3rMqn01RFe+RXYcI2AJng+ khi6i701aQPhVzBD6kVkYHPF6nVrgIr3wTQftgdOimn0bSiDjb8Z+Q== =lqaQ -----END PGP SIGNATURE-----