Bacula-users

[Bacula-users] I need a little advice how to auto label new tapes for my pool

2009-03-25 08:10:56
Subject: [Bacula-users] I need a little advice how to auto label new tapes for my pool
From: ElmarRath AT systemcompetence DOT de
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 25 Mar 2009 12:37:41 +0100

Hello,

this is the first time, that I try to get Bacula running. At the moment the system looks good, but can someone advice me - what I must do - so that Bacula will label new tapes automatically? I tried to add volumes to my pool, but all new volumes got an diffrent slot. e.g.: Save_0001 got Slot 0, Save_0002 got Slot 1, Save_0003 got Slot2.  The funny think is, that the LTO4 has only one slot. So my question would be, how can I change the slot of the volumes. Or how can I remove all the wrong tapes from the pool and add new Volumes with the correct slots. At the moment I label my tapes manually, but that is nothing that I want that my peers schould do, when I'm on easter holiday.

I'm grateful to any advice, of what I did wrong.

Best regards

Wolf-Elmar Rath


Here are some screenshots from the dir and fd config files and the bacula console:



*list jobs
+-------+----------------------+---------------------+------+-------+----------+-------------+-----------+
| JobId | Name                 | StartTime           | Type | Level | JobFiles | JobBytes    | JobStatus |
+-------+----------------------+---------------------+------+-------+----------+-------------+-----------+
| 1     | Nightly-Save-bocsles | 2009-03-25 09:28:51 | B    | F     | 766510   | 33543328966 | T         |
+-------+----------------------+---------------------+------+-------+----------+-------------+-----------+
*lis volumes
Pool: Default
No results to list.
Pool: Scratch
No results to list.
Pool: TagesPool
+---------+------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName       | VolStatus | Enabled | VolBytes    | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1       | BoC_Save_0001    | Append    | 1       | 0           | 0        | 432000       | 1       | 0    | 0         | LTO-4     | 0                   |
| 2       | BoC_Save_0002    | Append    | 1       | 0           | 0        | 432000       | 1       | 1    | 0         | LTO-4     | 0                   |
| 3       | BoC_Save_0003    | Append    | 1       | 0           | 0        | 432000       | 1       | 2    | 0         | LTO-4     | 0                   |
| 4       | BoC_Save_0004    | Append    | 1       | 0           | 0        | 432000       | 1       | 3    | 0         | LTO-4     | 0                   |
| 5       | BoC_Save_0005    | Append    | 1       | 0           | 0        | 432000       | 1       | 4    | 0         | LTO-4     | 0                   |
| 6       | BoC_Save_0006    | Append    | 1       | 0           | 0        | 432000       | 1       | 5    | 0         | LTO-4     | 0                   |
| 7       | BoC_Save_0007    | Append    | 1       | 0           | 0        | 432000       | 1       | 6    | 0         | LTO-4     | 0                   |
| 8       | BoC_Save_0008    | Append    | 1       | 0           | 0        | 432000       | 1       | 7    | 0         | LTO-4     | 0                   |
| 9       | BoC_Save_0009    | Append    | 1       | 0           | 0        | 432000       | 1       | 8    | 0         | LTO-4     | 0                   |
| 10      | BoC_Save_0010    | Append    | 1       | 0           | 0        | 432000       | 1       | 9    | 0         | LTO-4     | 0                   |
| 11      | BoC_Save_0011    | Append    | 1       | 0           | 0        | 432000       | 1       | 10   | 0         | LTO-4     | 0                   |
| 12      | BoC_Save_0012    | Append    | 1       | 0           | 0        | 432000       | 1       | 11   | 0         | LTO-4     | 0                   |
| 13      | BoC_Save_0013    | Append    | 1       | 0           | 0        | 432000       | 1       | 12   | 0         | LTO-4     | 0                   |
| 14      | BoC_Save_0014    | Append    | 1       | 0           | 0        | 432000       | 1       | 13   | 0         | LTO-4     | 0                   |
| 15      | BoC_Save_0015    | Append    | 1       | 0           | 0        | 432000       | 1       | 14   | 0         | LTO-4     | 0                   |
| 16      | BoC_Save_0016    | Append    | 1       | 0           | 0        | 432000       | 1       | 15   | 0         | LTO-4     | 0                   |
| 17      | BoC_Save_0017    | Append    | 1       | 0           | 0        | 432000       | 1       | 16   | 0         | LTO-4     | 0                   |
| 18      | BoC_Save_0018    | Append    | 1       | 0           | 0        | 432000       | 1       | 17   | 0         | LTO-4     | 0                   |
| 19      | BoC_Save_0019    | Append    | 1       | 0           | 0        | 432000       | 1       | 18   | 0         | LTO-4     | 0                   |
| 20      | BoC_Save_0020    | Append    | 1       | 0           | 0        | 432000       | 1       | 19   | 0         | LTO-4     | 0                   |
| 21      | BoC_Save_0021    | Append    | 1       | 0           | 0        | 432000       | 1       | 20   | 0         | LTO-4     | 0                   |
| 22      | BoC_Save_0022    | Append    | 1       | 0           | 0        | 432000       | 1       | 21   | 0         | LTO-4     | 0                   |
| 23      | BoC_Save_0023    | Append    | 1       | 0           | 0        | 432000       | 1       | 22   | 0         | LTO-4     | 0                   |
| 24      | BoC_Save_0024    | Append    | 1       | 0           | 0        | 432000       | 1       | 23   | 0         | LTO-4     | 0                   |
| 25      | BoC_Save_0025    | Append    | 1       | 0           | 0        | 432000       | 1       | 24   | 0         | LTO-4     | 0                   |
| 26      | BoC_Save_0026    | Append    | 1       | 0           | 0        | 432000       | 1       | 25   | 0         | LTO-4     | 0                   |
| 27      | BoC_Save_0027    | Append    | 1       | 0           | 0        | 432000       | 1       | 26   | 0         | LTO-4     | 0                   |
| 28      | BoC_Save_0028    | Append    | 1       | 0           | 0        | 432000       | 1       | 27   | 0         | LTO-4     | 0                   |
| 29      | BoC_Save_0029    | Append    | 1       | 0           | 0        | 432000       | 1       | 28   | 0         | LTO-4     | 0                   |
| 30      | BoC_Save_0030    | Append    | 1       | 0           | 0        | 432000       | 1       | 29   | 0         | LTO-4     | 0                   |
| 31      | BoC_Save_023     | Append    | 1       | 64512       | 0        | 432000       | 1       | 0    | 0         | LTO-4     | 0                   |
| 32      | BoC_Save_0240001 | Append    | 1       | 0           | 0        | 432000       | 1       | 0    | 0         | LTO-4     | 0                   |
| 33      | BoC_Save_024     | Append    | 1       | 33715325952 | 34       | 432000       | 1       | 0    | 0         | LTO-4     | 2009-03-25 11:08:59 |
+---------+------------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*




