Thanks for all the help. I decided to use the WWID of the drives, as it was about the only clearly unique thing that I could find. It also is robust to changes in the FC fabric. I've created a file in /etc/udev/rules.d/local.rules with the following:
# tape changer KERNEL=="sg*[0-9]", ENV{ID_SERIAL}=="200900d0715a2007a", SYMLINK+="tape/neo8000" # first tape drive by WWID KERNEL=="st*[0-9]", ENV{ID_PATH}=="*500110a00058bd40*", SYMLINK+="tape/drive0" # second tape drive by WWID KERNEL=="st*[0-9]", ENV{ID_PATH}=="*500110a00058c2f0*", SYMLINK+="tape/drive1" Hope that can be of help to anyone else. I spent most of the day chasing this tail. Robert LeBlanc College of Life Sciences Computer Support Brigham Young University (801) 422-1882 [EMAIL PROTECTED] > -----Original Message----- > From: Alan Brown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2008 10:37 AM > To: Robert LeBlanc > Cc: John Drescher; bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] Fibre Channel drives keep switching > > On Wed, 19 Nov 2008, Robert LeBlanc wrote: > > > > You can write a udev rule to lock the drives down. I wrote one > awhile > > > back to keep the changer device the same. > > > > > > dev6 ~ # cat /etc/udev/rules.d/55-bacula.rules > > > SUBSYSTEM=="scsi",ATTRS{vendor}=="EXABYTE*",ATTRS{type}=="8", > > > SYMLINK+="autochanger1 changer" > > For the drives you're better off creating udev rules to create > something > like /dev/scsi/ntape/{drive-WWID} and /dev/scsi/generics/{WWID} > > These won't change no matter where on the scsi/fabric the drive is. > > I've had a request ticket in with Redhat to implement this on RHEL4/5 > for > a long time, ditto with the /dev/sg/ devices for the same reason. > > (Not to mention a strong wish for multipath support for tapes and > generics...) > ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users