Koozali.org: home of the SME Server

hdparm -keepsettings over reboot

mbachmann

hdparm -keepsettings over reboot
« on: October 04, 2004, 09:33:17 AM »
Raid 1 running, want to make hdparm 32 bit access mode permanent.

Issued:
Code: [Select]
hdparm -k 1 -K 1 /dev/hda
hdparm -k 1 -K 1 /dev/hdc
hdparm -c 1 /dev/hda
hdparm -c 1 /dev/hdc

Result:
Code: [Select]
hdparm /dev/hda
hdparm /dev/hdc

I/O support  =  1 (32-bit)
...
using_dma    =  1 (on)
keepsettings =  1 (on)
...
After reboot it does not keep settings:
Code: [Select]
hdparm /dev/hda
hdparm /dev/hdc

I/O support  =  0 (16-bit)

Howto keep 32 bit access mode over reboot?

Offline byte

  • *
  • 2,183
  • +2/-0
hdparm -keepsettings over reboot
« Reply #1 on: October 04, 2004, 01:39:27 PM »
Not really a SME question  8-)  but anyhow...The drives get reinitialised by the BIOS and by Linux on each boot so you will need to set hdparm each time...

Maybe a script is the way to go :-) or just place in the rc.local
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

duncan

hdparm -keepsettings over reboot
« Reply #2 on: October 04, 2004, 01:48:39 PM »
Or /etc/sysconfig/harddisks

mbachmann

hdparm -keepsettings over reboot
« Reply #3 on: October 04, 2004, 03:58:59 PM »
Thx to both, good old script solved it. Was just so square-headed that i thought keepsettings must keep the settings.

jcoleman

hdparm -keepsettings over reboot
« Reply #4 on: October 04, 2004, 11:21:57 PM »

mbachmann

hdparm -keepsettings over reboot
« Reply #5 on: October 05, 2004, 10:39:39 AM »
Right, jcoleman - 32 bit access mode was already enabled, it just did not kept the settings over reboot.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
hdparm -keepsettings over reboot
« Reply #6 on: October 05, 2004, 08:17:45 PM »
Quote from: "jcoleman"
Take a look at this....

http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/hdparm-howto.html

-jeff


That HOWTO is obsolete. /etc/sysconfig/harddisks or /etc/sysconfig/harddiskhda etc is the way to do it now.

mbachmann

hdparm -keepsettings over reboot
« Reply #7 on: January 19, 2005, 05:38:08 PM »
Just adding in /etc/sysconfig/harddisks

EXTRA_PARAMS=
-c 1

will provide keeping 32 bit I/O access over reboot.

Offline kruhm

  • *
  • 680
  • +0/-0
hdparm -keepsettings over reboot
« Reply #8 on: July 05, 2005, 06:54:06 PM »
There doesn't seem to be to much documentation on this or maybe i'm looking in the wrong place.
Why would you use:
Quote
EXTRA_PARAMS= -c 1

instead of the line that is already there:
Quote
EIDE_32BIT=3

Or maybe it doesn't matter since it seems like they would both do the same thing.