Bacula-users

Re: [Bacula-users] No medium found.. How to force it?

2010-10-05 13:40:52
Subject: Re: [Bacula-users] No medium found.. How to force it?
From: Romer Ventura <rventura AT h-st DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Tue, 5 Oct 2010 12:27:13 -0500
*list media
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Scratch
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      24 | CNH902     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    1 |         1 | tape      | 0000-00-00 00:00:00 |
|      25 | CNH903     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    2 |         1 | tape      | 0000-00-00 00:00:00 |
|      26 | CNH904     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    3 |         1 | tape      | 0000-00-00 00:00:00 |
|      27 | CNH905     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    4 |         1 | tape      | 0000-00-00 00:00:00 |
|      28 | CNH906     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    5 |         1 | tape      | 0000-00-00 00:00:00 |
|      29 | CNH907     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    6 |         1 | tape      | 0000-00-00 00:00:00 |
|      30 | CNH908     | Append    |       1 |   64,512 |        0 |   31,536,000 |       1 |    7 |         1 | tape      | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Full-Pool-dsk-tpe
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       6 | CNH912     | Append    |       1 |   64,512 |        0 |    2,592,000 |       1 |    0 |         0 | tape      | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Diff-Pool-dsk-tpe
No results to list.
Pool: Incre-Pool-dsk-dsk
+---------+--------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName         | VolStatus | Enabled | VolBytes    | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+--------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       7 | IncreFileServ-0007 | Used      |       1 |  26,108,740 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-08-16 10:57:49 |
|       8 | IncreFileServ-0008 | Used      |       1 | 139,332,420 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-08-16 22:09:11 |
|       9 | IncreFileServ-0009 | Used      |       1 |  58,673,665 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-08-17 22:08:53 |
|      11 | IncreFileServ-0011 | Used      |       1 | 124,487,154 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-08-18 22:09:30 |
|      13 | IncreFileServ-0013 | Used      |       1 | 349,891,250 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-08-19 22:09:36 |
+---------+--------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Pool-Catalogs
+---------+--------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName   | VolStatus | Enabled | VolBytes    | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+--------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      10 | Catalog-0010 | Used      |       1 | 263,925,059 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-09-05 00:05:34 |
|      12 | Catalog-0012 | Used      |       1 | 263,934,823 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-09-07 09:26:15 |
|      14 | Catalog-0014 | Used      |       1 | 263,934,285 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-09-07 09:26:49 |
|      22 | Catalog-0022 | Used      |       1 | 264,154,088 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-09-13 08:56:55 |
|      23 | Catalog-0023 | Used      |       1 | 263,924,575 |        0 |      432,000 |       1 |    0 |         0 | File      | 2010-09-03 23:15:34 |
+---------+--------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: MailPool-Full-tape
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      18 | CNH898     | Used      |       1 | 113,341,132,800 |      114 |    2,592,000 |       1 |    0 |         0 | tape      | 2010-08-25 23:50:11 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: MailPool-Incre-tape
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes      | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      19 | CNH899     | Append    |       1 | 2,898,846,720 |        7 |   10,368,000 |       1 |    0 |         0 | tape      | 2010-09-03 20:29:40 |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: FileServPool-Full-tape
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      15 | CNH895     | Recycle   |       1 |               1 |        0 |    2,592,000 |       1 |    0 |         0 | tape      | 2010-08-25 14:31:09 |
|      16 | CNH896     | Used      |       1 | 139,932,721,152 |      140 |    2,592,000 |       1 |    0 |         0 | tape      | 2010-08-25 18:27:05 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: FileServPool-Diff-tape
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes    | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      20 | CNH900     | Append    |       1 | 778,982,400 |        1 |    2,592,000 |       1 |    0 |         0 | tape      | 2010-08-29 18:14:51 |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: FileServPool-Incre-tape
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes      | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      17 | CNH897     | Append    |       1 | 3,454,166,016 |        9 |      432,000 |       1 |    0 |         0 | tape      | 2010-09-03 20:18:53 |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: MailPool-Diff-tape
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes    | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      21 | CNH901     | Append    |       1 | 751,822,848 |        1 |   10,368,000 |       1 |    0 |         0 | tape      | 2010-08-29 18:23:52 |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Thanks
------ 
Romer Ventura

On Oct 5, 2010, at 12:02 PM, John Drescher wrote:

2010/10/5 Romer Ventura <rventura AT h-st DOT com>:
I have done "update slots"
*update slots
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: SLDLTv4
     2: File
Select Storage resource (1-2): 1
Connecting to Storage daemon SLDLTv4 at housigma25.h-st.com:9103 ...
3306 Issuing autochanger "slots" command.
Device "DLTv4" has 16 slots.
Connecting to Storage daemon SLDLTv4 at housigma25.h-st.com:9103 ...
3306 Issuing autochanger "list" command.
Catalog record for Volume "CNH902" updated to reference slot 1.
Catalog record for Volume "CNH903" updated to reference slot 2.
Catalog record for Volume "CNH904" updated to reference slot 3.
Catalog record for Volume "CNH905" updated to reference slot 4.
Catalog record for Volume "CNH906" updated to reference slot 5.
Catalog record for Volume "CNH907" updated to reference slot 6.
Catalog record for Volume "CNH908" updated to reference slot 7.
It just doesnt get the change. For some reason bacula still thinks that the
tape still needs to be used. Maybe is my retention settings that it is
screwing it up.
I am gonna try to mark it as used and see what happens.
Thanks
------

Look at the output of list media.

John

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users