Hi,

I've got one of my pools setup to auto-label volumes.  However instead of
starting the number at 0 or 1, it's using the mediaid of the volume.  Let me
know what can be done to have the numbering start at 1 and continue from
there.  Thanks.  Below are the pool configs and a snipet of the database:

Pool {
  Name = File
  Pool Type = Backup
  Storage = File
  Volume Retention = 1 month
  Recycle = yes
  Recycle Oldest Volume = yes
  File Retention = 1 month
  Job Retention = 1 month
  Maximum Volume Bytes = 20G
  Maximum Volumes = 37
  Action On Purge = Truncate
  AutoPrune = yes
  Label Format = "volume-"
}

Pool {
  Name = Tape
  Pool Type = Backup
  Storage = Tape
  Volume Retention = 1 year
  Recycle = yes
  Recycle Oldest Volume = yes
  File Retention = 1 year
  Job Retention = 1 year
}

*list volumes
Pool: File
+---------+-------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes    | VolFiles |
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
|
+---------+-------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       4 | volume-0004 | Append    |       1 | 417,636,727 |        0 |
 2,592,000 |       1 |    0 |         0 | /bacula   | 2011-02-16 10:03:05 |
+---------+-------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+

Pool: Tape
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles |
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
|
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       1 | MD0001     | Full      |       1 | 422,201,751,552 |      108 |
  31,536,000 |       1 |    0 |         0 | LTO3      | 2011-02-15 21:15:14
|
|       2 | MD0002     | Full      |       1 | 423,065,309,184 |      107 |
  31,536,000 |       1 |    0 |         0 | LTO3      | 2011-02-16 00:04:00
|
|       3 | MD0003     | Full      |       1 | 422,910,544,896 |      106 |
  31,536,000 |       1 |    0 |         0 | LTO3      | 2011-02-16 02:37:10
|
|       5 | MD0004     | Append    |       1 | 299,995,315,200 |       75 |
  31,536,000 |       1 |    0 |         0 | LTO3      | 2011-02-16 11:55:44
|
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to