[Bacula-users] newbie to tapes question
Hello, This is a quick question about labeling new tapes Im using RHEL 4 x86_64 with a dell powervault 124T. Bacula is 1.38.11 I've already added (at the same time) 2 tapes to a pool (bacula read the barcodes and use it to label them): This are the current volumes: *list volumes Using default Catalog name=MyCatalog DB=bacula Pool: Default +-++---+-+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes| VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+--+--+-+--+---+---+-+ | 8 | testeVol1 | Append| 171,591,154 |0 | 31,536,000 | 1 |0 | 1 | File | 2006-09-04 23:10:04 | +-++---+-+--+--+-+--+---+---+-+ Pool: TapePoolForSERVERS +-++---+-+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes| VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+--+--+-+--+---+---+-+ | 11 | 01L3 | Append| 7,651,509,655 |8 | 31,536,000 | 1 |1 | 1 | Ultrium-3 | 2006-08-15 07:30:00 | | 12 | 02L3 | Full | 434,014,408,572 | 437 | 31,536,000 | 1 |2 | 1 | Ultrium-3 | 2006-08-14 22:24:58 | +-++---+-+--+--+-+--+---+---+-+ * Now I want do add a new tape, but I down know exactly how to. If I use the label barcodes , I get the following: *label barcodes Using default Catalog name=MyCatalog DB=bacula The defined Storage resources are: 1: File 2: IBM-Ultrium-3 3: TapeLoader124T Select Storage resource (1-3): 3 Connecting to Storage daemon TapeLoader124T at 10.0.23.17:9103 ... 3306 Issuing autochanger slots command. Device TapeLoader124T has 8 slots. Connecting to Storage daemon TapeLoader124T at 10.0.23.17:9103 ... 3301 Issuing autochanger loaded drive 0 command. 3302 Autochanger loaded drive 0, result: nothing loaded. 3306 Issuing autochanger list command. The following Volumes will be labeled: Slot Volume == 1 01L3 2 02L3 3 03L3 Do you want to continue? (yes|no): I just want to label and add to the pool the tape barcoded as 03L3, not all of them Does any one knows how to do it? Thanks -- Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url:www.isep.ipp.pt http://www.isep.ipp.pt - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie to tapes question
Here they are. # Definition of file storage device Storage { Name = IBM Ultrium 3 # Do not use localhost here Address = 10.13.23.17# N.B. Use a fully qualified name here SDPort = 9103 Password = nTy3L4vcT+FonGqepWbqvLY6h4pmyDBnCvsu+qaaQ44s Device = IBM Ultrium 3 Autochanger = yes Media Type = Ultrium 3 } Pool { Name = TapePoolForSERVERS Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool } Job { Name = jtgv-gsi Client = jtgv-fd Type = Backup Pool = TapePoolForSERVERS Storage = IBM Ultrium 3 Messages = Standard Fileset = FileSetForjtgv Write Bootstrap = /var/bacula/jtgv-gsi.bsr Reschedule On Error = yes Reschedule Interval = 2 minutes Reschedule Times = 10 } I've made the changes you suggested. Since I'm testing backup to tape on a test environment (I was already doing backups to disk for a while), I've canceled the job, deleted the volumes on bacula, initialized tapes(rewind, weof...) and now I'll do the same tests again: first without using a recycled tape, and then use a recycled one. By the way, I've run a job without adding the volumes to the pool. So, job status is waiting for an appendable volume. I've added the tapes to the pool and I think bacula will wake up and search again for an appendable volume (and this time it will find one). Is there any way to force the job to retry estead of wainting for it to wake up and retry itself ? Once again, thank you for your help. Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url:www.isep.ipp.pt http://www.isep.ipp.pt Alan Brown wrote: On Thu, 10 Aug 2006, Jaime Ventura wrote: Thank you for reply. Can you take a look on the sections you mentioned? My autocharger is a Dell PowerVault 124T with only one drive. I believe its correct. It looks mostly ok, but I would not use Whitespace in labels Thanks # Autochanger { Name = TapeLoader124T Device = IBM Ultrium 3 Device = IBM-Ultrium-3 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d Changer Device = /dev/sg5 } Device { Name = IBM Ultrium 3 Name = IBM-Ultrium-3 Drive Index = 0 Media Type = Ultrium 3 Media Type = Ultrium-3 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; LabelMedia = yes; # lets Bacula label unlabeled media Volume Poll Interval = 7200 # time between device rechecks Spool Directory = /var/bacula/spool/ # read spooling section Maximum Spool Size = 2000 # 200Gb # of manual. Maximum Job Spool Size = 200 # 20Gb# AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' } It looks mostly OK Because of the speed of LTO3 media, you should always use spooling for everything - except possibly full backups - otherwise the tape spends a lot of time shoe-shining What storage device are you calling in your -dir job{} entries? What are your bacula-dir storage{} entries? Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url: www.isep.ipp.pt http://www.isep.ipp.pt Alan Brown wrote: On Thu, 10 Aug 2006, Jaime Ventura wrote: *mount The defined Storage resources are: 1: File 2: IBM Ultrium 3 Judging from this, you have malconfigured your autochanger resource. Please re-read the manual and ensure you have an autochanger section AND a section for each tape drive in the autochanger. AB - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] newbie to tapes question
Hi, Im having the following problem. Im tring to do a backup job (named jtgv-gsi) using 2 tapes labeled 01L3 and 02L3(which are added in a pool named TapePoolForSERVERS). When 01L3 go full, bacula asked me 02L3. I think it wasn't supposed to ask me for it since I'm using an auto charger and both tapes were in it. As you can seen below, I do a mount and still bacula is asking me for it. Tape 01L3 is unloaded from the drive and 02L3 is loaded in to the drive. Is it because 02L3 state is Recycle? Who can I force bacula to use it? Thank you. * *status dir isep-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat Enterprise release Daemon started 09-Aug-06 17:17, 6 Jobs run since started. Scheduled Jobs: Level Type Pri Scheduled Name Volume === Full Backup11 10-Aug-06 23:10BackupCatalog novoteste Running Jobs: JobId Level Name Status == 457 Fulljtgv-gsi.2006-08-10_10.11.48 is waiting for a mount request Terminated Jobs: JobId Level Files Bytes Status FinishedName 447 Incr 0 0 OK 07-Aug-06 23:05 Client1 448 Full 1 1,751,631 OK 07-Aug-06 23:10 BackupCatalog 450 Full 0 0 Error09-Aug-06 00:05 BackupCatalog 449 Incr 0 0 Error09-Aug-06 05:23 Client1 451 Full 11,123 88,265,557,275 OK 09-Aug-06 20:00 jtgv-gsi 452 Incr 0 0 Cancel 09-Aug-06 20:00 jtgv-gsi 453 Full 11,123 88,265,557,275 OK 09-Aug-06 22:18 jtgv-gsi 454 Full 11,123 88,265,557,275 OK 10-Aug-06 00:35 jtgv-gsi 455 Full 11,123 88,265,557,275 OK 10-Aug-06 02:53 jtgv-gsi 456 Full 1 6,972,676 OK 10-Aug-06 02:53 BackupCatalog *mount The defined Storage resources are: 1: File 2: IBM Ultrium 3 Select Storage resource (1-2): 2 3001 OK mount. Device=IBM Ultrium 3 (/dev/nst0) *messages 10-Aug 13:15 localhost-sd: 3301 Issuing autochanger loaded drive 0 command. 10-Aug 13:15 localhost-sd: 3302 Autochanger loaded drive 0, result is Slot 2. 10-Aug 13:15 localhost-sd: Please mount Volume 02L3 on Storage Device IBM Ultrium 3 (/dev/nst0) for Job jtgv-gsi.2006-08-10_10.11.48 *list volume Pool: Default +-++---+---+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+---+--+--+-+--+---+---+-+ | 2 | novoteste | Append| 1,452,894,204 |0 | 31,536,000 | 1 |0 | 1 | File | 2006-08-10 02:53:05 | +-++---+---+--+--+-+--+---+---+-+ Pool: TapePoolForSERVERS +-++---+-+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes| VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+--+--+-+--+---+---+-+ | 6 | 02L3 | Recycle | 1 |0 | 31,536,000 | 1 |2 | 1 | Ultrium 3 | -00-00 00:00:00 | | 7 | 01L3 | Full | 434,114,617,268 | 437 | 31,536,000 | 1 |1 | 1 | Ultrium 3 | 2006-08-10 12:20:06 | +-++---+-+--+--+-+--+---+---+-+ -- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie to tapes question
Thank you for reply. Can you take a look on the sections you mentioned? My autocharger is a Dell PowerVault 124T with only one drive. I believe its correct. Thanks # Autochanger { Name = TapeLoader124T Device = IBM Ultrium 3 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d Changer Device = /dev/sg5 } Device { Name = IBM Ultrium 3 Drive Index = 0 Media Type = Ultrium 3 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' } Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url:www.isep.ipp.pt http://www.isep.ipp.pt Alan Brown wrote: On Thu, 10 Aug 2006, Jaime Ventura wrote: *mount The defined Storage resources are: 1: File 2: IBM Ultrium 3 Judging from this, you have malconfigured your autochanger resource. Please re-read the manual and ensure you have an autochanger section AND a section for each tape drive in the autochanger. AB - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie to tapes question
On Thu, 10 Aug 2006, Jaime Ventura wrote: *mount The defined Storage resources are: 1: File 2: IBM Ultrium 3 Judging from this, you have malconfigured your autochanger resource. Please re-read the manual and ensure you have an autochanger section AND a section for each tape drive in the autochanger. AB - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie to tapes question
On Thu, 10 Aug 2006, Jaime Ventura wrote: Thank you for reply. Can you take a look on the sections you mentioned? My autocharger is a Dell PowerVault 124T with only one drive. I believe its correct. It looks mostly ok, but I would not use Whitespace in labels Thanks # Autochanger { Name = TapeLoader124T Device = IBM Ultrium 3 Device = IBM-Ultrium-3 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d Changer Device = /dev/sg5 } Device { Name = IBM Ultrium 3 Name = IBM-Ultrium-3 Drive Index = 0 Media Type = Ultrium 3 Media Type = Ultrium-3 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; LabelMedia = yes; # lets Bacula label unlabeled media Volume Poll Interval = 7200 # time between device rechecks Spool Directory = /var/bacula/spool/ # read spooling section Maximum Spool Size = 2000 # 200Gb # of manual. Maximum Job Spool Size = 200 # 20Gb# AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' } It looks mostly OK Because of the speed of LTO3 media, you should always use spooling for everything - except possibly full backups - otherwise the tape spends a lot of time shoe-shining What storage device are you calling in your -dir job{} entries? What are your bacula-dir storage{} entries? Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url: www.isep.ipp.pt http://www.isep.ipp.pt Alan Brown wrote: On Thu, 10 Aug 2006, Jaime Ventura wrote: *mount The defined Storage resources are: 1: File 2: IBM Ultrium 3 Judging from this, you have malconfigured your autochanger resource. Please re-read the manual and ensure you have an autochanger section AND a section for each tape drive in the autochanger. AB - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] newbie with tapes question...
Hi I've made some tests with a tape using btape command. Now, I don't know how to erase the tape so I cant use it with bacula. Can you help me? thanks -- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie with tapes question...
mt -f /dev/nst0 rewind mt -f /dev/nst0 weof mt -f /dev/nst0 rewind bconsole * label Jaime Ventura wrote: Hi I've made some tests with a tape using btape command. Now, I don't know how to erase the tape so I cant use it with bacula. Can you help me? thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] newbie with tapes question...
On 9 Aug 2006 at 11:29, Jaime Ventura wrote: Hi I've made some tests with a tape using btape command. Now, I don't know how to erase the tape so I cant use it with bacula. Can you help me? http://www.bacula.org/rel-manual/Bacula_Console.html Look for 'label' about 1/3 of the way down. You want something like this: mt -f /dev/nsa0 rewind mt -f /dev/nsa0 weof -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users