Bacula-users

Re: [Bacula-users] Debian Squeeze (6, current) to Wheezy (7, testing) broke mtx

2012-07-05 20:48:12
Subject: Re: [Bacula-users] Debian Squeeze (6, current) to Wheezy (7, testing) broke mtx
From: Jim Barber <jim.barber AT ddihealth DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 06 Jul 2012 08:24:37 +0800
On 6/07/2012 5:41 AM, comport3 wrote:
> Hi All,
> 
> Performing a test upgrade of our Debian Squeeze server to the new Wheezy 
> release has broken the mtx package.
> 
> MTX relies on a /dev/sg* device (under Squeeze, the autochanger was /dev/sg4) 
> - however under Wheezy there is only /dev/sch0.
> 
> Trying to run mtx against it returns:
> 
> mtx -f /dev/sch0
> /dev/sch0 is not an sg device, or old sg driver
> 
> lsscsi -g
> [0:0:32:0]   enclosu DP       BACKPLANE        1.05  -          -        
> [0:2:0:0]    disk    DELL     PERC 6/i         1.22  /dev/sda   -        
> [1:0:0:0]    cd/dvd  HL-DT-ST DVD-ROM GDR-T10N 1.02  /dev/sr0   -        
> [3:0:17:0]   tape    IBM      ULT3580-TD4      B710  /dev/st0   -        
> [3:0:17:1]   mediumx IBM      3573-TL          9t30  /dev/sch0  -        
> [3:0:18:0]   tape    IBM      ULT3580-TD4      B710  /dev/st1   -
> 
> 
> This is possibly a link to someone encountering the same problem: 
> https://groups.google.com/forum/?fromgroups#!topic/linux.debian.bugs.dist/6thALMZOr8k
> 
> Anyone got any ideas?

Yes, I raised that Debian bug/wish-list item:

        http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657948

I have just held my udev package at the version that isn't broken (Debian 
package version 172-1).
But for a fresh install that wouldn't be an option.

The change removed the following lines from  /lib/udev/rules.d/80-drivers.rules

SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", \
                                        RUN+="/sbin/modprobe -b sg"

You you probably put that rule into your own local file underneath the 
/etc/udev/rule.d/ directory.
Failing that, manually running '/sbin/modprobe -b sg' at the right time would 
probably also do the trick.

Regards,

----------
Jim Barber
DDI Health

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users