View Issue Details

IDProjectCategoryView StatusLast Update
0001546bareos-corebconsolepublic2023-06-28 12:17
Reporterevert Assigned Toarogge  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSDebianOS Version12
Product Version22.1.0 
Summary0001546: bconsole has missing info when I request status of tape storage
DescriptionWhen I go to status -> storage -> tape, I get:
[snip]
Device "tapedrive-0" (/dev/nst0) is mounted with:
    Volume: AAF274L9
    Pool: *unknown*
    Media type: LTO
    Slot 5 is loaded in drive 0.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
[snip]

However, when I enter 'list volumes pool=Incremental', I get:
+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | storage |
+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| 2 | Incremental-0002 | Append | 1 | 24,441,998 | 0 | 2,592,000 | 1 | 0 | 0 | File | 2023-06-27 21:00:00 | File |
| 5 | AAF274L9 | Append | 1 | 44,477,346,816 | 51 | 2,592,000 | 1 | 5 | 1 | LTO | 2023-06-27 22:51:18 | Tape |
+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+

Steps To Reproducebconsole
status -> storage -> tape

compare to:

list volumes pool=Incremental
Tagsbconsole

Activities

arogge

arogge

2023-06-28 10:04

manager   ~0005105

what information exactly are you missing?

Running "status storage" gives runtime information from the SD.
In contrast "list volumes" provides information from the catalog.
evert

evert

2023-06-28 10:09

reporter   ~0005106

Whoops, I forgot to mention...

The status storage lists AAF274L9 as being pool 'Unknown', whereas 'list volumes' knows that it's in pool Incremental. Shouldn't 'status storage' know this as well?
arogge

arogge

2023-06-28 10:16

manager   ~0005107

Not neccessarily. The SD doesn't really "know" about pools (unless the director told it something).
If - for example - the SD is started with a volume mounted it will determine the volume name (by simply reading its volume label), but it won't be able to determine the pool, as that information is in the catalog on the director only. Thus the SD will show the pool as "unknown".
evert

evert

2023-06-28 11:47

reporter   ~0005108

Hmm, ok. But then why show 'Pool: *unknown*' in the first place if the SD never knows the pool anyway? Isn't it less confusing to simply omit the line?
arogge

arogge

2023-06-28 11:48

manager   ~0005109

I think there are situations where the SD knows the pool, but tbh I'm not sure about that.
Feel free to open a pull request for that change. Should be rather trivial.
evert

evert

2023-06-28 11:52

reporter   ~0005110

That would be a bit outside my skill set, so I think I'll pass �

Thanks for the swift and enlightening replies.
arogge

arogge

2023-06-28 12:17

manager   ~0005111

I'll close the issue, feel free to reopen it if something related comes up.

Issue History

Date Modified Username Field Change
2023-06-28 08:44 evert New Issue
2023-06-28 08:44 evert Tag Attached: bconsole
2023-06-28 10:04 arogge Assigned To => arogge
2023-06-28 10:04 arogge Status new => feedback
2023-06-28 10:04 arogge Note Added: 0005105
2023-06-28 10:09 evert Note Added: 0005106
2023-06-28 10:09 evert Status feedback => assigned
2023-06-28 10:16 arogge Status assigned => feedback
2023-06-28 10:16 arogge Note Added: 0005107
2023-06-28 11:47 evert Note Added: 0005108
2023-06-28 11:47 evert Status feedback => assigned
2023-06-28 11:48 arogge Note Added: 0005109
2023-06-28 11:52 evert Note Added: 0005110
2023-06-28 12:17 arogge Status assigned => resolved
2023-06-28 12:17 arogge Resolution open => no change required
2023-06-28 12:17 arogge Note Added: 0005111
2023-06-28 12:17 arogge Status resolved => closed