Re: Rif: Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ?
Kern, Many thanks for pointing to the Volume Poll Interval storage option. Since I am on Linux 2.6 the Offline on Unmount (and the assoc Close on Poll) didn't work (left the device blocked), but keeping the device open and polling for a new tape did the trick. Thanks, Florian On 2/21/06, Kern Sibbald [EMAIL PROTECTED] wrote: On Monday 20 February 2006 10:39, Florian Daniel Otel wrote: Ferdinando, Christoff, I haven't notice the section in the Tips and suggestions chapter that Christoff pointed out, but I think that Fernando's suggestion to replace the mtx-changer script with a custom script is a good idea. I am doing some tests as I write this and will get back after I got something more concrete (hopefully). Why don't you try using Poll Interval in the SD (or whatever the directive is really called -- there are too many for me to remember now)? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Rif: Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ?
I mean, in the mtx-changer shell script replace the call to mtx with the call to a custom script in which you can test and do whatever you want. Again this is only an idea, it shoul be adapted to your tape and tested. Best regards. -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.48 Per bacula-users@lists.sourceforge.net CC Oggetto Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Ferdinando, Great to have a response! ;-) What do you mean exactly by replacing the mtx command? Do you mean the mtx binary (you know, the mtx-1.2.17rel from within the depkgs which you compile and install on your system) or the mtx changer script which does the interfacing? That's one of the points I'm not sure about: Whether to really use the mtx binary or just do some kind of fake by creating a special changer script Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Ferdinando Pasqualetti [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 20.02.2006 09:34 To bacula-users@lists.sourceforge.net cc Subject Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi everybody, I think that you could obtain the behaviour you like defining a pseudo autochanger and replacing the mtx command. Of course there will be some scripting to do. Best regards -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.25 Per bacula-users@lists.sourceforge.net CC Oggetto Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Florian, I have the same problem as you have and already have put a message in here, too. Unfortunately no one replied. Maybe we can work together on this, although in the next weeks, I probably won't have much time for it. But in the long term I will surely try to solve this issue. Maybe we can meet in the #bacula IRC - channel on the freenode net? The way to get bacula do what we want would be to look at a single tape drive as an autochanger. See Total Automation of Bacula Tape Handling in the Tipps and Suggestions chapter of the manual. (Don't know, whether this technique is still up to date but as far as I know there's no single resource - directive which would enable what we want...) Up to now, I made bacula notify me (or the operator) that a new tape is needed and rewind and eject the full tape automatically. What doesn't work so far is bacula detecting and mounting the new tape by itself in order to continue the backup job. Hope this helps a little... Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Florian Daniel Otel [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 19.02.2006 11:07 To bacula-users@lists.sourceforge.net cc Subject [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Dear all, I have the following question wrt backup jobs that span more than one tape: Is it possible (and if yes, how?) to have the storage daemon release the device when (in the middle of the job) the end of one tape is reached and the next one is needed ?The idea is not requiring manually unmounting/mounting the old/new tape, but just simply change the tape and have the storage daemon sense that there is a new tape (rewind the tape + attempt re-reading the volume label) and then relabel and use the new tape if a blank tape was inserted in the mean time ? AFAICT the AlwaysOpen = no thingie releases the tape at the end of the job, not NOT in the middle of it i.e. when the end of the tape is reached. TIA, Florian --- 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___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users --- 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
Re: Rif: Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ?
Ok, thanks! I'll give it a try! By the way, would be great if somebody else could contribute to this topic, too! Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Ferdinando Pasqualetti [EMAIL PROTECTED] 20.02.2006 09:55 To Christoff Buch [EMAIL PROTECTED] cc bacula-users@lists.sourceforge.net Subject Rif: Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? I mean, in the mtx-changer shell script replace the call to mtx with the call to a custom script in which you can test and do whatever you want. Again this is only an idea, it shoul be adapted to your tape and tested. Best regards. -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.48 Per bacula-users@lists.sourceforge.net CC Oggetto Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Ferdinando, Great to have a response! ;-) What do you mean exactly by replacing the mtx command? Do you mean the mtx binary (you know, the mtx-1.2.17rel from within the depkgs which you compile and install on your system) or the mtx changer script which does the interfacing? That's one of the points I'm not sure about: Whether to really use the mtx binary or just do some kind of fake by creating a special changer script Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Ferdinando Pasqualetti [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 20.02.2006 09:34 To bacula-users@lists.sourceforge.net cc Subject Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi everybody, I think that you could obtain the behaviour you like defining a pseudo autochanger and replacing the mtx command. Of course there will be some scripting to do. Best regards -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.25 Per bacula-users@lists.sourceforge.net CC Oggetto Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Florian, I have the same problem as you have and already have put a message in here, too. Unfortunately no one replied. Maybe we can work together on this, although in the next weeks, I probably won't have much time for it. But in the long term I will surely try to solve this issue. Maybe we can meet in the #bacula IRC - channel on the freenode net? The way to get bacula do what we want would be to look at a single tape drive as an autochanger. See Total Automation of Bacula Tape Handling in the Tipps and Suggestions chapter of the manual. (Don't know, whether this technique is still up to date but as far as I know there's no single resource - directive which would enable what we want...) Up to now, I made bacula notify me (or the operator) that a new tape is needed and rewind and eject the full tape automatically. What doesn't work so far is bacula detecting and mounting the new tape by itself in order to continue the backup job. Hope this helps a little... Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Florian Daniel Otel [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 19.02.2006 11:07 To bacula-users@lists.sourceforge.net cc Subject [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Dear all, I have the following question wrt backup jobs that span more than one tape: Is it possible (and if yes, how?) to have the storage daemon release the device when (in the middle of the job) the end of one tape is reached and the next one is needed ?The idea is not requiring manually unmounting/mounting the old/new tape, but just simply change the tape and have the storage daemon sense that there is a new tape (rewind the tape + attempt re-reading the volume label) and then relabel and use the new tape if a blank tape was inserted in the mean time ? AFAICT the AlwaysOpen = no thingie releases the tape at the end of the job, not NOT in the middle of it i.e. when the end of the tape is reached. TIA, Florian --- This SF.net email is sponsored by: Splunk Inc. Do you grep through
Re: Rif: Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ?
Ferdinando, Christoff, I haven't notice the section in the Tips and suggestions chapter that Christoff pointed out, but I think that Fernando's suggestion to replace the mtx-changer script with a custom script is a good idea. I am doing some tests as I write this and will get back after I got something more concrete (hopefully). Thanks for the tips, Florian On 2/20/06, Ferdinando Pasqualetti [EMAIL PROTECTED] wrote: I mean, in the mtx-changer shell script replace the call to mtx with the call to a custom script in which you can test and do whatever you want. Again this is only an idea, it shoul be adapted to your tape and tested. Best regards. -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.48 Per bacula-users@lists.sourceforge.net CC Oggetto Re: Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Ferdinando, Great to have a response! ;-) What do you mean exactly by replacing the mtx command? Do you mean the mtx binary (you know, the mtx-1.2.17rel from within the depkgs which you compile and install on your system) or the mtx changer script which does the interfacing? That's one of the points I'm not sure about: Whether to really use the mtx binary or just do some kind of fake by creating a special changer script Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Ferdinando Pasqualetti [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 20.02.2006 09:34 To bacula-users@lists.sourceforge.net cc Subject Rif: Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi everybody, I think that you could obtain the behaviour you like defining a pseudo autochanger and replacing the mtx command. Of course there will be some scripting to do. Best regards -- Ferdinando Pasqualetti G.T.Dati srl Tel. 0557310862 - 3356172731 - Fax 055720143 Christoff Buch [EMAIL PROTECTED] Inviato da: [EMAIL PROTECTED] 20/02/2006 09.25 Per bacula-users@lists.sourceforge.net CC Oggetto Re: [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Hi Florian, I have the same problem as you have and already have put a message in here, too. Unfortunately no one replied. Maybe we can work together on this, although in the next weeks, I probably won't have much time for it. But in the long term I will surely try to solve this issue. Maybe we can meet in the #bacula IRC - channel on the freenode net? The way to get bacula do what we want would be to look at a single tape drive as an autochanger. See Total Automation of Bacula Tape Handling in the Tipps and Suggestions chapter of the manual. (Don't know, whether this technique is still up to date but as far as I know there's no single resource - directive which would enable what we want...) Up to now, I made bacula notify me (or the operator) that a new tape is needed and rewind and eject the full tape automatically. What doesn't work so far is bacula detecting and mounting the new tape by itself in order to continue the backup job. Hope this helps a little... Kind Regards Mit freundlichem Gruß i. A. Christoff Buch = [EMAIL PROTECTED] OneVision Software AG Dr.-Leo-Ritter-Str. 9 93049 Regensburg Florian Daniel Otel [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 19.02.2006 11:07 To bacula-users@lists.sourceforge.net cc Subject [Bacula-users] Releasing the tape device at the end of the medium / autosensing tape changes ? Dear all, I have the following question wrt backup jobs that span more than one tape: Is it possible (and if yes, how?) to have the storage daemon release the device when (in the middle of the job) the end of one tape is reached and the next one is needed ?The idea is not requiring manually unmounting/mounting the old/new tape, but just simply change the tape and have the storage daemon sense that there is a new tape (rewind the tape + attempt re-reading the volume label) and then relabel and use the new tape if a blank tape was inserted in the mean time ? AFAICT the AlwaysOpen = no thingie releases the tape at the end of the job, not NOT in the middle of it i.e. when the end of the tape is reached. TIA, Florian --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems