Hi,

On 5/14/2007 4:49 PM, Mike Vasquez wrote:
> Why is it that when I go to label tapes, and bacula begins its backup it
> starts on the last tape I labeled?

Quick answer: Because that tape is then in the drive, and thus the first 
choice to use for Bacula.

More stuff below...

> Here is the scenario.
> 
> I want to relabel some old tapes.  So I put tape 1 in slot 1, tape 2 in slot
> 2 and tape 3 in slot 3.  I open the console and do the following commands.
> label
> Autochanger
> Enter Volume name: Vol1
> Enter slot: 1
> Define Pools:  Default
> Then bacula issues commands to unload from it's present slot location and
> then loads slot 1.
> But because this older tape had a previous volume, Bacula will not label the
> Volume because it it already labeled.

Have you tried the 'relabel' command? That won't change the tape 
preference, but it will keep your catalog intact.

> So it fails to label the new Volume.
> I then umount the autochanger.
> 
> Now I open another terminal session and issue the commands:
> mt -f /dev/nst0 rewind
> mt -f /dev/nst0 weof
> mt -f /dev/nst0 rewind
> 
> I then mount the autochanger and begin the process of the label command as I
> did above.
> 
> I go through this process for Tape 2 and Tape 3.  

In the end, tape 3 is loaded, right?

> Now, when my backups begin at night, bacula begins its backup with Tape3. 
> How do I get bacula to begin it's backup to Tape 1?

By unloading this tape, I suppose... simply 'umount' followed by a 
'mount slot=0' which will tell Bacula it can operate the autochanger 
again, but this does not load a tape.

> bacula-dir.conf
> Pool {
>   Name = Default
>   Pool Type = Backup
>   Recycle = yes                       # Bacula can automatically recycle
> Volumes
>   AutoPrune = yes                     # Prune expired volumes
>   Volume Retention = 6 months         # six months
> 
> Bacula-sd.conf
> Autochanger {
>   Name = ToTape
>   Device = Drive-1
> # Device = Drive-2
>       Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg0
> }
> 
> Device {
>   Name = Drive-1                      #
>   Drive Index = 0
>   Media Type = LTO-1
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
> 
> Also, at times I get an error stating to mount a certain volume.  How is
> that done.  Normally when you mount the autochanger it will mount the last
> volume it was using.  How can you mount a specific Volume or is that not
> possible?

It is possible by giving the proper slot to to the mount command. On the 
other hand, it's not normally necessary, as Bacula simply uses whatever 
tape it finds, if that's suitable.

> I am using Bacula 2.0.3
> 
> TIA
> Mike

Hope this helps,

Arno

> 

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to