Bacula-users

Re: [Bacula-users] Bacula BLOCK issue where already created volumes not being read

2009-02-12 16:28:50
Subject: Re: [Bacula-users] Bacula BLOCK issue where already created volumes not being read
From: John Drescher <drescherjm AT gmail DOT com>
To: Stevester <shandy AT firstcomm DOT com>
Date: Thu, 12 Feb 2009 16:25:47 -0500
>     I have an issue with Bacula. Here is the case. I Bacula setup on both
> an Ubuntu Server machine and Solaris. The director is on Ubuntu and storage
> server on Solaris. We have a LTO-180 Solaris tape library implemented. I
> recently ran a label barcodes command which created volumes with the same
> name as the barcodes: FCOM. This resulted in a default pool of volumes
> FCOM01,.....FCOM20. I performed an update scan slots twice. I then moved
> FCOM01-FCOM03 into a new pool i created: WindowsBackupServer Pool from the
> default. Here are the tables:
>
> Default Pool:
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles |
> VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
> |
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |      12 | FCOM04     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  104 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      13 | FCOM05     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  105 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      14 | FCOM06     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  106 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      15 | FCOM07     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  107 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      16 | FCOM08     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  108 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      17 | FCOM09     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  109 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      18 | FCOM10     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  110 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      19 | FCOM12     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  112 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      20 | FCOM13     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  113 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      21 | FCOM14     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  114 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      22 | FCOM15     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  115 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      23 | FCOM16     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  116 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      24 | FCOM17     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  117 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      25 | FCOM18     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  118 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      26 | FCOM19     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  119 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      27 | FCOM20     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  120 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> Pool: Scratch
> No results to list.
> Pool: WindowsFileServerBackup
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles |
> VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
> |
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |      10 | FCOM02     | Append    |       1 |  129,024 |        1 |
> 31,536,000 |       1 |  102 |         1 | LTO-2     | 2009-02-11 14:13:08 |
> |      11 | FCOM03     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  103 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> |      28 | FCOM01     | Append    |       1 |   64,512 |        0 |
> 31,536,000 |       1 |  101 |         1 | LTO-2     | 0000-00-00 00:00:00 |
> +---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
>
> So thinking that my new pool has already volumes created and ready to go, i
> executed a run statement at the bconsole. No tape were in the tape device,
> thus no mounts. After executing run, i stated yes to start the job. I then
> received a strange message when i did status all:
>
> Device status:
> Autochanger "Autochanger" with devices:
>   "Drive-1" (/dev/rmt/4cbn)
>   "Drive-2" (/dev/rmt/3cbn)
> Device "Drive-1" (/dev/rmt/4cbn) is not open.
>    Device is BLOCKED waiting to mount a volume FCOM12
>       Pool:        WindowsFileServerBackup
>       Media type:  LTO-2
>    Drive 0 status unknown.
>
> I then loaded and unloaded the tape device from my Solaris machine and then
> ran an update slots scan on Ubuntu from the bconsole.
>
> Now the error is
> Device status:
> Autochanger "Autochanger" with devices:
>   "Drive-1" (/dev/rmt/4cbn)
>   "Drive-2" (/dev/rmt/3cbn)
> Device "Drive-1" (/dev/rmt/4cbn) is not open.
>    Device is BLOCKED waiting to create a volume for:
>       Pool:        WindowsFileServerBackup
>       Media type:  LTO-2
>    Drive 0 status unknown.
>
> Can someone please help? I already have volumes in the in the new pool which
> i transfered with the update volumes command. Bacula should see those
> volumes and not be asking to label a new volume.

Once the drive is blocked it will not see the tapes until you mount
the drive again. Just issue a mount and it should fix itself.

> Bacula is a nice program,
> but i am starting to think due to its open source nature, it may be better
> to simply spend money on NetBackup.
>
I came from backup executive (early version of netbackup) to bacula
because bacula is a much better product and has much better support.

John

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users