We have a Overland Storage Neo 8000 with two FC LTO3 drives,
and almost every time the SD is rebooted, the drives swap places. Drive0 will
be /dev/st0 and Drive1 will be /dev/st1, then sometimes after reboot Drive0
will be /dev/st1 and Drive1 will be /dev/st0. It doesn’t happen all the
time and I thought udev would take care of keeping the drive the same across
reboots like the Ethernet cards. Does anyone have some wisdom that they can
impart to me on this problem?
Relevant part of bacula-sd.conf:
Autochanger {
Name = Neo8000
Device = Drive-0
Device = Drive-1
Changer Command =
"/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg4
}
Device {
Name = Drive-0 #
Drive Index = 0
Media Type = LTO3
Archive Device = /dev/st1
AutomaticMount =
yes;
# when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Spool Directory = /backup/spool
Maximum Network Buffer Size = 65536
# Enable the Alert command only if you have the mtx
package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep
TapeAlert|cat'"
# If you have smartctl, enable this, it has more info
than tapeinfo
Alert Command = "sh -c 'smartctl -H -l error
%c'"
}
Device {
Name =
Drive-1
#
Drive Index = 1
Media Type = LTO3
Archive Device = /dev/st0
AutomaticMount =
yes;
# when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Spool Directory = /backup/spool
Maximum Network Buffer Size = 65536
# Enable the Alert command only if you have the mtx
package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep
TapeAlert|cat'"
# # If you have smartctl, enable this, it has more
info than tapeinfo
Alert Command = "sh -c 'smartctl -H -l error
%c'"
}
Thanks,
Robert
Robert LeBlanc
College of Life Sciences Computer Support
Brigham Young University
(801) 422-1882
leblanc AT byu DOT edu