I am really at the end of my rope, and have the same question that seems to
get asked (but not answered, like this person: 
http://bacula.10910.n7.nabble.com/newbie-problem-labeling-adding-tapes-to-pool-td58780.html)


I have a bacula system 7.0, and a set of new tapes. I try to label the tapes one
at a time, which seems to work. I called them Vol00-01, Vol00-02, etc. They then
come back in the catalog as Vol01-01, Vol01-02, etc. I think they do this as
I had the Auto label set to one, and they got labeled. 

Now when I do list media, I see nothing. I can not get it to recognize any
of my blank tapes. I would like to try to sort of blow away my database
or its current memory of what I have and start over. Does anyone know
a good short FAQ on how to:

Delete the current catalog, media, pools
Relabel all of my current tapes (they are new and blank, but I think they have 
a label)
Add them to a pool
Get them to show up as media


Here is some current output, and it is incorrect int hat it thinks the volume
names are one thing, but the labels are different, and nothing shows up under
pools:



*status slots
Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "LTO5" has 32 slots.
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "list" command.
 Slot |   Volume Name    |   Status  |     Media Type       |      Pool         
 |
------+------------------+-----------+----------------------+--------------------|
    1*|         Vol01-01 |         ? |                    ? |                  
? |
    2*|         Vol01-02 |         ? |                    ? |                  
? |
    3*|         Vol01-03 |         ? |                    ? |                  
? |
    4*|         Vol01-04 |         ? |                    ? |                  
? |
    5*|         Vol01-05 |         ? |                    ? |                  
? |
    6*|         Vol01-06 |         ? |                    ? |                  
? |
    7*|         Vol01-07 |         ? |                    ? |                  
? |
    8*|         Vol01-08 |         ? |                    ? |                  
? |
    9*|         Vol01-09 |         ? |                    ? |                  
? |
   10*|         Vol01-10 |         ? |                    ? |                  
? |
   11*|         Vol01-11 |         ? |                    ? |                  
? |
   12*|         Vol01-12 |         ? |                    ? |                  
? |
   13*|         Vol01-13 |         ? |                    ? |                  
? |
   14*|         Vol01-14 |         ? |                    ? |                  
? |
   15*|         Vol01-15 |         ? |                    ? |                  
? |
   16*|         Vol01-16 |         ? |                    ? |                  
? |
   17*|         Vol01-17 |         ? |                    ? |                  
? |
   18*|         Vol01-18 |         ? |                    ? |                  
? |
   19*|         Vol01-19 |         ? |                    ? |                  
? |
   20*|         Vol01-20 |         ? |                    ? |                  
? |
   21 |                  |           |                      |                   
 |
   22 |                  |           |                      |                   
 |
   23 |                  |           |                      |                   
 |
   24 |                  |           |                      |                   
 |
   25 |                  |           |                      |                   
 |
   26 |                  |           |                      |                   
 |
   27 |                  |           |                      |                   
 |
   28 |                  |           |                      |                   
 |
   29 |                  |           |                      |                   
 |
   30 |                  |           |                      |                   
 |
   31 |                  |           |                      |                   
 |
   32 |                  |           |                      |                   
 |


*list media
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Scratch
No results to list.
*list volumes
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Scratch
No results to list.
*update slots
Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "LTO5" has 32 slots.
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "list" command.
Volume "Vol01-01" not found in catalog. Slot=1 InChanger set to zero.
Volume "Vol01-02" not found in catalog. Slot=2 InChanger set to zero.
Volume "Vol01-03" not found in catalog. Slot=3 InChanger set to zero.
Volume "Vol01-04" not found in catalog. Slot=4 InChanger set to zero.
Volume "Vol01-05" not found in catalog. Slot=5 InChanger set to zero.
Volume "Vol01-06" not found in catalog. Slot=6 InChanger set to zero.
Volume "Vol01-07" not found in catalog. Slot=7 InChanger set to zero.
Volume "Vol01-08" not found in catalog. Slot=8 InChanger set to zero.
Volume "Vol01-09" not found in catalog. Slot=9 InChanger set to zero.
Volume "Vol01-10" not found in catalog. Slot=10 InChanger set to zero.
Volume "Vol01-11" not found in catalog. Slot=11 InChanger set to zero.
Volume "Vol01-12" not found in catalog. Slot=12 InChanger set to zero.
Volume "Vol01-13" not found in catalog. Slot=13 InChanger set to zero.
Volume "Vol01-14" not found in catalog. Slot=14 InChanger set to zero.
Volume "Vol01-15" not found in catalog. Slot=15 InChanger set to zero.
Volume "Vol01-16" not found in catalog. Slot=16 InChanger set to zero.
Volume "Vol01-17" not found in catalog. Slot=17 InChanger set to zero.
Volume "Vol01-18" not found in catalog. Slot=18 InChanger set to zero.
Volume "Vol01-19" not found in catalog. Slot=19 InChanger set to zero.
Volume "Vol01-20" not found in catalog. Slot=20 InChanger set to zero.



My configs:

In bacula-sd.conf:

Autochanger {
  Name = LTO5
  Device = Drive-1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}

Device {
  Name = Drive-1
#  Drive Index = 0
  Device Type = Tape
  Media Type = LTO-5
  Archive Device = /dev/nst0
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
  AutoChanger = yes;
  Label Media = yes;                   # lets Bacula label unlabeled media
  Random Access = No;
  Automatic Mount = yes;               # when device opened, read it
  Removable Media = yes;
  Always Open = yes;
  Maximum Concurrent Jobs = 5
}


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to