bacula-dir.conf:

#########################_____________SC-Change________________

Storage {
 Name = LTO4
 Address = bocsles
 SDPort = 9103
 Password = "**************"
 Device = LTO4
 Media Type = LTO-4
}
Job {
 Name = "Nightly-Save-bocsles"
 Type = Backup
 Level = Full
 Client = bocsles-fd
 FileSet = "BOC_Full_Set"
 Messages = Standard
 Storage = LTO4
 Schedule = "NightlySave"
 Pool = TagesPool
 Priority = 10
}

Schedule {
 Name = "NightlySave"
 Run = mon-fri at 02:01


}

FileSet {
 Name = "BOC_Full_Set"
 Include {
        Options {
        signature = MD5
        #compression = GZIP
                }
        File = /
        File = /usr
        File = /var
        File = /opt
        File = /home
        }
 Exclude {
        File = /proc
        File = /sys
}
}

Pool {
 Name = TagesPool
 Pool Type = Backup
 AutoPrune = yes;
 Recycle = yes;
 Volume Retention = 5 days
 #Accept Any Volume = yes;
 Label Type = Bacula;
 Label Format = "BoC_Save-";

}

#####________________ENDE_SC-Change_________________________#####_


bacula-sd.conf:


#############___________SC-Config______________
Device {
 Name = LTO4
 Media Type = LTO-4
 Archive Device =/dev/st1
 Check Labels = yes;
 Label Type = Bacula;
 LabelMedia = yes;
 Random Access = no;
 AutomaticMount = yes;
 RemovableMedia = yes;
 AlwaysOpen = yes;
}

############__________SC-Config _Ende___________






Mit freundlichen Gruessen


Wolf-Elmar Rath

SYSTEM COMPETENCE GmbH
Ohlendorfer Strasse 40
21220 Seevetal

Telefon: 04185-77-0
Telefax: 04185-77-440
Email: elmar.rath AT systemcompetence DOT de

Sitz der Gesellschaft: Seevetal
Geschäftsführer: Sven Hannemann, Martin Pranzner, Rigo Rothenbröker
Handelsregister: HRB 111223, Amtsgericht Lüneburg
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
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>
  • [Bacula-users] I need a little advice how to auto label new tapes for my pool, ElmarRath <=