Il 27/03/2017 22:23, Tomasz Michno ha scritto:
> [...]
> 3306 Issuing autochanger "listall" command.
> Slot | Volume Name | Status | Media Type | Pool
> |
> ------+------------------+-----------+----------------+--------------------------|
> [...]
> 21 | BB0025L5 | Append | LTO5 |
> Full_Tape |
> 22*| CLNU58L1 | ? | ? |
> ? |
> 23%| BB0044L5 | Append | LTO5 |
> Full_Tape |
> 24@| ? | ? | ? |
> ? |
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> What is this status marked "%" at position 23 and "@" at 24?
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I just went through a quick search within the source code (namely:
[...]/src/dird/ua_status.c) and.... if I correctly understood the code:
- "@" means the slot is an "IMPORT" slot (the slot you can use to
LOAD/UNLOAD tapes, WITHOUT pulling out the whole magazine, while the
library is working);
- "%" means the related tape is in the drive;
- "*" mens the slot it's hosting an unknown/unusable tape (BTW: in your
previous post, you had plenty of "*").
....but I'm not a "C language" master :-), so don't trust the above :-)
> *list storages
> +-----------+--------------+-------------+
> | StorageId | Name | AutoChanger |
> +-----------+--------------+-------------+
> | 1 | File | 0 |
> | 2 | LTO-5 | 0 |
> | 3 | IBM-Ultrium5 | 0 |
> | 4 | Tape | 0 |
> +-----------+--------------+-------------+
> *
> How I can remove Id 2 and 3 (I have only two files File.conf and Tape.conf in
> /etc/bareos/bareos-dir.d/storage/)?
> Why at Id 4 Autocharger is 0?
Unfortunately on my (old) Bareos there is NO "list storages" command.
But.... in the catalog, I have:
|mysql> select * from Storage;||
||+-----------+--------------+-------------+||
||| StorageId | Name | AutoChanger |||
||+-----------+--------------+-------------+||
||| 1 | TAPE_DOPPIO | 1 |||
||| 2 | TAPE_SINGOLO | 1 |||
||+-----------+--------------+-------------+||
||
|And this matches the reality: I've _TWO_ tape libraries: one with a single
drive; another with two drives. Both of them are "autochanger".
The above also matches my "bareos-dir.conf", where I have two "storage"
sections:
-----------------------------------
|Storage {||
|| Name = TAPE_DOPPIO||
|| Media Type = DT-LTO-3||
|| Device = LTO3-DT||
|| [...]
|| Autochanger = yes||
||}||
||
||# 09-06-14 solo TAPE_DOPPIO||
||Storage {||
|| Name = TAPE_SINGOLO||
|| Media Type = ST-LTO-3||
|| Device = LTO3-ST||
|| [...]
|| Autochanger = yes||
||}|
-----------------------------------
So, as for your output, if your "dir.conf" hosts only two "Storage"
sections, my "guess" is that you've a "broken" catalog, that, for some
reasons, got "corrupted"/"misaligned" with the "dir.conf".
Bye,
DV
--
Damiano Verzulli
e-mail: [email protected]
---
possible?ok:while(!possible){open_mindedness++}
---
"...I want to serve my diskless Beowulf nodes via iSCSI with LVM over
RAID5 on IDE disks ..."
Oliver Xymoron (mlist.linux.scsi)
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.