Gluster storage not in SD Device resources or no matching Media Type

197 views
Skip to first unread message

Pavel Mlčoch (pavkamlc)

unread,
Aug 23, 2023, 10:15:52 AM8/23/23
to bareos-users
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
}

Bruno Friedmann

unread,
Aug 23, 2023, 11:25:27 AM8/23/23
to bareos-users
Stupid question but did you restart the SD after defining the new device? 

Pavel Mlčoch (pavkamlc)

unread,
Aug 24, 2023, 12:18:22 AM8/24/23
to bareos-users
Fewtimes all machine...

Dne středa 23. srpna 2023 v 17:25:27 UTC+2 uživatel Bruno Friedmann napsal:

Bruno Friedmann

unread,
Aug 24, 2023, 9:30:27 AM8/24/23
to bareos-users
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.

Pavel Mlčoch (pavkamlc)

unread,
Aug 24, 2023, 4:33:53 PM8/24/23
to bareos-users
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:

Andreas Rogge

unread,
Sep 18, 2023, 10:38:19 AM9/18/23
to bareos...@googlegroups.com
That Problem is a bit subtle...

You're using the Count parameter in your Device resource in the SD.
This will multiply your device, but the resulting devices will have
different names (i.e. there is a number added).

For a quick test, comment out the line "Count=X".

To make it work with count you'll need a file autochanger.

Hope that helps!

Best Regards,
Andreas

Am 24.08.23 um 22:33 schrieb Pavel Mlčoch (pavkamlc):
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages