server.domain.com kernel log messages:
+mfi0: 67443 (600342132s/0x0008/info) - Battery relearn will start in 2 day
+mfi0: 67444 (600347527s/0x0008/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
+mfi0: 67445 (600351167s/0x0008/info) - BBU enabled; changing WT virtual disks to WB
+mfi0: 67446 (600354742s/0x0008/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
Посмотрим эвенты:
mfiutil show events -c debug -l battery
67444 (Wed Jan 9 11:12:07 MSK 2019/BATTERY/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
67445 (Wed Jan 9 12:12:47 MSK 2019/BATTERY/info) - BBU enabled; changing WT virtual disks to WB
67446 (Wed Jan 9 13:12:22 MSK 2019/BATTERY/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
Это означает, что:
Battery RAID-controller broken
Включите кеширование записи, но отключите кеширование записи при плохой батарее:
mfiutil cache mfid0 write-back enable
mfiutil cache mfid0 bad-bbu-write-cache disable
Проверьте текущее состояние батареи:
mfiutil show battery
mfi0: Battery State:
Manufacture Date: 9/10/2015
Serial Number: 2260
Manufacturer: LS36691
Model: iBBU-09
Chemistry: LION
Design Capacity: 1500 mAh
Full Charge Capacity: 1326 mAh
Current Capacity: 796 mAh
Charge Cycles: 1
Current Charge: 61%
Design Voltage: 4100 mV
Current Voltage: 3832 mV
Temperature: 24 C
Autolearn period: 28 days
Next learn time: Thu Jan 10 12:41:07 2019
Learn delay interval: 0 hours
Autolearn mode: enabled
BBU Mode: 3
Status: normal
Проверка кэша - это хорошая идея, проверить, была ли неисправна ваша батарея, объяснит, почему кэширование было отключено:
mfiutil cache mfid0
mfi0 volume mfid0 cache settings:
I/O caching: writes and reads
write caching: write-back
write cache with bad BBU: disabled
read ahead: none
drive write cache: default
Cache disabled due to dead battery or ongoing battery relearn
"Кэш отключен из-за разряженной батареи или повторного обучения батареи"
Выставить BBU mode можно так:
mfiutil bbu bbu-mode (1-4)
Посмотрим эвенты:
mfiutil show events -c debug -l battery
67444 (Wed Jan 9 11:12:07 MSK 2019/BATTERY/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
67445 (Wed Jan 9 12:12:47 MSK 2019/BATTERY/info) - BBU enabled; changing WT virtual disks to WB
67446 (Wed Jan 9 13:12:22 MSK 2019/BATTERY/WARN) - BBU disabled; changing WB virtual disks to WT, Forced WB VDs are not affected
67449 (Thu Jan 10 09:41:57 MSK 2019/BATTERY/info) - Battery relearn will start in 1 day
ПОзве отхватываем ошибку:
67545 (Fri Jan 11 13:17:17 MSK 2019/BATTERY/WARN) - Battery life has degraded and cannot initiate transparent learn cycles