Re: [Bacula-users] Missed tape previous day requested
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Damian Brasher wrote: > Ryan Novosielski wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Damian Brasher wrote: >> >>> Ryan Novosielski wrote: >>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Damian Brasher wrote: > Hi List > > When a tape is missed for one of our weekday sets the next evening > the previous days, missed, tape is still requested even though the > job should have expired. I have used Volume Use Duration = 22h see > below. > > The clock starts ticking on the first tape write. >>> Job {Max Start Delay = 22h} should prevent manual intervention then? >>> Damian >>> >> Keep replies on the list -- you'll get more assistance that way. >> > > Sure - seems like my reply list was incorrect this morning - will check. > >> That is possible. Seems to me what's actually goofing you up here is >> that the backup is hung waiting for a tape, since it wasn't there when >> the backup started. The next backup will then wait for that one. A >> cancellation should allow the next backup to start anew. It >> theoretically want the wrong tape, but as long as your tape is ABLE to >> be written, AFAIK, it will be written to when it is presented with that >> tape. >> >> > A cancellation cleared the job queue, It looks as some intervention is > unavoidable when a > tape is missed as I have been working through this problem for a while > now. However some > interventions is required, the tape needs to be changed! so to cancel a > job is not a huge amount > of extra work. It would be nice if entering the next tape was all an > untrained user needed to do. What gives you the idea that you need to do more than that? If an acceptable tape is placed in the drive, the software should attempt to mount it by itself. I suspect you are running with AlwaysOpen = yes? This is not desirable in this situation. While AlwaysOpen = no is harder on the tape drive by design, if you are replacing the tape every day and only using it once, there is no specific harm in closing the tape (you'd need to reopen it on the next one anyway). AlwaysOpen an some of the polling options I suspect make this come together. - -- _ _ _ _ ___ _ _ _ |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 iD8DBQFHmMbzmb+gadEcsb4RApg7AKDhSIk4NkA9wTzr4PwpohAePbKNSwCgs+j+ 2BoOIagVOxI8n88cOWwJzVg= =cV1E -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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Missed tape previous day requested
Ryan Novosielski wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Damian Brasher wrote: > >> Ryan Novosielski wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> Damian Brasher wrote: >>> >>> Hi List When a tape is missed for one of our weekday sets the next evening the previous days, missed, tape is still requested even though the job should have expired. I have used Volume Use Duration = 22h see below. >>> The clock starts ticking on the first tape write. >>> >>> >>> >> Job {Max Start Delay = 22h} should prevent manual intervention then? >> Damian >> > > Keep replies on the list -- you'll get more assistance that way. > Sure - seems like my reply list was incorrect this morning - will check. > That is possible. Seems to me what's actually goofing you up here is > that the backup is hung waiting for a tape, since it wasn't there when > the backup started. The next backup will then wait for that one. A > cancellation should allow the next backup to start anew. It > theoretically want the wrong tape, but as long as your tape is ABLE to > be written, AFAIK, it will be written to when it is presented with that > tape. > > A cancellation cleared the job queue, It looks as some intervention is unavoidable when a tape is missed as I have been working through this problem for a while now. However some interventions is required, the tape needs to be changed! so to cancel a job is not a huge amount of extra work. It would be nice if entering the next tape was all an untrained user needed to do. Damian -- Damian Brasher Systems Admin/Prog OMII-UK ECS Southampton University - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Missed tape previous day requested
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Damian Brasher wrote: > Ryan Novosielski wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Damian Brasher wrote: >> >>> Hi List >>> >>> When a tape is missed for one of our weekday sets the next evening >>> the previous days, missed, tape is still requested even though the >>> job should have expired. I have used Volume Use Duration = 22h see >>> below. >>> >> >> The clock starts ticking on the first tape write. >> >> > > Job {Max Start Delay = 22h} should prevent manual intervention then? > Damian Keep replies on the list -- you'll get more assistance that way. That is possible. Seems to me what's actually goofing you up here is that the backup is hung waiting for a tape, since it wasn't there when the backup started. The next backup will then wait for that one. A cancellation should allow the next backup to start anew. It theoretically want the wrong tape, but as long as your tape is ABLE to be written, AFAIK, it will be written to when it is presented with that tape. - -- _ _ _ _ ___ _ _ _ |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 iD8DBQFHl1qUmb+gadEcsb4RApWMAJoDwErFPVW4eNDOkWPx36IeSfxwLQCghuEl d/UmeVCeAtvBf9FYMUEjhUE= =OuOj -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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Missed tape previous day requested
> > Cancel the previous day job if it is running. You may have to insert > > the blocked tape to continue. > > > > Then insert the next tape and issue the mount command to mount it. > > > > If the previous day job was not running you should be able to mount > > the next days tape even though it asks for the previous. > > > > John > > > Hi John, I was hoping there was a solution where no manual intervention > was required but it seems that this is unavoidable. Using the > combination of Job { Max Start Delay=, Max run Time= } and Pool { Volume > Use Duration= } I was hoping to avoid manual intervention in this scenario. > > Is there anything I could add or changes I could make to my > configuration to improve this? > I do not know of any other way but I will forward this to the list because some one else may have an idea. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Missed tape previous day requested
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Damian Brasher wrote: > Hi List > > When a tape is missed for one of our weekday sets the next evening the > previous days, missed, tape is still requested even though the job > should have expired. I have used Volume Use Duration = 22h see below. The clock starts ticking on the first tape write. > Here is an extract of my bacula-dir.conf > > Director { # define myself > Name = backup-dir > DIRport = 9101 # where we listen for UA connections > QueryFile = "/etc/bacula/query.sql" > WorkingDirectory = "/var/bacula/working" > PidDirectory = "/var/run" > Maximum Concurrent Jobs = 1 > Password = "" # Console password > Messages = Daemon > } > > Job { > Name= "webserver" > Type= Backup > Level = Full # default > Client = webserver > FileSet = "webserver" > Storage = LTO-2 # Set here instead of pool defs > Pool= Default > RunBeforeJob= "/etc/bacula/scripts/runbefore.sh" > Write Bootstrap = "/var/lib/bacula/webserver.bsr" > Schedule= "WeeklyCycle" > Messages= Standard > Priority= 7 > Max Start Delay = 22h # Time to cancel job after scheduled start time > Max Run Time = 1h 30m # Max lenght of time for a job to run > } > > FileSet { > Name = "webserver" > Include { > Options { signature = MD5 } > File = /var/www > File = /var/lib/mysql > } > Exclude { > File = /var/www/test > } > } > > Schedule { > Name = "WeeklyCycle" > Run = Level=Full Pool=Monday Monday at 23:05 > Run = Level=Full Pool=Tuesday Tuesday at 23:05 > Run = Level=Full Pool=Wednesday Wednesday at 23:05 > Run = Level=Full Pool=Thursday Thursday at 23:05 > #Run = Level=Full Pool=Thursday Thursday at 18:28 > Run = Level=Full Pool=Weekend Friday at 23:05 > } > > Client { > Name = webserver > Address = webserver.omii.ac.uk > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for FileDaemon > File Retention = 30 days# 30 days > Job Retention = 6 months# six months > AutoPrune = yes # Prune expired Jobs/Files > } > > Storage { > Name = LTO-2 > # Do not use "localhost" here > Address = backup.host.ac.uk # N.B. Use a fully qualified name here > SDPort = 9103 > Password = "" > Device = LTO-2 > Media Type = LTO-2 > } > > Pool { > Name = Monday > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle > Volumes > AutoPrune = yes # Prune expired volumes > Volume Use Duration = 22h # Max time to use volume from 1st > write before 'used' > Volume Retention = 5 days # > } > end > -- > > Tested end of last week, missed Thursday's tape, did not restart bacula > daemons > then loaded next days tape, bacula could not write to tape and provided > this error > message: > > Device status: > Device "FileStorage" (/tmp) is not open. > Device "LTO-2" (/dev/nst0) is not open. > Device is BLOCKED waiting for mount of volume "Thursday1", > Pool: Thursday > Media type: LTO-2 > > > In Use Volume status: > Thursday1 on device "LTO-2" (/dev/nst0) > Reader=0 writers=0 reserved=1 > > Can anyone advise? > - -- _ _ _ _ ___ _ _ _ |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 iD8DBQFHllMtmb+gadEcsb4RAnQGAJsF8ML63DZYPv1vDxlSOtuhaUH9ygCg1X0a rDaGwol8akHr91ECjMoPGZY= =GTGr -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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Missed tape previous day requested
On Jan 22, 2008 11:33 AM, Damian Brasher <[EMAIL PROTECTED]> wrote: > Hi List > > When a tape is missed for one of our weekday sets the next evening the > previous days, missed, tape is still requested even though the job > should have expired. I have used Volume Use Duration = 22h see below. > > Here is an extract of my bacula-dir.conf > > Director { # define myself > Name = backup-dir > DIRport = 9101 # where we listen for UA connections > QueryFile = "/etc/bacula/query.sql" > WorkingDirectory = "/var/bacula/working" > PidDirectory = "/var/run" > Maximum Concurrent Jobs = 1 > Password = "" # Console password > Messages = Daemon > } > > Job { > Name= "webserver" > Type= Backup > Level = Full # default > Client = webserver > FileSet = "webserver" > Storage = LTO-2 # Set here instead of pool defs > Pool= Default > RunBeforeJob= "/etc/bacula/scripts/runbefore.sh" > Write Bootstrap = "/var/lib/bacula/webserver.bsr" > Schedule= "WeeklyCycle" > Messages= Standard > Priority= 7 > Max Start Delay = 22h # Time to cancel job after scheduled start time > Max Run Time = 1h 30m # Max lenght of time for a job to run > } > > FileSet { > Name = "webserver" > Include { > Options { signature = MD5 } > File = /var/www > File = /var/lib/mysql > } > Exclude { >File = /var/www/test > } > } > > Schedule { > Name = "WeeklyCycle" > Run = Level=Full Pool=Monday Monday at 23:05 > Run = Level=Full Pool=Tuesday Tuesday at 23:05 > Run = Level=Full Pool=Wednesday Wednesday at 23:05 > Run = Level=Full Pool=Thursday Thursday at 23:05 > #Run = Level=Full Pool=Thursday Thursday at 18:28 > Run = Level=Full Pool=Weekend Friday at 23:05 > } > > Client { > Name = webserver > Address = webserver.omii.ac.uk > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for FileDaemon > File Retention = 30 days# 30 days > Job Retention = 6 months# six months > AutoPrune = yes # Prune expired Jobs/Files > } > > Storage { > Name = LTO-2 > # Do not use "localhost" here > Address = backup.host.ac.uk # N.B. Use a fully qualified name here > SDPort = 9103 > Password = "" > Device = LTO-2 > Media Type = LTO-2 > } > > Pool { > Name = Monday > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle > Volumes > AutoPrune = yes # Prune expired volumes > Volume Use Duration = 22h # Max time to use volume from 1st > write before 'used' > Volume Retention = 5 days # > } > end > -- > > Tested end of last week, missed Thursday's tape, did not restart bacula > daemons > then loaded next days tape, bacula could not write to tape and provided > this error > message: > > Device status: > Device "FileStorage" (/tmp) is not open. > Device "LTO-2" (/dev/nst0) is not open. > Device is BLOCKED waiting for mount of volume "Thursday1", > Pool: Thursday > Media type: LTO-2 > > > In Use Volume status: > Thursday1 on device "LTO-2" (/dev/nst0) > Reader=0 writers=0 reserved=1 > > Can anyone advise? > Cancel the previous day job if it is running. You may have to insert the blocked tape to continue. Then insert the next tape and issue the mount command to mount it. If the previous day job was not running you should be able to mount the next days tape even though it asks for the previous. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Missed tape previous day requested
Hi List When a tape is missed for one of our weekday sets the next evening the previous days, missed, tape is still requested even though the job should have expired. I have used Volume Use Duration = 22h see below. Here is an extract of my bacula-dir.conf Director { # define myself Name = backup-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/bacula/working" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "" # Console password Messages = Daemon } Job { Name= "webserver" Type= Backup Level = Full # default Client = webserver FileSet = "webserver" Storage = LTO-2 # Set here instead of pool defs Pool= Default RunBeforeJob= "/etc/bacula/scripts/runbefore.sh" Write Bootstrap = "/var/lib/bacula/webserver.bsr" Schedule= "WeeklyCycle" Messages= Standard Priority= 7 Max Start Delay = 22h # Time to cancel job after scheduled start time Max Run Time = 1h 30m # Max lenght of time for a job to run } FileSet { Name = "webserver" Include { Options { signature = MD5 } File = /var/www File = /var/lib/mysql } Exclude { File = /var/www/test } } Schedule { Name = "WeeklyCycle" Run = Level=Full Pool=Monday Monday at 23:05 Run = Level=Full Pool=Tuesday Tuesday at 23:05 Run = Level=Full Pool=Wednesday Wednesday at 23:05 Run = Level=Full Pool=Thursday Thursday at 23:05 #Run = Level=Full Pool=Thursday Thursday at 18:28 Run = Level=Full Pool=Weekend Friday at 23:05 } Client { Name = webserver Address = webserver.omii.ac.uk FDPort = 9102 Catalog = MyCatalog Password = "" # password for FileDaemon File Retention = 30 days# 30 days Job Retention = 6 months# six months AutoPrune = yes # Prune expired Jobs/Files } Storage { Name = LTO-2 # Do not use "localhost" here Address = backup.host.ac.uk # N.B. Use a fully qualified name here SDPort = 9103 Password = "" Device = LTO-2 Media Type = LTO-2 } Pool { Name = Monday Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Use Duration = 22h # Max time to use volume from 1st write before 'used' Volume Retention = 5 days # } end -- Tested end of last week, missed Thursday's tape, did not restart bacula daemons then loaded next days tape, bacula could not write to tape and provided this error message: Device status: Device "FileStorage" (/tmp) is not open. Device "LTO-2" (/dev/nst0) is not open. Device is BLOCKED waiting for mount of volume "Thursday1", Pool: Thursday Media type: LTO-2 In Use Volume status: Thursday1 on device "LTO-2" (/dev/nst0) Reader=0 writers=0 reserved=1 Can anyone advise? -- Damian Brasher Systems Admin/Prog OMII-UK ECS Southampton University - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users