Opened 10 years ago
Closed 10 years ago
#340 closed enhancement (wontfix)
Dell H800 Perc Smart Attributes Multiple Drives
Reported by: | Kevin | Owned by: | Kevin Rogers |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | smartctl | Version: | 6.2 |
Keywords: | megaraid linux | Cc: | Kevrog85@… |
Description
I am running Centos 6.4 with Smartmontools v5.42. I am trying to run Smartctl -a -d megaraid,0 /dev/sda to pull smart information on multiple disks behind a Perc controller. I know that I am specifying megaraid,0 to show disk 0. How do I get smartmontools to show smart stats of multiple drives at once? is this possible? I want to get smart attributes for up to as many drives as possible at once behind my controller.(15-90drives daisy chained in SANs) I'm testing this on a Perc 6 but I want to deploy this behind H800 Perc.
Change History (10)
comment:1 by , 10 years ago
Type: | defect → enhancement |
---|
follow-up: 3 comment:2 by , 10 years ago
Keywords: | megaraid linux added; H800 Perc removed |
---|---|
Milestone: | Release 6.4 |
Priority: | critical → minor |
comment:3 by , 10 years ago
Replying to chrfranke:
It is not possible to print info of more than one device with one smartctl run. There are no plans to implement this.
For devices which appear in
smartctl --scan
output, this could be done with a simple wrapper script. This should work for the-d megaraid,N
device type since smartmontools 6.1.
Thanks chrfranke!
When I run:
smartctl --scan -a -d megaraid,0 /dev/sda
I get:
DeviceScan with pattern not yet implemented
I am currently testing this on a perc 6 and just trying to read multiple drives in my server at once. For deployment it will be an H800 behind network attached storage. Any other ideas? How do I implement the devicescan pattern?
Thanks for the help!
comment:4 by , 10 years ago
The info was misleading, sorry. The smartctl --scan
does not work in conjunction with -d megaraid,N
or a device name.
The following script may work for your use case:
#!/bin/sh options="-H -A" /usr/sbin/smartctl --scan \ | while read dev opt type comment; do case "$dev $opt $type" in /dev/sda\ -d\ megaraid,*) echo "smartctl $opt $type $options $dev" /usr/sbin/smartctl $opt $type $options $dev echo "=======================================" ;; esac done
(Requires smartctl >= 6.1)
comment:6 by , 10 years ago
I'm using Smartctl v6.2 There seems to be a problem with that script at the
/usr/sbin/smartctl --scan \
Im new to linux and just trying to set up a testing station for my enterprise. I appreciate your help with the script. I cant get it to work as of now. Any other thoughts?
comment:8 by , 10 years ago
when i run:
smartctl --scan-open
I get: #
# /dev/sda -d scsi # /dev/sdb, SCSI device open failed: DELL or megaraid controller, please try adding '-d megaraid,N' # /dev/sdb -d scsi # /dev/sdb, SCSI device open failed: DELL or megaraid controller, please try adding '-d megaraid,N'
It is not possible to print info of more than one device with one smartctl run. There are no plans to implement this.
For devices which appear in
smartctl --scan
output, this could be done with a simple wrapper script. This should work for the-d megaraid,N
device type since smartmontools 6.1.