Linux
Marvell 88SE9230 上的 Linux。如何獲得統計數據?
我在我的家庭 Linux 伺服器上使用 Marvell 88SE9230 控制器。惠普確實有設置突襲和獲取一些統計數據的實用程序。但我想知道如何從 Linux 系統獲得任何狀態。快速Google搜尋僅顯示用於訪問以前版本核心上的陣列本身的 Linux 驅動程序,但我想知道驅動器的 SMART 狀態。
Smartctl 不起作用:
root@iris:~# smartctl -a -d marvell -T verypermissive /dev/sda smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-96-generic] (local build) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org Read Device Identity failed: Unknown error === START OF INFORMATION SECTION === Device Model: [No Information Found] Serial Number: [No Information Found] Firmware Version: [No Information Found] Device is: Not in smartctl database [for details use: -P showall] ATA Version is: [No Information Found] Local Time is: Thu Jan 27 19:11:54 2022 MSK SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported. SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled. Checking to be sure by trying SMART RETURN STATUS command. SMART support is: Unknown - Try option -s with argument 'on' to enable it. Read SMART Data failed: Success === START OF READ SMART DATA SECTION === SMART Status command failed: Success SMART overall-health self-assessment test result: UNKNOWN! SMART Status, Attributes and Thresholds cannot be read. Read SMART Error Log failed: Success Read SMART Self-test Log failed: Success Selective Self-tests/Logging not supported
如何從控制器中獲取至少一些統計資訊?
可以確認,這裡同樣缺乏支持(在嘗試通過 Marvel 晶片組從設備獲取 SMART 統計資訊時,輸出與 OP 完全相同)。
:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11) Linux fermmy 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux *-sata description: SATA controller product: 88SE9230 PCIe SATA 6Gb/s Controller vendor: Marvell Technology Group Ltd. physical id: 0 bus info: pci@0000:07:00.0 version: 11 width: 32 bits clock: 33MHz capabilities: sata pm msi pciexpress ahci_1.0 bus_master cap_list rom configuration: driver=ahci latency=0 resources: irq:43 ioport:d050(size=8) ioport:d040(size=4) ioport:d030(size=8) ioport:d020(size=4) ioport:d000(size=32) memory:fc710000-fc7107ff memory:fc700000-fc70ffff
我認為 Marvell 沒有直接可行的選擇。https://www.marvell.com/support/downloads.html
—— 但是看這裡!
https://support.lenovo.com/ca/en/downloads/ds539334-marvell-storage-utility-for-linux-for-linux
理論上……這應該可以正常工作嗎?我們試試看。
我在 Ubuntu 上,不想在 CentOS 衍生產品上進行這項工作;幸運的是,有人已經完成了所有繁重的工作:信用:https ://github.com/stegm/marvell_msu_docker
一些小事情已經過時了,我在這個分支中修復/改進了: https ://github.com/fermulator/marvell_msu_docker
按照 README 說明 :) - 然後我們可以看到:
~/projects/marvell_msu_docker$ docker-compose run --rm msu cli SG driver version 3.5.36. CLI Version: 4.1.10.42 RaidAPI Version: 2.3.10.1088 Welcome to RAID Command Line Interface. > info -o vd Virtual Disk Information ------------------------- id: 0 name: RAID1_SSD status: functional Stripe size: 64 RAID mode: RAID1 Cache mode: Not Support size: 488306 M BGA status: not running Block ids: 4 0 # of PDs: 2 PD RAID setup: 3 2 Running OS: no Total # of VD: 1
獎勵:即使是 Web UI 也確實有效!