cannot read / set parameters on sas drives
Brought to you by:
ideguy
hdparm -i /dev/sdc
/dev/sdc:
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 1c 02 06 00 00 cf 00 00 00 03 02 00 01 80 0e 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 1c 02 06 00 00 cf 00 00 00 03 02 00 01 80 0e 00 00 00 00 00 00 00 00 00 00
HDIO_DRIVE_CMD(identify) failed: Input/output error
HDIO_GET_IDENTITY failed: Invalid argument
Base Board Information
Manufacturer: Supermicro
Product Name: X10DRI-T
Controller type : SAS3008
BIOS version : 8.25.00.00
Firmware version : 10.00.00.00
Channel description : 1 Serial Attached SCSI
Initiator ID : 0
Maximum physical devices : 1023
Concurrent commands supported : 10240
Slot : 1
Segment : 0
Bus : 1
Device : 0
Function : 0
RAID Support : No
Enclosure # : 2
Slot # : 12
SAS Address : 5003048-0-090f-58fd
State : Standby (SBY)
Manufacturer : LSI
Model Number : SAS3x28
Firmware Revision : 0601
Serial No : x2866612
GUID : N/A
Protocol : SAS
Device Type : Enclosure services device
Device is a Hard disk
Enclosure # : 2
Slot # : 11
SAS Address : 5000c50-0-8489-7875
State : Ready (RDY)
Size (in MB)/(in sectors) : 3815447/7814037167
Manufacturer : SEAGATE
Model Number : ST4000NM0034
Firmware Revision : E001
Serial No : Z4F0GEL8
GUID : 5000c50084897877
Protocol : SAS
Drive Type : SAS_HDD
[ 3.360937] sd 0:0:0:0: [sdc] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
[ 3.360943] sd 0:0:0:0: [sdc] 4096-byte physical blocks
[ 3.361991] sd 0:0:0:0: [sdc] Write Protect is off
[ 3.361998] sd 0:0:0:0: [sdc] Mode Sense: db 00 10 08
[ 3.362541] sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 3.366559] sdc: sdc1
[ 3.372487] sd 0:0:0:0: [sdc] Attached SCSI disk
[ 7.583911] md: bind<sdc1>
[ 7.772760] md/raid:md0: device sdc1 operational as raid disk 0
[ 7.773600] disk 0, o:1, dev:sdc1</sdc1>
The "-i" (lowercase) flag is very specfic to the Linux ATA and IDE drivers.
Use "-I" (uppercase) for other types.
apologies, I had tried that:
hdparm -I /dev/sdc
/dev/sdc:
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 1c 02 06 00 00 cf 00 00 00 03 02 00 01 80 0e 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 1c 02 06 00 00 cf 00 00 00 03 02 00 01 80 0e 00 00 00 00 00 00 00 00 00 00
HDIO_DRIVE_CMD(identify) failed: Input/output error
Okay, no version info provided. Try again with latest hdparm from thsi site, and try with different kernels. This used to work, so perhaps an update to the kernel has broken it.
Version is hdparm.x86_64 9.48-1.fc23 installed
I installed this one because the rhel7 default one wasnt working, platform is centos7
what kernel was this working on?
any other options to disable write cache on the sas drives? (thats pretty much all I need to do)
Thank you very much
It has been a few years since anyone last checked/reported using hdparm on SAS drives, so the kernel would have been from a long time ago.
Meanwhile, for the write-cache, you might have luck with this:
blktool /dev/sdc wcache off
in the end I solved using sdparm, as in sdparm --set WCE=0 /dev/sdc
thanks for your help anyway
On 14 January 2016 at 13:21, Mark Lord ideguy@users.sf.net wrote:
--
twitter.com/blue_zoo http://www.twitter.com/blue_zoo | facebook.com/bluezooanimation | vimeo.com/bluezoo http://vimeo.com/channels/bluezoo
Blue Zoo Animation | 385 Euston Road, London NW1 3AU | t. 020 7434 4111
Related
Bugs:
#66in the end I solved using sdparm, as in sdparm --set WCE=0 /dev/sdc
thanks for your help anyway