Bug 49231

Summary: /etc/sysconfig/harddisks sets same parameters for all hard-disks
Product: [Retired] Red Hat Linux Reporter: Need Real Name <silviu>
Component: hdparmAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-17 08:42:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-07-17 08:42:33 UTC
Description of Problem:

I have a UDMA hdd and a PIO one.
Used to have a different hdparm command in rc.local for each one.
I tried to use /etc/sysconfig/harddisks and saw that it sets the same
parameters for all hard disks. The PIO one got upset and froze the system.


How Reproducible:
Every time

Steps to Reproduce:
1. Edit /etc/sysconfig/harddisks
2. USE_DMA=1
3. EXTRA_PARAMS=-X662. 


Actual Results:
System freeze


Expected Results:
Optimal hard-disk tunning

Additional Information:
/etc/sysconfig/harddisks should have sections for each hard-disk

[/dev/hda]
USE_DMA=1
EXTRA_PARAMS=-X66

[/dev/hdb]
USE_DMA=0

Comment 1 Karsten Hopp 2001-07-17 10:02:05 UTC
/etc/sysconfig/harddisks sets the default hdparm parameters for all IDE
harddisks in you system, that's correct.
But if you copy this file to /etc/sysconfig/harddiskhda, you can set 
parameters for /dev/hda in it. 
Have a look at the comment in /etc/rc.d/rc.sysinit:
# Turn on harddisk optimization
# There is only one file /etc/sysconfig/harddisks for all disks
# after installing the hdparm-RPM. If you need different hdparm parameters
# for each of your disks, copy /etc/sysconfig/harddisks to
# /etc/sysconfig/harddiskhda (hdb, hdc...) and modify it.
# each disk which has no special parameters will use the defaults.