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

2009-10-08 Thread Kael Fischer
I think I found the problem.

As I said I reset the tapes with:
mt rewind; mt weof ; mt rewind

In that case (although 'label barcodes' seemed to work):
3305 Autochanger load slot 1, drive 0, status is OK.
3905 Device LTO-4 (/dev/nsa0) open but no Bacula volume is mounted.

Now I reset the tapes in the same way but with 'mt weof 2'.  This gives:
3305 Autochanger load slot 1, drive 0, status is OK.
Wrote label to prelabeled Volume AHK836L4 on device LTO-4 (/dev/nsa0)

Does this seem plausible?

-Kael

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


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

2009-10-07 Thread John Drescher
 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     |
 -00-00 00:00:00 |
 |       3 | AHK837L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    2 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       4 | AHK829L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    3 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       5 | AHK834L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    4 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       6 | AHK838L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    5 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       7 | AHK839L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    6 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       8 | AHK825L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    7 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |       9 | AHK835L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    8 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |      10 | AHK828L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |    9 |         1 | LTO-4     |
 -00-00 00:00:00 |
 |      11 | AHK826L4   | Append    |       1 |            64,512 |
   0 |   94,608,000 |       1 |   10 |         1 | LTO-4     |
 -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