Re: [Bacula-users] How to start over again with tapes, catalog, slots, volumes?

2019-05-14 Thread Martin Simmons
> On Mon, 13 May 2019 15:54:48 -0500 (CDT), Robert Minvielle said:
> 
> 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 don't understand how list media can show nothing at this point, unless you
did something to the catalog to remove them again.

Let's hope that doesn't happen again :-)


>  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

To remove everything:

Stop all bacula daemons and run the drop_bacula_database script to completely
delete the catalog.  Remove any labels from tapes by running

mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof

for each tape.

Then recreate the bacula database and tables like you did initially.


> 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

The label command should do this.

__Martin


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


[Bacula-users] How to start over again with tapes, catalog, slots, volumes?

2019-05-13 Thread Robert Minvielle


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.