SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
smartctl
Author Message
Post smartctl 
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/

TapeAlert: OK

Error counter log:
Errors Corrected by Total Correction
Gigabytes Total
ECC rereads/ errors algorithm
processed uncorrected
fast | delayed rewrites corrected invocations [10^9
bytes] errors
read: 0 0 0 0 0 2.003
0
write: 0 0 224 224 0 162.565
5

*** 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?

--
Craig White <craig < at > to...>

Post smartctl 
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.

Andreas

Post smartctl 
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

Thanks

--
Craig White <craig < at > to...>

Post smartctl 
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

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB