Usually bareos sd user is also member of "Tape" and Disk group which
greatly simplify access to that kind of devices.
Le vendredi 29 septembre 2023 à 21:30:03 UTC+2, Philip Dalrymple a écrit :
> OK THAT WAS IT
>
> A line needs to be added to /etc/sudoers file to allow the user (or group)
> bareos to run the mx-changer script
>
>
>
> On Friday, September 29, 2023 at 3:25:12 PM UTC-4 Philip Dalrymple wrote:
>
>> I enabled logging on the mtx-changer script and if I call it from the
>> command line I see entries in the log but not if.... Wait I may need to add
>> the user bareos to the sudoers
>>
>> Let me try that
>>
>> On Friday, September 29, 2023 at 3:20:31 PM UTC-4 Philip Dalrymple wrote:
>>
>>> I used bareos at my last company and just installed a qualstar Q40.
>>>
>>> The mtx-changer command works as I expect but the status slots storage
>>> does not
>>> (see below)
>>>
>>> Any Ideas on troubleshoting?
>>>
>>> my autochanger record is
>>>
>>> Autochanger {
>>> Name = QSTAR
>>> Changer Device = /dev/sch0
>>> Device = LTO8
>>> Changer Command = "/usr/bin/sudo /usr/lib/bareos/scripts/mtx-changer
>>> %c %o %S %a %d"
>>>
>>> }
>>>
>>> my device record is
>>>
>>> Device {
>>> Name = LTO8
>>> Media Type = LTO8
>>> Device Type = Tape
>>> Archive Device = /dev/st0
>>> Label Media = no; # yes for disk
>>> Random Access = No;
>>> Automatic Mount = yes; # when device opened, read it
>>> Removable Media = yes;
>>> Always Open = yes;
>>> Autochanger = yes;
>>> Maximum Concurrent Jobs = 1;
>>> Maximum Block Size = 1048576;
>>> }
>>>
>>>
>>> -----------------------------mtx-changer
>>> ➜ bareos-config git:(main) sudo /usr/lib/bareos/scripts/mtx-changer
>>> /dev/sch0 slots
>>> 40
>>> ➜ bareos-config git:(main) sudo /usr/lib/bareos/scripts/mtx-changer
>>> /dev/sch0 listall
>>> D:0:E
>>> S:1:F:1E0001L8
>>> S:2:F:1E0002L8
>>> S:3:F:1E0003L8
>>> S:4:F:1E0004L8
>>> S:5:F:1E0005L8
>>> S:6:F:1E0006L8
>>> S:7:F:1E0007L8
>>> S:8:F:1E0008L8
>>> S:9:F:1E0009L8
>>> S:10:F:1E0010L8
>>> S:11:F:1E0011L8
>>> S:12:F:1E0012L8
>>> S:13:F:1E0013L8
>>> S:14:F:1E0014L8
>>> S:15:F:1E0015L8
>>> S:16:F:1E0016L8
>>> S:17:F:1E0017L8
>>> S:18:F:1E0018L8
>>> S:19:F:1E0019L8
>>> S:20:F:1E0020L8
>>> S:21:F:CLN001L1
>>> S:22:F:CLN002L1
>>> S:23:E
>>> S:24:E
>>> S:25:E
>>> S:26:E
>>> S:27:E
>>> S:28:E
>>> S:29:E
>>> S:30:E
>>> S:31:E
>>> S:32:E
>>> S:33:E
>>> S:34:E
>>> S:35:E
>>> I:36:E
>>> I:37:E
>>> I:38:E
>>> I:39:E
>>> I:40:E
>>>
>>> ---------------------------- bconsol
>>>
>>> status slots storage
>>> Automatically selected Storage: bstore-eds1-sd
>>> Automatically selected Catalog: MyCatalog
>>> Using Catalog "MyCatalog"
>>> Connecting to Storage daemon bstore-eds1-sd at bstore-eds1.rhsys.co:9103
>>> <https://events.trustifi.com/api/o/v1/click/651725b878177f41352efe5a/fff7ae/350744/66c20a/ef3cee/594f41/159064/a2c69d/95e94d/e8666a/ef542d/85972d/627493/9a11d6/1f4096/1d247f/d28c73/903182/8c9ea3/b1a90c/7343c1/c585a4/a64405/f00a46/6c8fb5/f48541/4ade78/3fd4f5/9fe4f2/9712cc/db2753/8b4f62/9f663b/7b0741/a93701/37704b/695e2f/616b4e/a68956/d5b8ef/07fdb5/377093/c27c52/e1d919/b9d9e7/3a02c5/91267a/c15521/7d78c4/0c420a/f05cab/977c7a/e7c534/6a4296/8d47de/40a8ff/b0d5c7/025180/53ac72/8afb0f/c76b6b/ae2548/507f7c/a99858/05d76b/4a5214/50918b/d3bd24/2f57e6/e0bbbb/7baf16/4d8066/a78b16/7071bf/d80d99/8d9e27/571f0f/a8a912/40e838/afecf1/bbce1c/d826a4/2a59f6/e6188e/debc9f/1e278e/0ebaa6/29a433/f39e96/4f2317/496e56/0d45de>
>>>
>>> ...
>>> 3306 Issuing autochanger "slots" command.
>>> Device "LTO8" has 0 slots.
>>> No slots in changer to scan.
>>> *
>>>
>>
--
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/f7cc3801-13b0-4b09-a8bb-4779e0b354d5n%40googlegroups.com.