On Fri, 2007-06-15 at 13:34 -0700, Craig White wrote:
> On Fri, 2007-06-15 at 21:06 +0200, Andreas Helmcke wrote:
> > Hello,
> > 
> > Craig White wrote:
> > > Linux (RHELv5 if that matters)
> > > 
> > > *** from command line as root, this works fine...
> > > 
> > > # sh -c 'smartctl -H -d scsi -l error /dev/nst0'
> > > smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce
> > > Allen
> > > Home page is http://smartmontools.sourceforge.net/
> > > 
> > > [...] output cut
> > > 
> > > *** but within bacula-sd.conf ***
> > > 
> > > 14-Jun 20:16 SRV1: Alert: smartctl version 5.36 [i686-redhat-linux-gnu]
> > > Copyright (C) 2002-6 Bruce Allen
> > > 14-Jun 20:16 SRV1: Alert: Home page is
> > > http://smartmontools.sourceforge.net/
> > > 14-Jun 20:16 SRV1: Alert: 
> > > 14-Jun 20:16 SRV1: Alert: Standard Inquiry (36 bytes) failed [Operation
> > > not permitted]
> > > 14-Jun 20:16 SRV1: Alert: Retrying with a 64 byte Standard Inquiry
> > > 14-Jun 20:16 SRV1: Alert: Standard Inquiry (64 bytes) failed [Operation
> > > not permitted]
> > > 14-Jun 20:16 SRV1: Alert: Request Sense failed, [Operation not
> > > permitted]
> > > 14-Jun 20:16 SRV1: Alert: 
> > > 14-Jun 20:16 SRV1: Alert: Error Counter logging not supported
> > > 14-Jun 20:16 SRV1: 3997 Bad alert command: sh -c 'smartctl -H -T
> > > permissive -T permissive -T permissive -d scsi -l error /dev/nst0':
> > > ERR=Child exited with code 6.
> > > 
> > > (the multiple -T permissive commands were suggested)
> > > 
> > > *** is there something I can do to make this command work or do I have
> > > to comment it out of conf file?
> > > 
> > 
> > Your error messages look a bit strange to me, but nonetheless I would 
> > suggest
> > to try to use the scsi generic device for the command (most probably 
> > /dev/sg0,
> > if you don't have more scsi-devices in your system), because the tape device
> > normally is held locked by the storage daemon.
> ----
> apparently /dev/sg2 would work - I changed it but it's already in the
> middle of a backup so it doesn't make sense to restart the bacula-sd
> daemon
----
nope - didn't work...permissions error

16-Jun 08:25 SRV1: Alert: smartctl version 5.36 [i686-redhat-linux-gnu]
Copyright (C) 2002-6 Bruce Allen
16-Jun 08:25 SRV1: Alert: Home page is
http://smartmontools.sourceforge.net/
16-Jun 08:25 SRV1: Alert: 
16-Jun 08:25 SRV1: Alert: Smartctl open device: /dev/sg2 failed:
Permission denied
16-Jun 08:25 SRV1: 3997 Bad alert command: sh -c 'smartctl -H -T
permissive -T permissive -T permissive -d scsi -l error /dev/sg2':
ERR=Child exited with code 2.

# ls -l /dev/sg2
crw------- 1 root root 21, 2 May 19 11:19 /dev/sg2

whereas

# ls -l /dev/nst0
crw-rw---- 1 root disk 9, 128 May 19 11:19 /dev/nst0

but tosses the 'Operation not permitted error' (listed in my original
post) when I use that designation (/dev/nst0) and yes, I checked, user
'bacula' is a member of 'disk' group

I have disabled it for now but there is probably a setting in udev that
would give 'disk' group permissions on device sg2

Craig


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to