John Drescher wrote: > On Wed, May 27, 2009 at 2:40 PM, Phil R <bacula-us...@growlybear.org> wrote: > >> Hope this is the right place to ask this - if not, sorry. >> >> > Yes this is the correct place. > > >> Using 2.4.4, automatic recycling doesn't allow tapes to be reused. >> >> I've discovered that if I set the tape status to "recycle" then when the >> next scheduled job runs it recycles the volume - all data lost (good) >> then announces that the max use duration is (already!) exeeded, and >> marks the tape as "used" >> >> 27-May 00:03 machine-dir JobId 191: Start Backup JobId 191, >> Job=testbackup.2009-05-27_00.03.31.06 >> >> 27-May 00:03 machine-dir JobId 191: Using Device "DDS-4" >> >> 27-May 00:04 machine-sd JobId 191: Recycled volume "Scratch_1" on device >> "DDS-4" (/dev/nst1), all previous data lost. >> >> 27-May 00:04 machine-dir JobId 191: Max configured use duration >> exceeded. Marking Volume "Scratch_1" as Used. >> >> >> >> ...but continues to complete the job. Then the next night, the tape's >> marked as "used" and the backup fails. >> The "lastWritten" shows the last written time correctly; LabelDate shows >> the time the volume was recycled; but firstwritten shows the time & date >> the tape was first used. Not sure if that's how it's meant to be, but in >> order to use my tapes I have to set UseDuration to be more than the time >> since firstwritten and now. >> >> So if I want to use this tape until Friday, for example, I have to set >> UseDuration to be 54 days. Then when I come to reuse the tape in 4 >> weeks' time, I'll need to manually change the UseDuration to be 72 days >> (54+28) >> >> Shouldn't recycling reset the firstwritten time? >> > > Yes. > > >> Or should it calculate >> UseDuration from something else? Am I expecting something too much? >> >> >> > > Looks like a bug. Can you post the output of list media? > > John > > Thanks for the quick answer!
*list media Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" Pool: Default +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ | 8 | Tape_01 | Used | 1 | 9,449,266,176 | 10 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-09 09:20:36 | | 9 | Tape_02 | Full | 1 | 17,287,280,640 | 18 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-16 21:46:02 | | 10 | Tape_03 | Used | 1 | 10,587,967,488 | 11 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-17 09:36:24 | | 11 | Tape_04 | Used | 1 | 5,305,531,392 | 10 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-22 06:01:55 | | 12 | Tape_05 | Full | 1 | 17,298,570,240 | 18 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-23 04:23:26 | | 13 | Tape_06 | Append | 1 | 16,222,768,128 | 23 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-27 06:01:28 | | 14 | Tape_07 | Used | 1 | 15,269,925,888 | 20 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-04-29 06:02:13 | | 15 | Tape_08 | Full | 1 | 17,288,312,832 | 18 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-02 11:48:41 | | 17 | Tape_09 | Used | 1 | 7,059,483,648 | 8 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-05 03:15:53 | | 18 | Tape_10 | Full | 1 | 17,286,054,912 | 18 | 2,419,200 | 1 | 0 | 0 | DDS-4 | 2009-05-09 04:23:46 | +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ Pool: Scratch +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ | 19 | Scratch_1 | Used | 1 | 700,406,784 | 1 | 300 | 1 | 0 | 0 | DDS-4 | 2009-05-27 00:08:28 | +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ * That, I notice, doesn't show the first written times, but llist media gives SO much data I'm not sure you'll want all of that. At least it's something not working, rather than my understanding being wrong. Phil. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users