[Bacula-users] Relabel a Tape (Because of a typo)
Hello, I used the label command to label a new tape for bacula, and I made a typo when I labeled the tape. Something like MyTpe instead of MyTape. (Obviously I've chosen a better naming convention than this, but just to illustrate...) Bacula is so cool that it automatically mounts the tape and starts writing pending jobs to it as soon as I hit enter. Then I realize that I made a typo. How do I correct this? I get the impression from Googling and RTFM'ing that the answer is a flat, You can't. Don't make typos. Am I right? Thanks, - SG - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
On Tue, 04 Sep 2007, Server Gremlin might have said: Hello, I used the label command to label a new tape for bacula, and I made a typo when I labeled the tape. Something like MyTpe instead of MyTape. (Obviously I've chosen a better naming convention than this, but just to illustrate...) Bacula is so cool that it automatically mounts the tape and starts writing pending jobs to it as soon as I hit enter. Then I realize that I made a typo. How do I correct this? I get the impression from Googling and RTFM'ing that the answer is a flat, You can't. Don't make typos. Am I right? Thanks, - SG Will the bconsole command 'relabel' do what you want? Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
Mike Eggleston wrote: On Tue, 04 Sep 2007, Server Gremlin might have said: Hello, I used the label command to label a new tape for bacula, and I made a typo when I labeled the tape. Something like MyTpe instead of MyTape. (Obviously I've chosen a better naming convention than this, but just to illustrate...) Bacula is so cool that it automatically mounts the tape and starts writing pending jobs to it as soon as I hit enter. Then I realize that I made a typo. How do I correct this? I get the impression from Googling and RTFM'ing that the answer is a flat, You can't. Don't make typos. Am I right? Thanks, - SG Will the bconsole command 'relabel' do what you want? Mike I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Server Gremlin wrote: I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. You can, but it involves some hackery and is of course completely unsupported. Step one: Shut down Bacula. Step two: edit the volume's name in the SQL database (everywhere you find it). Step three: Start btape and use the 'writelabel' command to write the new label to the tape. Step four: Start Bacula again. At this point, you should have your tape with the label you wrote to it and the database showing the new name. I cannot guarantee though that this won't wipe your data or screw up your catalog in some way. Greetings, Michel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFG3Ybx2Vs+MkscAyURAibfAKDx4KotRcYFa/si+qQBy+z5mAQ4tACfVfqC xCEqfdvolmw384P2QSBv0D0= =DnrU -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
Michel Meyers wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Server Gremlin wrote: I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. You can, but it involves some hackery and is of course completely unsupported. Step one: Shut down Bacula. Step two: edit the volume's name in the SQL database (everywhere you find it). Step three: Start btape and use the 'writelabel' command to write the new label to the tape. Step four: Start Bacula again. At this point, you should have your tape with the label you wrote to it and the database showing the new name. I cannot guarantee though that this won't wipe your data or screw up your catalog in some way. Greetings, Michel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFG3Ybx2Vs+MkscAyURAibfAKDx4KotRcYFa/si+qQBy+z5mAQ4tACfVfqC xCEqfdvolmw384P2QSBv0D0= =DnrU -END PGP SIGNATURE- Thanks, Michel. I had a feeling that such was the case. Sounds like I'd probably be better off living with the error in the tape label, and just being aware in the future that I REALLY need to watch what I'm typing when labeling a tape. Or I could somehow pause bacula (I assume there is a way to do this so it won't run pending jobs), remove the tape from the pool and format it, then put it back into the pool and start over. And this time I'd be extra careful to type the label correctly. The only problem with this method is that I lose all my backup data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. You can, but it involves some hackery and is of course completely unsupported. Step one: Shut down Bacula. Step two: edit the volume's name in the SQL database (everywhere you find it). Step three: Start btape and use the 'writelabel' command to write the new label to the tape. Step four: Start Bacula again. At this point, you should have your tape with the label you wrote to it and the database showing the new name. I cannot guarantee though that this won't wipe your data or screw up your catalog in some way. Greetings, Michel Thanks, Michel. I had a feeling that such was the case. Sounds like I'd probably be better off living with the error in the tape label, and just being aware in the future that I REALLY need to watch what I'm typing when labeling a tape. Or I could somehow pause bacula (I assume there is a way to do this so it won't run pending jobs), remove the tape from the pool and format it, then put it back into the pool and start over. And this time I'd be extra careful to type the label correctly. The only problem with this method is that I lose all my backup data Maybe you could consider labeling the tapes in advance in the future? Thus, if you realize there is an error, you can relabel the tape before it is taken into use. Btw, does Bacula now have some tools for transferring backup data from one volume into another? Migration or something like that... haven't ever needed it, but maybe it could help here? Regards, Timo - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arno Lehmann wrote: Hi, 04.09.2007 20:56,, Timo Neuvonen wrote:: I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. You can, but it involves some hackery and is of course completely unsupported. Step one: Shut down Bacula. Step two: edit the volume's name in the SQL database (everywhere you find it). Step three: Start btape and use the 'writelabel' command to write the new label to the tape. This will probably write an EOD mark after the label, and thus making the tape unusable for restores... if it doesn't, it will be pure luck if the new label block ends at the right location, so that the tape drive can recognize the following EOF mark and the following data... i.e., I wouldn't do this without some testing before. That's the kind of stuff I feared. I've only done this operation on blank tapes (ie labeling it wrongly, then immediately correcting it). Greetings, Michel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFG3b8f2Vs+MkscAyURAgwLAJ44nrhhsBqcQjcUMGd/K1oa+Dqz4QCghUil 6w2GgZrpaWncUfYDd5Fy3fA= =A85m -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Relabel a Tape (Because of a typo)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michel Meyers wrote: Arno Lehmann wrote: Hi, 04.09.2007 20:56,, Timo Neuvonen wrote:: I don't think it will. It sounds like the relabel command actually requires you to first trash the volume; ie, remove it from the pool, remove any data on it, etc. It's like starting over. I don't want to do that. I have jobs running on the tape. In fact, one job was part-way done on one tape, it filled that tape, and then I put in this new tape on which I fubar'ed the label. All I want to do is rename the tape. Can I do that? I get the feeling I can't. You can, but it involves some hackery and is of course completely unsupported. Step one: Shut down Bacula. Step two: edit the volume's name in the SQL database (everywhere you find it). Step three: Start btape and use the 'writelabel' command to write the new label to the tape. This will probably write an EOD mark after the label, and thus making the tape unusable for restores... if it doesn't, it will be pure luck if the new label block ends at the right location, so that the tape drive can recognize the following EOF mark and the following data... i.e., I wouldn't do this without some testing before. That's the kind of stuff I feared. I've only done this operation on blank tapes (ie labeling it wrongly, then immediately correcting it). Greetings, Michel Sorry to join this late, but the relabeling option in btape fix this problem pretty easily? I don't remember where all of this stuff gets stored, but it seems like it might do fine. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG3gcEmb+gadEcsb4RAn17AJ4jx8PnQKfBG8Ny+JIhX2fbbCbeKQCfQNv5 NKiCCghXkdDPi28BZgADQUg= =R53+ -END PGP SIGNATURE- begin:vcard fn:Ryan Novosielski n:Novosielski;Ryan org:UMDNJ;IST/AST adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103 email;internet:[EMAIL PROTECTED] title:Systems Programmer III tel;work:(973) 972-0922 tel;fax:(973) 972-7412 tel;pager:(866) 20-UMDNJ x-mozilla-html:FALSE version:2.1 end:vcard - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users