Re: Bacula or Drive problem?
"Dr. Thorsten Brandau via Bacula-users" <[email protected]>
| Newsgroups | gmane.comp.bacula.user |
|---|---|
| Message-ID | <[email protected]> |
Udo Kaune schrieb am 15.06.25 um 12:21:
> Am 15.06.25 um 10:19 schrieb Dr. Thorsten Brandau via Bacula-users:
>>
>> Udo Kaune schrieb am 13.06.25 um 23:47:
>>> Hi Thorsten,
>>>
>>> Did you reboot the box recently and did by any chance your devices
>>> get reordered?
>>> What does lsscsi -g show and does that correspond to your
>>> bacula-sd.conf entries?
>>>
>>> Best regards, Udo
>>>
>> Hi Udo,
>>
>> yes, I regularily reboot the system for maintenance:
>>
>> sudo lsscsi -g
>> [0:0:0:0] disk Areca ARC-1883-VOL#000 R001 /dev/sda /dev/sg0
>> [0:0:0:1] disk Areca ARC-1883-VOL#001 R001 /dev/sdb /dev/sg1
>> [0:0:0:2] disk Areca Data6 R001 /dev/sdc /dev/sg2
>> [0:0:0:4] disk Areca VOL_Data4 R001 /dev/sdd /dev/sg3
>> [0:0:16:0] process Areca RAID controller R001 - /dev/sg4
>> [1:0:0:0] enclosu ATTO VirtualSES 0001 - /dev/sg6
>> [1:0:1:0] tape IBM ULTRIUM-HH9 R3G1 /dev/st0 /dev/sg7
>> [1:0:1:1] mediumx BDT FlexStor II 6.21 /dev/sch0 /dev/sg8
>>
>> That looks very susual and it worked in the last months with sg7
>> Now, just for the fun of it I used mtx -f /dev/sg8 status
>> additionally and got:
>
> |In Debian if you need a consistent device for the changer across
> reboots you will need to setup some udev rules:
>
> udevadm info -q all -a -n /dev/sch0 | grep -e vendor -e model
>
> ATTRS{model}=="FlexStor II "
> ATTRS{vendor}=="BDT "
> ...
>
> udevadm info -q all -a -n /dev/sg8 | grep -e vendor -e model
>
> ATTRS{model}=="FlexStor II "
> ATTRS{vendor}=="BDT "
> ...
>
> cat > /etc/udev/rules.d/80-tape-autochanger-devices.rules <<EOL
> #scsi generic device name
> SUBSYSTEM=="scsi_generic", ATTRS{vendor}=="BDT ",
> ATTRS{model}=="FlexStor II ", SYMLINK+="changer0"
> # block device name
> # SUBSYSTEM=="block", DRIVERS=="mt", ATTRS{vendor}=="BDT ",
> ATTRS{model}=="FlexStor II ", SYMLINK+="changer0_block"
> #
> EOL
>
> Beware of the attributes containing white space. There is no need for
> a changer block device for now. After reboot you should be able to use
> /dev/changer0 in your bacula-sd.conf autochanger setup and it will be
> consistent.
> |
|I will keep that in mind. For now I try to run /dev/tape/by-id/... as
device. I hope that will not change, too ;-)
Thanks for the help.
Cheers
T|
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users