When I enable setdebug, I get this. I don't understand where is problem. I
renamed GlusterStorage to GlusterDevice for my consistency, but --xc says
the same names in director and storage.
24-Aug-2023 22:11:16.466717 bareos-sd (150): stored/reserve.cc:583-6692 Try
match res=FileStora
ge0004 wanted GlusterDevice
24-Aug-2023 22:11:16.466740 bareos-sd (150): stored/reserve.cc:583-6692 Try
match res=FileStora
ge0005 wanted GlusterDevice
24-Aug-2023 22:11:16.466764 bareos-sd (150): stored/reserve.cc:522-6692 No
usable device found.
24-Aug-2023 22:11:16.466786 bareos-sd (150): stored/reserve.cc:530-6692
Leave find_suit_dev: no
dev found.
24-Aug-2023 22:11:16.466810 bareos-sd (150): stored/reserve.cc:339-6692
Fail. !suitable_device
|| !WaitForDevice
24-Aug-2023 22:11:16.467129 bareos-sd (150): stored/reserve.cc:359-6692
>dird: 3924 Device "Glu
sterDevice" not in SD Device resources or no matching Media Type.
24-Aug-2023 22:11:16.467608 bareos-sd (100): lib/bsys.cc:669-6692
write_last_jobs seek to 192
24-Aug-2023 22:11:16.467699 bareos-sd (100): lib/jcr.cc:271-6692
FreeCommonJcr: 7f312c0153f0
==> /var/lib/bareos/bareos-dir.trace <==
24-Aug-2023 22:11:16.468131 bareos-dir (100): cats/sql_query.cc:131-6692
called: bool BareosDb:
:SqlQuery(const char*, int) with query INSERT INTO Log (JobId, Time,
LogText) VALUES (6692,'202
3-08-24 22:11:16','bareos-sd JobId 6692: Fatal error: Device reservation
failed for JobId=6692:
')
24-Aug-2023 22:11:16.476371 bareos-dir (100): dird/msgchan.cc:255-6692
<stored: 3924 Device "Gl
usterDevice" not in SD Device resources or no matching Media Type.
24-Aug-2023 22:11:16.476740 bareos-dir (100): cats/sql_query.cc:131-6692
called: bool BareosDb:
:SqlQuery(const char*, int) with query INSERT INTO Log (JobId, Time,
LogText) VALUES (6692,'202
3-08-24 22:11:16','bareos-dir JobId 6692: Fatal error:
Storage daemon didn''t accept Device "GlusterDevice" because:
3924 Device "GlusterDevice" not in SD Device resources or no matching
Media Type.
Dne čtvrtek 24. srpna 2023 v 15:30:27 UTC+2 uživatel Bruno Friedmann napsal:
> Ok then I'm a bit cluless because I didn't find something wrong in what is
> shown.
>
> Maybe you want to use bareos-sd --xc and bareos-dir --xc to output your
> configuration in a flat way, and use grep or whatever tool to search what
> you expect, and finally find the place where it is wrongly defined.
>
>
> On Thursday, August 24, 2023 at 6:18:22 AM UTC+2 Pavel Mlčoch (pavkamlc)
> wrote:
>
>> Fewtimes all machine...
>>
>> Dne středa 23. srpna 2023 v 17:25:27 UTC+2 uživatel Bruno Friedmann
>> napsal:
>>
>>> Stupid question but did you restart the SD after defining the new
>>> device?
>>>
>>>
>>> On Wednesday, August 23, 2023 at 4:15:52 PM UTC+2 Pavel Mlčoch
>>> (pavkamlc) wrote:
>>>
>>>> Hello,
>>>>
>>>> I tried switch backup from mounted folder into Gluster volume, but it
>>>> doesn't work. I always get this, but GlusterStorage seems to be defined
>>>> correct. Is it a bug, or misconfiguration?
>>>>
>>>>
>>>>
>>>> *bareos-dir JobId 6637: Fatal error:Storage daemon didn't accept Device
>>>> "GlusterStorage" because:3924 Device "GlusterStorage" not in SD Device
>>>> resources or no matching Media Type.*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *cat /etc/bareos/bareos-sd.d/storage/bareos-sd.conf Storage { Name =
>>>> bareos-sd Maximum Concurrent Jobs = 20}*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *cat /etc/bareos/bareos-sd.d/device/GlusterDevice.conf Device { Name
>>>> = GlusterStorage Description = "Storage device using a Gluster backend."
>>>> #Archive Device = "GlusterStorage" Archive Device = "/tmp" Count = 5
>>>> Device Options = "uri=gluster://server1/sata/backup" Device Type = gfapi
>>>> Media Type = GlusterFile Label Media = yes Random Access = yes
>>>> Automatic Mount = yes Removable Media = no Always Open = no Maximum
>>>> Concurrent Jobs = 1; }*
>>>>
>>>> *cat /etc/bareos/bareos-dir.d/storage/Gluster.conf*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *Storage { Name = GlusterStorage Address = "backup3" Password =
>>>> "heslostorage" Device = GlusterStorage Media Type = GlusterFile }*
>>>>
>>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/a133b500-de71-4abc-a487-80ff1bbe97aen%40googlegroups.com.