希捷powerchoice磁碟休眠功能配置方法
阿新 • • 發佈:2020-08-25
本篇關於希捷磁碟休眠的配置方法
準備設定的軟體
下載地址
或者通過
下載後解壓拿到二進位制檔案
注意版本儘量用這個版本,不同的版本命令不同,可以有的重要命令不支援,所以限定這個版本即可
磁碟休眠相關命令
預設磁碟開啟的是idle_a的節能模式,這個模式實際上不省電
伺服器的操作是禁用了一些內部服務,減少處理器和通道功耗,磁碟還是全速轉動
idle b 模式
是解除安裝磁頭到硬碟斜坡
官方給出的功耗資料
https://www.seagate.com/www-content/product-content/enterprise-hdd-fam/enterprise-capacity-3-5-hdd/enterprise-capacity-3-5-hdd/en-us/docs/100791104c.pdf
idle_A 4.36
idle_B 2.98
idle_C 2.34
Standby 0.80
考慮恢復時間和功耗的節省問題,我們選擇idle_B
關閉AB模式,也就是關閉省電模式
./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --disableMode --changePower --powerMode idle_b
./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --disableMode --changePower --powerMode idle_a
開啟B模式的省電模式,並設定休眠時間為60s
後面的單位為100ms
./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --disableMode --changePower --powerMode idle_a ./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --enableMode --changePower --powerMode idle_b --modeTimer 600
這個可以不管什麼情況,都把A模式關閉了,否則同時設定的時候,會優先進入a模式
檢查當前的省電設定情況
[root@node120 ~]# ./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --showEPCSettings
==========================================================================================
SeaChest_PowerControl - Seagate drive utilities - NVMe Enabled
Copyright (c) 2014-2019 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
SeaChest_PowerControl Version: 1.10.0-1_19_23 X86_64
Build Date: Jun 10 2019
Today: Mon Aug 24 10:51:36 2020
==========================================================================================
/dev/sg17 - ST10000NM0016-1TT101 - ZA2CRY9G - ATA
.
===EPC Settings===
* = timer is enabled
C column = Changeable
S column = Saveable
All times are in 100 milliseconds
Name Current Timer Default Timer Saved Timer Recovery Time C S
Idle A 0 *1 1 1 Y Y
Idle B *10 *1200 *10 4 Y Y
Idle C 0 6000 6000 50 Y Y
Standby Z 0 9000 9000 120 Y Y
可以看到我的設定是1s的,這個是我方便測試看是否能進入到省電B模式設定的1s的,實際按照我們自己的設計是60s的
查詢當前磁碟的省電狀態的命令
./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --checkPowerMode;
[root@node120 ~]# ./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --checkPowerMode;
==========================================================================================
SeaChest_PowerControl - Seagate drive utilities - NVMe Enabled
Copyright (c) 2014-2019 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
SeaChest_PowerControl Version: 1.10.0-1_19_23 X86_64
Build Date: Jun 10 2019
Today: Mon Aug 24 10:54:49 2020
==========================================================================================
/dev/sg17 - ST10000NM0016-1TT101 - ZA2CRY9G - ATA
Device is in the PM1: Idle state and the device is in the Idle_b power condition
[root@node120 ~]# ./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --checkPowerMode;
==========================================================================================
SeaChest_PowerControl - Seagate drive utilities - NVMe Enabled
Copyright (c) 2014-2019 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
SeaChest_PowerControl Version: 1.10.0-1_19_23 X86_64
Build Date: Jun 10 2019
Today: Mon Aug 24 10:55:04 2020
==========================================================================================
/dev/sg17 - ST10000NM0016-1TT101 - ZA2CRY9G - ATA
Device is in the PM0: Active state or PM1: Idle State
在省電模式的提示是
Device is in the PM1: Idle state and the device is in the Idle_b power condition
磁碟正在執行的模式是
Device is in the PM0: Active state or PM1: Idle State
注意,這個命令
./SeaChest_PowerControl_1100_11923_64 -d /dev/sdp --showEPCSettings
會喚醒磁碟也就是中斷了省電模式,所以只有確定知曉會中斷省電模式的時候才使用
管理平臺不要頻繁呼叫
如果需要檢查當前模式就用上面的checkPowerMode命令,checkPowerMode命令不會喚醒磁碟,並且需要注意是否有本地的意外程序把磁碟省電模式中斷了