Bug 162962 - rc.sysinit missing section to optimize harddisk params
rc.sysinit missing section to optimize harddisk params
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
4
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
: 163787 163794 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-11 17:13 EDT by Kevin Blair
Modified: 2014-03-16 22:54 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-11 17:18:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Block of script from FC3 rc.sysinit (2.27 KB, patch)
2005-07-11 17:19 EDT, Kevin Blair
no flags Details | Diff

  None (edit)
Description Kevin Blair 2005-07-11 17:13:27 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412 (KHTML, like Gecko) Safari/412

Description of problem:
Section to control harddisk params based on files /etc/sysconfig/harddisks and /etc/sysconfig/
harddiskhd[a-t] is missing

Version-Release number of selected component (if applicable):
initscripts-8.11.1-1

How reproducible:
Always

Steps to Reproduce:
Files /etc/sysconfig/harddiskhda /etc/sysconfig/harddisks present with non default params set in them 
  

Actual Results:  no settings sent at boot

Expected Results:  params should have been sent at boot

Additional info:
Comment 1 Bill Nottingham 2005-07-11 17:18:50 EDT
It's intentional; discussions with the kernel people generally stated that
hdparm should not be used.
Comment 2 Kevin Blair 2005-07-11 17:19:06 EDT
Created attachment 116627 [details]
Block of script from FC3 rc.sysinit

Comes just after test block for ide-scsi on command line, and before boot time
profiles
Comment 3 Bill Nottingham 2005-07-20 23:03:41 EDT
*** Bug 163787 has been marked as a duplicate of this bug. ***
Comment 4 Bill Nottingham 2005-07-21 00:58:14 EDT
*** Bug 163794 has been marked as a duplicate of this bug. ***
Comment 5 jar 2005-07-28 19:28:50 EDT
(In reply to comment #1)
> It's intentional; discussions with the kernel people generally stated that
> hdparm should not be used.

But it should be removed also from /usr/share/doc/initscripts-
8.11.1/sysconfig.txt.
Comment 6 Bill Nottingham 2005-07-28 22:25:32 EDT
Removed in CVS, will be in 8.12-1.
Comment 7 Doncho N. Gunchev 2005-09-25 14:58:40 EDT
    Does this mean that we should open bug reports against the kernel package in
cases like hdparm -t gives 12MB/sec without tweaking and 52MB/sec with (or 12 vs
22 on my laptop) without DMA timeouts/errors? What info should we provide?
Comment 8 Bill Nottingham 2005-09-26 12:17:43 EDT
Yes. Probably you'd need at least IDE chipset type (lspci -v), the hdparm info
for  what it's currently set at, the dmesg output of it setting up the
controller, and the drive information & topography (what's on what channel, as
master, slave, etc.)
Comment 9 Peter Bieringer 2006-04-30 06:26:34 EDT
Can one please tell me how to specify now power saving for IDE harddisk drives
to save power (think about energy consumption and energy saving) by an easy way?

In BIOS, I can only set max. 15 minutes, but this value is only applied to the
first and second IDE channel. 3rd and 4th are not set.

So I find it was not a good idea to remove the /etc/sysconfig/harddisks support
in rc.sysinit.

I've never heard about a config switch in kernel to specify IDE sleep values.
For example, I use "-S 240".

BTW: it's also not a very good idea to put all the IDE issues coming now up back
to kernel maintainers, the turnaround times are too long for quick
enabling/disabling of default parameters (like e.g. DMA off for broken drives).

Looks like now rc.local has to be used for that, imho, that's not a step
forewards, it's a step backwards.

Comment 10 Peter Bieringer 2006-04-30 07:09:18 EDT
Here an example for rc.local:

for entry in /proc/ide/h*; do drive=`basename $entry`; hdparm -S 240
/dev/$drive; done

BTW: don't forget a proper configuration for smartd to prevent wakeup of IDE drives.
/dev/hdg -H -n standby -o off
/dev/hdc -H -n standby -o off
/dev/hde -H -n standby -o off
Comment 11 Bill Nottingham 2006-05-01 13:34:00 EDT
KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="0", RUN+="hdparm -S 240 /dev/%k"

or something similar in a udev rules file should do the trick.
Comment 12 Peter Bieringer 2006-05-02 06:32:20 EDT
Thank you for that hint, interesting, because of SYSFS{removable}=="0" only real
IDE harddisks will get the powersave parameter.

Looks like to me it would be time to extend udev to use a boolean file like in
SELinux to enable conditial rules and perhaps retrieve from config file also a
special parameter.

E.g.
/etc/udev/udev.conf:
udev_bool_ide_harddisks_powersave=1 -> enables conditional udev rule
udev_value_ide_harddisks_powersave_value=240 -> parameter for hdparm

Note You need to log in before you can comment on or make changes to this bug.