SS-439 and hdparm -B 254 /dev/sdx

Printers, HDDs, USB/eSATA drives, 3rd-party programs

SS-439 and hdparm -B 254 /dev/sdx

Postby filemoon » Fri Nov 13, 2009 8:37 pm

Hi I have a problem. I'd like to remove disk clicking so I've decided to run hdparm and looks like there is something wrong with hdparm implementation.

hdparm -B 254 /dev/sdx
setting Advanced Power Management level to 0xFE (254)
HDIO_DRIVE_CMD failed: Invalid argument

hdparm -i /dev/sdx
HDIO_GET_IDENTITY failed: Invalid argument

hdparm -I /dev/sdx
HDIO_GET_IDENTITY failed: Invalid argument

What is wrong - what should I do.

Regards Chris

Qnap SS-439 + 1.1.3FW
filemoon
Getting the hang of things
 
Posts: 54
Joined: Sun Oct 11, 2009 1:09 am
Location: Dublin
NAS Model: TS-410

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby QNAPJason » Mon Nov 16, 2009 8:19 pm

Hi Chris,
The correct usage should be sd"a", sd"b",...etc. where 'a' stands for the 1st drive.

Therefore, the codes for using "hdparm" should be: (1st drive)
Code: Select all
hdparm -i /dev/sda


Jason
User avatar
QNAPJason
QNAP Staff
 
Posts: 4605
Joined: Thu May 21, 2009 2:14 pm
Location: Taipei
NAS Model: TS-x19P II

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby filemoon » Tue Nov 17, 2009 7:08 am

Thank you for your answer.

I know haw to use hdparm (/dev/sd"x" was information about any number of my drives - I have 4 drives).

"hdparm - get/set hard disk parameters - version v6.1" -I'll try to update this using ipk now version is: "hdparm-hdparm - get/set hard disk parameters - version v9.27, by Mark Lord." but error is same.

All i can get is:

/dev/sda:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
readonly = 0 (off)
readahead = 8192 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
[/opt/sbin] # ./hdparm-hdparm /dev/sdb

/dev/sdb:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
readonly = 0 (off)
readahead = 8192 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
[/opt/sbin] # ./hdparm-hdparm /dev/sdc

/dev/sdc:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
readonly = 0 (off)
readahead = 8192 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
[/opt/sbin] # ./hdparm-hdparm /dev/sdd

/dev/sdd:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
readonly = 0 (off)
readahead = 8192 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0

[/opt/sbin] # ./hdparm-hdparm /dev/md0

/dev/md0:
HDIO_DRIVE_CMD(identify) failed: Invalid argument
readonly = 0 (off)
readahead = 768 (on)
geometry = 365113200/2/4, sectors = 2920905600, start = 0





/dev/md0:
HDIO_DRIVE_CMD(identify) failed: Invalid argument
HDIO_GET_IDENTITY failed: Invalid argument
[/opt/sbin] # ./hdparm-hdparm -i /dev/sda

/dev/sda:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
HDIO_GET_IDENTITY failed: Invalid argument
[/opt/sbin] # ./hdparm-hdparm -i /dev/sdb

/dev/sdb:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
HDIO_GET_IDENTITY failed: Invalid argument
[/opt/sbin] # ./hdparm-hdparm -i /dev/sdc

/dev/sdc:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
HDIO_GET_IDENTITY failed: Invalid argument
[/opt/sbin] # ./hdparm-hdparm -i /dev/sdd

/dev/sdd:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
HDIO_GET_IDENTITY failed: Invalid argument
[/opt/sbin] #

Is this firmware bug or other problem?
I cannot get information, I cannot change settings.

I have latest firmware (non beta) - using seagate Momentus 500GB

Drive 1 Seagate ST9500420ASG 0002 465.76 GB Ready Scan now Good
Drive 2 Seagate ST9500420ASG 0002 465.76 GB Ready Scan now Good
Drive 3 Seagate ST9500420ASG 0002 465.76 GB Ready Scan now Good
Drive 4 Seagate ST9500325AS 0002 465.76 GB Ready Scan now Good
filemoon
Getting the hang of things
 
Posts: 54
Joined: Sun Oct 11, 2009 1:09 am
Location: Dublin
NAS Model: TS-410

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby ink » Wed Dec 02, 2009 6:34 pm

I get the same on all my drives too, could be either wrong hdparm version, or IDE_TASK_IOCTL / HDIO_DRIVE_TASK / HDIO_DRIVE_TASKFILE are missing from kernel ?

If we had the .config file for each released kernel, we'd probably know the answer for definite (hint hint!).
SS-439 - 4* 1TB (12.5mm WD10TPVT) - RAID5 [Debian Squeeze]
ink
Know my way around
 
Posts: 115
Joined: Mon Aug 03, 2009 7:08 pm
Location: London
NAS Model: TS-410

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby filemoon » Tue Dec 08, 2009 5:15 pm

We have to force them to implement hdparm correctly - my disks are clicking and when I have click transfer is frozen for around 2 sec. Is not version. I used ipkg to get other hdparm version and have same issue.

This must be some bug / core configuration.
filemoon
Getting the hang of things
 
Posts: 54
Joined: Sun Oct 11, 2009 1:09 am
Location: Dublin
NAS Model: TS-410

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby ink » Mon Apr 12, 2010 10:45 pm

I'm really hoping that QNAP have seen the light and are including the IDE_TASK_IOCTL / HDIO_DRIVE_TASK / HDIO_DRIVE_TASKFILE options in the 3.2.5 kernel now.

Either that or for the love of ${deity} please configure /proc/config.gz support by adding to the kernel configuration :
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
SS-439 - 4* 1TB (12.5mm WD10TPVT) - RAID5 [Debian Squeeze]
ink
Know my way around
 
Posts: 115
Joined: Mon Aug 03, 2009 7:08 pm
Location: London
NAS Model: TS-410

Re: SS-439 and hdparm -B 254 /dev/sdx

Postby mrQQ » Wed Oct 19, 2011 2:33 am

is this hopeless? I have same issue with hdparm on x409 :(
mrQQ
Starting out
 
Posts: 35
Joined: Tue Jul 22, 2008 2:52 am
NAS Model: TS-411U


Return to Hardware & Software Compatibility

Who is online

Users browsing this forum: No registered users and 5 guests