---------- Forwarded message ---------- From: John Drescher <dresche...@gmail.com> Date: Mon, Nov 30, 2009 at 8:46 AM Subject: Re: [Bacula-users] AutoRecycling To: David Siegfried <david.siegfr...@uni-vechta.de>
On Mon, Nov 30, 2009 at 2:54 AM, David Siegfried <david.siegfr...@uni-vechta.de> wrote: > Hi guys, > > I have a problem with my Bacula. The backup works fine but if the last > tape is full, bacula doesn’t take the first one again, so I have to > update the volume status manual. > > Here my Storage Definition > > > # Default pool definition > Pool { > Name = Default > Pool Type = Backup > Recycle = yes > AutoPrune = yes > Volume Retention = 13d > Maximum Volume Bytes = 400G > Maximum Volumes = 11 > } > > > # > # Autochanger > # > Autochanger { > Name = Autochanger > Device = TapeStorage > Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" > Changer Device = /dev/sg1 > } > > > # > # TapeStorage > # > Device { > Name = TapeStorage > Device Type = Tape > Media Type = Tape > Archive Device = /dev/st0 > LabelMedia = yes; > Random Access = no; > AutomaticMount = yes; > RemovableMedia = yes ; > AlwaysOpen = no; > AutoChanger = yes; > Changer Device = /dev/sg1 > Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" > } > > *list media > Pool: Default > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | MediaId | VolumeName | VolStatus | Enabled | VolBytes | > VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | > LastWritten | > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | 1 | file-0001 | Full | 1 | 429,496,704,000 | > 440 | | 1 | 1 | 1 | Tape | 2009-11-14 > 01:18:19 | > | 2 | file-0002 | Full | 1 | 429,496,704,000 | > 441 | 1,123,200 | 1 | 2 | 1 | Tape | 2009-11-17 > 00:23:26 | > | 3 | file-0003 | Full | 1 | 429,496,704,000 | > 439 | 1,123,200 | 1 | 3 | 1 | Tape | 2009-11-19 > 23:21:02 | > | 4 | file-0004 | Full | 1 | 429,496,704,000 | > 439 | 1,123,200 | 1 | 4 | 1 | Tape | 2009-11-22 > 03:54:16 | > | 5 | file-0005 | Full | 1 | 429,496,704,000 | > 439 | 1,123,200 | 1 | 5 | 1 | Tape | 2009-11-25 > 02:19:17 | > | 6 | file-0006 | Full | 1 | 429,496,704,000 | > 439 | 1,123,200 | 1 | 6 | 1 | Tape | 2009-11-28 > 00:57:20 | > | 7 | file-0007 | Append | 1 | 390,109,612,032 | > 400 | 1,123,200 | 1 | 7 | 1 | Tape | 2009-11-30 > 04:37:19 | > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > > > I hope someone can help me! > It looks like you need a label format in your pool definition so that bacula will add more volumes when needed up to the 11 you specified. I was going to say that only file-0001 will be available today since the retention period (of 13 days) starts from the last written date but it appears that something is wrong with its retention period. The number after 440 should be 1123200 (seconds in 13 days) but its blank. To fix that use update and select "Pool from resource" John -- John M. Drescher ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users