Marvell 88SE9230의 리눅스. 통계를 얻는 방법?

Marvell 88SE9230의 리눅스. 통계를 얻는 방법?

내 홈 Linux 서버에서 Marvell 88SE9230 컨트롤러를 사용하고 있습니다. HP에는 습격을 설정하고 일부 통계를 얻을 수 있는 유틸리티가 있습니다. 하지만 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

컨트롤러에서 적어도 일부 통계를 얻으려면 어떻게 해야 합니까?

답변1

확인할 수 있습니다. 여기서도 지원이 부족합니다(Marvel 칩셋을 통해 장치에서 스마트 통계를 얻으려고 할 때 출력은 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

보너스: 웹 UI도 작동합니다!

Linux 웹 UI의 Marvel MSU

관련 정보