Bacula-users

Re: [Bacula-users] sg device node stickyness

2014-10-22 11:10:00
Subject: Re: [Bacula-users] sg device node stickyness
From: Bryn Hughes <linux AT nashira DOT ca>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 22 Oct 2014 08:06:19 -0700
On 14-10-22 01:24 AM, Robert Oschwald wrote:
> Using Bacula Server 7.0.4 on CentOS6_64.
>
> One thing which annoys me is that the sg device node for TapeAlert changes 
> with every reboot from /dev/sg4 to /dev/sg6 and vice versa.
> Is there any setting I can set in udev to get sticky device nodes for my tape 
> device changer device node?
>
> System has a LSI 3Ware  9650SE controller installed which is the one fighting 
> for sg device node with my HP Ultrium 4 SCA tape device.
>
> Thanks,
> Robert
>

I use the entries in /dev/tape/by-id/ on my servers - not sure if Centos 
has that implemented or not but it's the best way to ensure a consistent 
path to a device, even if it changes SCSI controllers or whatever:

$ ls -l /dev/tape/by-id/
total 0
lrwxrwxrwx 1 root root  9 Oct 17 07:30 
scsi-1IBM_33622LX_002LX23B4384_LL0 -> ../../sg3
lrwxrwxrwx 1 root root  9 Oct 17 07:30 scsi-1IBM_ULT3580-TD3_1210240676 
-> ../../st0
lrwxrwxrwx 1 root root 10 Oct 17 07:30 
scsi-1IBM_ULT3580-TD3_1210240676-nst -> ../../nst0

Even if you move the tape drive to another machine, your config stays 
the same - my changer will always be on 
/dev/tape/by-id/scsi-1IBM_33622LX_002LX23B4384_LL0 and the drive itself 
will always be at /dev/tape/by-id/scsi-1IBM_ULT3580-TD3_1210240676

Now, if you happen to replace a tape drive or something you will need to 
update the config, but no matter what else happens on the server the 
/dev/tape/by-id (and /dev/disk/by-id entries for that matter) will stay 
the same.

Bryn

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>