S.M.A.R.T support is not available for this disk

I recently installed Rockstor and really like what is going on here over the others out there the interface is great I see that it is relatively new so to speak but I have not been able to get SMART to get the data from the drives on the system.

I would like to see temps for disk and motherboard added to the dash board whn you guys get a chance if this is not already in the works

So to my issue, These are 8, 2 TB WD drives, on a 3ware LSI 9750-8i raid controller, with an ASUS MB and 16 gig of ram and a 240 gb SSD for a boot drive, the disk are not in a array the are all set as single disk, when I was testing the other systems nas4free and freenas i was able to get this to work or it appeared to work.

I get the error below when access this info in the web ui

S.M.A.R.T support is not available for this disk (sdh)

Testing some on CLI i get the following, which looks like start is available but disabled and I have not be able to enable this on the drive, any tips or hints where to go next? How can i get this working i really want to start using rockstor I think is a great product and heads above the rest out there so

smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.5-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: LSI
Product: 9750-8i DISK
Revision: 5.12
User Capacity: 1,999,988,850,688 bytes [1.99 TB]
Logical block size: 512 bytes
Logical Unit id: 0x600050e042721600edba0000d14e0000
Serial number: omitted
Device type: disk
Local Time is: Wed Dec 23 22:44:44 2015 EST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
Temperature Warning: Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Error Counter logging not supported

Device does not support Self Test logging

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 7.9G 0 part [SWAP]
└─sda3 8:3 0 215.2G 0 part /mnt2/rockstor_rockstor
sdb 8:16 0 1.8T 0 disk
sdc 8:32 0 1.8T 0 disk
sdd 8:48 0 1.8T 0 disk
sde 8:64 0 1.8T 0 disk
sdf 8:80 0 1.8T 0 disk
sdg 8:96 0 1.8T 0 disk
sdh 8:112 0 1.8T 0 disk
sdi 8:128 0 1.8T 0 disk

/usr/bin/lsblk -P -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID
NAME=“sda” MODEL=“SATA SSD " SERIAL=“omitted” SIZE=“223.6G” TRAN=“ata” VENDOR=“ATA " HCTL=“2:0:1:0” TYPE=“disk” FSTYPE=”” LABEL="" UUID="“
NAME=“sda1” MODEL=”" SERIAL="" SIZE=“500M” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“ext4” LABEL="" UUID=“8483a4b0-d796-4f5e-9321-d758436a5d0b"
NAME=“sda2” MODEL=”" SERIAL="" SIZE=“7.9G” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“swap” LABEL="" UUID=“d7c5b6cf-2ebe-4db4-8b6b-83e92a14210f"
NAME=“sda3” MODEL=”" SERIAL="" SIZE=“215.2G” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“btrfs” LABEL=“rockstor_rockstor” UUID=“f762a9a0-7066-4712-a380-f322591517d3"
NAME=“sdb” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:0:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdc” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:1:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdd” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:2:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sde” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:3:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdf” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:4:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdg” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:5:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdh” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:6:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID="“
NAME=“sdi” MODEL=“9750-8i DISK " SERIAL=“omitted” SIZE=“1.8T” TRAN=”” VENDOR=“LSI " HCTL=“0:0:7:0” TYPE=“disk” FSTYPE=”" LABEL="" UUID=""

@kcomer Welcome to the Rockstor communit. Thank for reporting this and as it goes I am due to look at the smart subsystem pretty soon (hopefully) as we have a number of other reports of smart info not showing up on some other LSI cards. Note quite sure if it’s the same as what you are seeing but I can have a look while I’m there hopefully.
I take it you get the mentioned “not available” report when you click on the drive name? And I take it you have tried the switch at the end of each device in the Disks page.
The issue I hope to get to soon is entitled no SMART info on MSA70 but it has also been linked to another controller, the lsi9207-8i. Not convinced your problem is the same but I can keep it in mind when I have a look. I’ve linked this forum thread from that issue so that it might be taken into account.

There is just a little more info that may well help with working out what’s wrong here.
Could you examine via tail or less the /opt/rockstor/var/log/rockstor.log file just after receiving this GUI message as I’m hoping it will shed more light on what’s going on. If you could paste what looks like it might be relevant here that would be great. I’m afraid I haven’t come across this one before so hopefully will have more to offer suggestions wise later. I take it you have looked into enabling via cli using either smartclt or hdparm as well.

Thanks and nice reporting.

