[SOLVED] HDPARM in Unraid


Recommended Posts

I recently installed a couple of Seagate drives in my Unraid 5.14B. The Seagates have APM (Advanced Power Management) ON by default. To disable it (clicking noise, head parking etc...), one can use HDPARM tool or so I was led to believe.

 

My question is " Does Unraid support the HDPARM utility?"  Can I just use Putty to connect to my server and use HPPARM on each drive? Or is there an easier method?

 

There is a Windows version of HDPARM, can I use this to disable APM in my Unraid drives if Unraid does not support HDPARM?

 

 

Link to comment

I recently installed a couple of Seagate drives in my Unraid 5.14B. The Seagates have APM (Advanced Power Management) ON by default. To disable it (clicking noise, head parking etc...), one can use HDPARM tool or so I was led to believe.

 

My question is " Does Unraid support the HDPARM utility?"

unRAID "4.7" and "5.0-rc6" both have hdparm version v9.27.

Can I just use Putty to connect to my server and use HPPARM on each drive? Or is there an easier method?

Putty works just fine.

There is a Windows version of HDPARM, can I use this to disable APM in my Unraid drives if Unraid does not support HDPARM?

Never used the windows version.  Can't give advice there.

 

Looks like you want the "-Z" option  (but again, no experience in using it, I just saw it in the hdparm help output. see below:)

hdparm - get/set hard disk parameters - version v9.27, by Mark Lord.

Usage:  hdparm  [options] [device] ..

Options:
-a   Get/set fs readahead
-A   Get/set the drive look-ahead flag (0/1)
-b   Get/set bus state (0 == off, 1 == on, 2 == tristate)
-B   Set Advanced Power Management setting (1-255)
-c   Get/set IDE 32-bit IO setting
-C   Check drive power mode status
-d   Get/set using_dma flag
-D   Enable/disable drive defect management
-E   Set cd/dvd drive speed
-f   Flush buffer cache for device on exit
-F   Flush drive write cache
-g   Display drive geometry
-h   Display terse usage information
-H   Read temperature from drive (Hitachi only)
-i   Display drive identification
-I   Detailed/current information directly from drive
-k   Get/set keep_settings_over_reset flag (0/1)
-K   Set drive keep_features_over_reset flag (0/1)
-L   Set drive doorlock (0/1) (removable harddisks only)
-M   Get/set acoustic management (0-254, 128: quiet, 254: fast)
-m   Get/set multiple sector count
-N   Get/set max visible number of sectors (HPA) (VERY DANGEROUS)
-n   Get/set ignore-write-errors flag (0/1)
-p   Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P   Set drive prefetch count
-q   Change next setting quietly
-Q   Get/set DMA queue_depth (if supported)
-r   Get/set device  readonly flag (DANGEROUS to set)
-R   Obsolete
-s   Set power-up in standby flag (0/1) (DANGEROUS)
-S   Set standby (spindown) timeout
-t   Perform device read timings
-T   Perform cache read timings
-u   Get/set unmaskirq flag (0/1)
-U   Obsolete
-v   Defaults; same as -acdgkmur for IDE drives
-V   Display program version and exit immediately
-w   Perform device reset (DANGEROUS)
-W   Get/set drive write-caching flag (0/1)
-x   Obsolete
-X   Set IDE xfer mode (DANGEROUS)
-y   Put drive in standby mode
-Y   Put drive to sleep
-Z   Disable Seagate auto-powersaving mode
-z   Re-read partition table
--dco-freeze      Freeze/lock current device configuration until next power cycle
--dco-identify    Read/dump device configuration identify data
--dco-restore     Reset device configuration back to factory defaults
--direct          Use O_DIRECT to bypass page cache for timings
--drq-hsm-error   Crash system with a "stuck DRQ" error (VERY DANGEROUS)
--fallocate       Create a file without writing data to disk
--fibmap          Show device extents (and fragmentation) for a file
--fwdownload            Download firmware file to drive (EXTREMELY DANGEROUS)
--fwdownload-mode3      Download firmware using min-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode3-max  Download firmware using max-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode7      Download firmware using a single segment (EXTREMELY DANGEROUS)
--idle-immediate  Idle drive immediately
--idle-unload     Idle immediately and unload heads
--Istdin          Read identify data from stdin as ASCII hex
--Istdout         Write identify data to stdout as ASCII hex
--make-bad-sector Deliberately corrupt a sector directly on the media (VERY DANGEROUS)
--prefer-ata12    Use 12-byte (instead of 16-byte) SAT commands when possible
--read-sector     Read and dump (in hex) a sector directly from the media
--security-help   Display help for ATA security commands
--trim-sector-ranges        Tell SSD firmware to discard unneeded data sectors: lba:count ..
--trim-sector-ranges-stdin  Same as above, but reads lba:count pairs from stdin
--verbose         Display extra diagnostics from some commands
--write-sector    Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS)

Link to comment
  • 3 months later...

Thank you Joe. I really appreciate your help. I have learnt so much from you. My server is running fine right now. I am really apprehensive about fixing what's not broken !!! But I am a tinkerer by nature !!!  ;)

 

Husky, did the Z option work for you? Or do you use the other suggestion from the thread below?

 

http://lime-technology.com/forum/index.php?topic=21454.msg193110#msg193110

 

I am about to receive 2 3TB Seagate drives and I want to disable it as well.

 

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.