Bacula-users

Re: [Bacula-users] Fibre Channel drives keep switching

2008-11-19 11:55:44
Subject: Re: [Bacula-users] Fibre Channel drives keep switching
From: Josh Fisher <jfisher AT pvct DOT com>
To: Robert LeBlanc <robert AT leblancnet DOT us>
Date: Wed, 19 Nov 2008 11:38:30 -0500
Robert LeBlanc wrote:
>
> 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?
>

You will have to configure udev rules to create an alias (ie. symlink) 
to the device node that udev assigns to each drive. Then use the alias, 
rather than the real device node, in you bacula-sd.conf file. You should 
be able to the serial number of the drives as a unique identifier in a 
udev rule that creates an alias at a fixed location. See 
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html for udev 
rule writing info.

> 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
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users