Oh and I believe we have at least one hdd temp on dashboard issue open also. I’ve made a note to update this thread with development on that issue also.

2 Likes

Thanks for the response Philip,
On the device page I don’t have an option to turn on SMART, except fro the SSD which is running rockstor none of the attached disk via the raid controller have this available in the Web UI

When I click on the drive to view the SMART information in the web ui, I get this message at the top and everything else is basically blank on the other tabs on that page
"S.M.A.R.T support is not available for this disk (sdb)"

“have tried the switch at the end of each device in the Disks page.” all I get on the page where the option to turn on smart is “Not supported” So I have nothing to try to activate which i assumed is because of the option appearing to be disabled on the disk, just a thought anyway.

I have tried to enable using the smartctl -s on command from CLI, but nothing happens I have not tried the hdparm command although I saw it referenced in the forum but did not look into the command options. Update checked options and seen nothing to enable smart using this command

[root@rockstor ~]# smartctl -s on /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.5-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
Informational Exceptions (SMART) disabled
Temperature warning disabled

Looking in the log but I don’t seem to find the error in the log, so how can I get you my logs?

@kcomer OK, now worries, I know what you mean now, unfortunately I was a little rushed when I replied before.
We need to find a way to enable the smart as until this is done then Rockstor is simply reporting it’s finding of SMART not being available either through it not being supported or not being enabled, and from your output we have the latter. Are there any settings in the controller bios for this, I’m afraid I haven’t played with one of these before. I know you said that other systems have successfully read this info but as you see it is reported as being disabled with the drivers / interface used by Rockstor so I think it is worth having a quick look. Just in case. There is still the outstanding issue referenced of smart info not showing up on some of these controllers but the output from the lsi9207-i8 in the issue (I’m home again now so was able to check) has the following (dots for uninteresting info):-

Device type:          disk
Transport protocol:   SAS
...
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     30 C
Drive Trip Temperature:        40 C

So it is clearly enabled. This leads me to think your problem may be different; currently anyway.

Rockstor simply uses these plain smartctl commands and then parses the info onto the Web-UI so the first step is to achieve getting the info out form the command line via the smartctl -a /dev/sdb command. Then we can look to the parsing if you are then affected by that issue.

Maybe someone else on the forum has an idea on enabling smart on these controllers. Thank for getting back and yes I think the hdparm thing was a red herring. As for logs I don’t there there are going to be any as on reflection the behaviour is normal for smart being disabled. I will of course check this once I get stuck in on that issue.

Do report back if you have any progress and I will do the same. Struggling for time right now but I’ll keep chipping away.

Philip,

I have reinstalled rockstor again thinking it could have been my installation, no luck also checked all hardware connections and system bios, enabled smart on MB and disabled no change for SMART on the SSD drive and no change for the RAID, I have also looked for SMART settings on the RAID card and nothing it is a pretty simple raid bios.

One thing I have noticed in my google-fu is that the 9750 is a 3ware card and in one link they state that it supports /dev/twX devices but all devices on my system are /dev/sdX wondering if there is an issue there
https://www.smartmontools.org/wiki/Supported_RAID-Controllers

To this writing I have not been able to find a command that will work to enable the smart monitoring.

in the var/log/messages I get these error messages which make me think it is able to be turned on but for some reason it does not accept this command
Dec 24 18:25:36 rockstor smartd[2191]: Device: /dev/sdi, IE (SMART) not enabled, skip device
Dec 24 18:25:36 rockstor smartd[2191]: Try ‘smartctl -s on /dev/sdi’ to turn on SMART features
Dec 24 18:25:36 rockstor smartd[2191]: Monitoring 1 ATA and 0 SCSI devices

playing around and I have seen this smartctl -t short /dev/sdb
Short offline self test failed [unsupported scsi opcode]

and in messages i see this
Dec 24 17:54:31 Rockstor kernel: 3w-sas: scsi0: ERROR: (0x03:0x0101): Invalid command opcode:opcode=0x80.
Dec 24 17:54:31 Rockstor kernel: program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Dec 24 17:54:32 Rockstor kernel: 3w-sas: scsi0: ERROR: (0x03:0x0101): Invalid command opcode:opcode=0x80.
Dec 24 17:54:38 Rockstor kernel: program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Dec 24 17:54:38 Rockstor kernel: 3w-sas: scsi0: ERROR: (0x03:0x0101): Invalid command opcode:opcode=0x80.
Dec 24 17:54:38 Rockstor kernel: program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Dec 24 17:54:38 Rockstor kernel: 3w-sas: scsi0: ERROR: (0x03:0x0101): Invalid command opcode:opcode=0x80.

