Bacula-users

Re: [Bacula-users] A noob and his autochanger

2009-10-07 14:11:23
Subject: Re: [Bacula-users] A noob and his autochanger
From: John Drescher <drescherjm AT gmail DOT com>
To: Kael Fischer <kael.fischer AT gmail DOT com>, bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Wed, 7 Oct 2009 14:08:05 -0400
> Reading the docs and experimenting has gotten me pretty far.  I'm not
> having any problem backing up smallish jobs with spooling to disk and
> despooling to an LTO-4 drive in an overland arcvault12.  But while
> backing up a 3TB RAID array, the first tape filled, and bacula is
> asking me to mount the next volume.
>
> 1) I was hoping that the next volume would be mounted w/o intervention
> at the console.
>

That is the way it is supposed to work and the way it works for me 99%
of the time..

>
> 2) umount; mount, fails.
>
> How I got here:  After lots initial testing, I dropped all the catalog
> tables and recreated them.  Then on the command line I rewound every
> tape and 'mt weof' on each one.  Then I used "label barcodes" which
> seemed to work, as "list media" cave me 11 volumes labeled with what
> looked like tape bar codes (one slot in the library is reserved).
>
> So, how can I achieve 1) and what's going on with 2)?
>
> The system is FreeBSD 7.0 and library is an Overland ArcVault12 with a
> SCSI HP LTO-4 drive.  Bacula version is 3.0.2 and the and it was an
> _in_situ_ freebsd port build on the machine that is running -dir and
> -sd
>
> Here is some console output:
> ===
> *list media
> Pool: Default
> +---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes          |
> VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
> LastWritten         |
> +---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |       1 | AHK836L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    1 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       3 | AHK837L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    2 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       4 | AHK829L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    3 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       5 | AHK834L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    4 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       6 | AHK838L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    5 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       7 | AHK839L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    6 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       8 | AHK825L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    7 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |       9 | AHK835L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    8 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |      10 | AHK828L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |    9 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |      11 | AHK826L4   | Append    |       1 |            64,512 |
>   0 |   94,608,000 |       1 |   10 |         1 | LTO-4     |
> 0000-00-00 00:00:00 |
> |      12 | AHK827L4   | Full      |       1 | 1,609,153,523,712 |
>  325 |   94,608,000 |       1 |   11 |         1 | LTO-4     |
> 2009-10-07 07:03:50 |
> +---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> Pool: Stage
> No results to list.
> Pool: BaculaCat
> +---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName     | VolStatus | Enabled | VolBytes    |
> VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
> LastWritten         |
> +---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |      13 | BaculaCat-0013 | Append    |       1 | 224,487,416 |
>  0 |   31,536,000 |       1 |    0 |         0 | File      |
> 2009-10-05 15:08:35 |
> +---------+----------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> You have messages.
> *messages
> 07-Oct 10:52 kf-nfs1-sd JobId 6: Please mount Volume "AHK836L4" or
> label a new one for:
>    Job:          R1.2009-10-05_15.48.33_05
>    Storage:      "LTO-4" (/dev/nsa0)
>    Pool:         Default
>    Media type:   LTO-4
> *umount
> The defined Storage resources are:
>     1: Disk
>     2: LTO-4
> Select Storage resource (1-2): 2
> 3307 Issuing autochanger "unload slot 1, drive 0" command.
> 3001 Device "LTO-4" (/dev/nsa0) unmounted.
> You have messages.
> *messages
> 07-Oct 11:04 kf-nfs1-sd JobId 6: Please mount Volume "AHK836L4" or
> label a new one for:
>    Job:          R1.2009-10-05_15.48.33_05
>    Storage:      "LTO-4" (/dev/nsa0)
>    Pool:         Default
>    Media type:   LTO-4
> *mount
> The defined Storage resources are:
>     1: Disk
>     2: LTO-4
> Select Storage resource (1-2): 2
> Enter autochanger slot: 1
> 3301 Issuing autochanger "loaded? drive 0" command.
> 3302 Autochanger "loaded? drive 0", result: nothing loaded.
> 3304 Issuing autochanger "load slot 1, drive 0" command.
> 3305 Autochanger "load slot 1, drive 0", status is OK.
> 3905 Device "LTO-4" (/dev/nsa0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.

I would run the btape tests that are in the manual to test the
operation of your autochanger. Some autochangers / operating systems
need the user to modify the mtxchanger script to work with their
changer.



> *
> === end of console output ===
>
> === part of sd.conf ===
> #
> # Overland ARCVault12
> #
> Device {
>  Name = LTO-4
>  Media Type = LTO-4
>  Archive Device = /dev/nsa0
>  AutomaticMount = yes;               # when device opened, read it
>  AlwaysOpen = yes;
>  RemovableMedia = yes;
>  RandomAccess = no;
>  Maximum File Size = 5GB
>  Offline On Unmount = no
>  Hardware End of Medium = no
>  BSF at EOM = yes
>  Fast Forward Space File = yes
>  TWO EOF = yes
>  AutoChanger = yes
>  Autoselect = yes
>  Maximum Spool Size = 107374000000
>  Spool Directory = /r1/.stage
> }
>

You may need to add Drive Index=0 to the above, although I could be
wrong. I have a two drive changer.


-- 
John M. Drescher

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>