The bconsol command 'status director' will show the next volume for scheduled jobs. I use this information to store the next correct tape in the device. Normaly this is not a problem, except you define a GFS backup cycle like this:
JobDefs { Name = "DDX GFS Default Job" Client = ddx-fd Level = Full FileSet = "DDX GFS Set" Storage = "DDX GFS Archive Storage" Pool = "DDX GFS Full Pool" Messages = Standard } Job { Name = "DDX GFS Data Backup" JobDefs = "DDX GFS Default Job" Type = Backup Schedule = "Backup Cycle" Write Bootstrap = "/opt/bacula/working/ddx-fd.bsr" Full Backup Pool = "DDX GFS Full Pool" Differential Backup Pool = "DDX GFS Differential Pool" Incremental Backup Pool = "DDX GFS Incremental Pool" } Pool { Name = "DDX GFS Full Pool" Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 3 months Label Format = "F" RecycleOldestVolume = yes Maximum Volume Jobs = 1 } Pool { Name = "DDX GFS Differential Pool" Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 3 months Label Format = "D" RecycleOldestVolume = yes } Pool { Name = "DDX GFS Incremental Pool" Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 3 months Label Format = "I" RecycleOldestVolume = yes } The bconsol command 'status director' will show the next correct volume for the level 'full' as defined in the recource 'Job'. The level for the scheduled jobs will displayed correctly but the volume will alway displayed for the level 'full'. Example: Pool: DDX GFS Full Pool +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | 80 | F0001 | Purged | 1 | 238,834,842,624 | 239 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-05 10:11:36 | | 81 | F0002 | Purged | 1 | 204,463,752,192 | 205 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-05 13:23:25 | | 82 | F0003 | Full | 1 | 204,463,558,656 | 205 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-06 12:45:18 | | 83 | F0004 | Used | 1 | 10,390,044,672 | 11 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-06 13:01:37 | | 84 | F0005 | Used | 1 | 9,959,491,584 | 10 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-05 13:39:44 | | 85 | F0006 | Full | 1 | 238,744,396,800 | 239 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-06 09:57:28 | | 127 | F0007 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 128 | F0008 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 129 | F0009 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 130 | F0010 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 131 | F0011 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 132 | F0012 | Append | 1 | 64,512 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ Pool: DDX GFS Differential Pool +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | 86 | D0001 | Append | 1 | 144,597,115,703 | 146 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-01-29 08:07:46 | | 87 | D0002 | Append | 1 | 138,249,151,488 | 141 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-19 08:11:03 | | 88 | D0003 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 89 | D0004 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 90 | D0005 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 91 | D0006 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ Pool: DDX GFS Incremental Pool +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ | 77 | I0001 | Full | 1 | 240,587,252,580 | 257 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-02-17 03:14:39 | | 78 | I0002 | Append | 1 | 116,647,759,872 | 128 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 2007-03-19 07:39:37 | | 79 | I0003 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 92 | I0004 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 93 | I0005 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | | 94 | I0006 | Append | 1 | 1 | 0 | 7,776,000 | 1 | 0 | 1 | HP-Ultrium | 0000-00-00 00:00:00 | +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+------------+---------------------+ Pool: DDX Test Pool *status director ddx-dir Version: 2.0.3 (06 March 2007) i686-pc-linux-gnu suse 9 Daemon started 16-Mar-07 08:36, 9 Jobs run since started. Heap: bytes=52,475 max_bytes=70,585 bufs=290 max_bufs=367 Scheduled Jobs: Level Type Pri Scheduled Name Volume =================================================================================== Incremental Backup 19 20-Mar-07 03:05 Bacula Catalog Backup Cat-0007 Incremental Backup 20 20-Mar-07 03:05 DDX GFS Data Backup F0007 ==== The volume 'F0007' is wrong. The correct volume must be 'I0002'. Best Regards Helmut Lübke ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users