And last but not least I found this in the rockstor log in the previous build before I reinstalled today
mainly the smart is not defined not sure it if this is relevant to the issue at this point but sending it along.

[24/Dec/2015 10:33:43] ERROR [storageadmin.util:38] request path: /api/disks/smart/test/sda3 method: POST data: <QueryDict: {u’test_type’: [u’’]}>
[24/Dec/2015 10:33:43] ERROR [storageadmin.util:39] exception: Unsupported Self-Test:
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 40, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/disk_smart.py”, line 132, in post
raise Exception(‘Unsupported Self-Test: %s’ % test_type)
Exception: Unsupported Self-Test:
[24/Dec/2015 10:35:25] ERROR [storageadmin.util:38] request path: /api/disks/smart/test/sda3 method: POST data: <QueryDict: {u’test_type’: [u’Short self-test ']}>
[24/Dec/2015 10:35:25] ERROR [storageadmin.util:39] exception: global name ‘smart’ is not defined
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 40, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/disk_smart.py”, line 133, in post
smart.run_test(disk.name, test_type)
NameError: global name ‘smart’ is not defined

Update, removed all disk from controller and went through the raid configuration again and still have the same same issue.

in the raid controller there is an option to enable the disk or querying, i forget the wording but it is enabled but nothing referencing smart.

Update, Looks to be enabled now after I run another command and I think my issue may be similar to the other issue.
The device names that reports back the smart info are twlX and not sdX I am kinda guessing that this would be a web ui thing and how it reports the devices and populates the data.

if I run the following command I can enable the smart monitoring capabilities

[root@rockstor log]# smartctl -s on -d 3ware,0 /dev/twl0
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.5-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.

and if I test, i get the following and more
[root@rockstor log]# smartctl -a -d 3ware,0 /dev/twl0
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.5-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Western Digital RE4 (SATA 6Gb/s)
Device Model: WDC WD2000FYYZ-01UL1B1
Serial Number: WD-WCC-omitted
LU WWN Device Id: 5 0014ee 2b389c06e
Firmware Version: 01.01K02
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Dec 24 21:55:29 2015 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

If I test using the disk label in the web ui I i get this which leads me to think that SMART is not enabled, but this report is wrong as the other command ( smartctl -a -d 3ware,0 /dev/twl0 ) reports back that it is enabled (Above)

[root@rockstor log]# smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.5-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: LSI
Product: 9750-8i DISK
Revision: 5.12
User Capacity: 1,999,988,850,688 bytes [1.99 TB]
Logical block size: 512 bytes
Logical Unit id: 0x600050e07c901d00515d0000acb70000
Serial number: P07963607C901D00515D
Device type: disk
Local Time is: Thu Dec 24 22:00:58 2015 EST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
Temperature Warning: Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Error Counter logging not supported

Device does not support Self Test logging

reference this site
https://www.schirmacher.de/display/INFO/Configuring+smartmontools+for+LSI+9750+RAID+Controller+on+XenServer

@kcomer This is excellent work and a nice find, thanks for sharing. And funnily enough it links in to another currently active forum thread by started by @sudowoodoS.M.A.R.T. for USB drive” that highlighed the need for some kind of custom smartctl parameter capability. I’m thinking we should have more abstraction on the smartctl calls so that we can add additional needed parameter if certain conditions are found etc.

Got to dash I’m afraid but just also wanted to point out re your:-

We had this reported a few days ago in the “S.M.A.R.T error global name ‘smart’ is not defined” forum thread and it has since been fixed via this issue opened as a result “unable to run smart tests via GUI” and released in the testing channel with 3.8-10.03.

Thanks again for all this great info, this is bound to help. I will chip in here again as I get time.

Also reporting this here as it may be related showing no disk activity, maybe due to the device names or not but wanted to mention it here as well

@kcomer Cheers, but in that screen shot the Disk activity drop down is set for sda3, have I missed the point again? My understanding of that widget is that you have to select the disk you want to monitor and I’m assuming you are wanting to monitor a different drive. Please put me right if I have misunderstood your point.
Cheers.

Ok so this may be a mis communication on my part, the widget shows the Top Disk and then below it says “no disk activity”, is what I was referring to the graphs below seem to work, but the area where it states no activity every some many seconds it flashes a brown bar to %100 and below it states (sdc3) changing the drop down makes no difference on my system.

@kcomer, OK I get it now, thanks. So does it fail to pickup top disk activity on just reads or writes as well. I’m afraid I’m not familiar with the workings of this part of Rockstor just yet though. Thanks for reporting. I’ve opened another issue on this so it doesn’t get forgotten. As you say it could very well be the devices names not registering on this widget. Do your twl0 names show up in the drop down as well as the system drive?
Thanks.

1 Like

So it appears to be only gather the writes and no reads for sd3 only which is on the SSD none of the devices on the raid controller show up in the drop down and neither do the twl0 show up in the disk page either in case I didn’t mention that either.

If I change to the other disk the graphs never display any data.

@kcomer Thanks for this, it is bound to help with pinning down what’s not working as it should. I have added this info to the issue so in time this should get the attention it obviously needs. I’m afraid I can’t myself look to this for a bit but at least it’s there ready for people to have a go at it if they fancy and I’m rather hoping it’s just as you proposed a dev naming issue of sorts. I don’t think that part of the code has seen much activity for quite some time so it’s only good if it gets a little attention in the not too distant future. I quite like the dash facility and it seems like quite a popular feature, but yes, a little attention is needed.
Cheers.

@kcomer Just to let you know that as of testing channel update version 3.8-10.12 the issue I was hoping could be extended to include your requirement of a custom smartctl option, ie “-d 3ware,0” ended up not including this capability. Sorry about that but it just didn’t end up being practical at the time. However so that we don’t loose track of this requirement I’ve opened another issue specifically targeted at this need: “add custom SMART parameter option”. But on the more immediate side I do think the “no SMART info on MSA70” should have improved the parsing of the SMART data as you have presented it here, once SMART is enabled that is. So that’s at least a step in the right direction.

Also note that the previously linked forum thread on S.M.A.R.T. for USB drives and specifically this post details how you could jury rig the custom option you require. But take care as this will be applied universally across all your drives and controllers. But if it’s just a matter of sensing if SMART is enabled you might try it just with “toggle_smart” function and the “available” function in the /opt/rockstor/src/rockstor/system/smart.py file. That might serve as a stop gap until this new issue receives some attention. Note that I am unsure of the affect this additional parameter may have on the non 3ware controller. That is best researched with the smartmontools project.

Please do report back on any further findings, it all helps in the long run. Thanks.

1 Like

Phil,

Thanks for the update I will report back when I have a chance to update my system. may not be able to for a day or two
Kevin

Dumb question source forge does not seem to have the update is this in testing or am I to pull this from git if git then I also am not seeing 3.8.10.12 where can I pull this release?

@kcomer Yes this is in the testing channel updates. Just make sure you have subscribed to testing channel and apply the update via the normal GUI method. Or if you are running stable then no worries as if all works out with these patches then they should end up in the next stable release. No rush though just wanted to let you know. Cheers.

1 Like

Yep I’m running the stable release, I can wait till the next release comes out. I usually only go with stable releases.

phil,

Is it safe to do a yum update now with out having to fix the python version/ I think it was python?

I updated today and and while I got something that looks a little better I am still seeing issues.
So right off the bat I get the switch to in the gui to turn on the SMART feature, I never had this before, but when I do a rescan it turns off immediately.

Next is that I am still not able to get SMART data from the disk in the GUI. I believe that this is related to rockstor not pulling twl0 as my device names. I also noticed that before I ran any smart command I had no twl devices but once I ran the first command all the devices appeared, this seems to be a feature of the smartctl command "found in a piece of documentation where it states that this is the behaviour

Anyway when going to the smart info pages in the gui and do a refresh I get this error below.
The error message: Error running a command. cmd = [’/usr/sbin/smartctl’, ‘-l’, ‘selftest’, ‘-l’, ‘selective’, u’/dev/sdd’]. rc = 4. stdout = [‘smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.3.3-1.el7.elrepo.x86_64] (local build)’, ‘Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org’, ‘’, ‘=== START OF READ SMART DATA SECTION ===’, ‘Device does not support Self Test logging’, ‘’]. stderr = [’’]

So in taking that command displayed and doing a little tweaking I get it to put some out put not sure if it will be helpful

/usr/sbin/smartctl -d 3ware,0 -l selftest -l selective /dev/twl0
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.3.3-1.el7.elrepo.x86_64] (local build)
Copyright © 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.