PVE GUI: SMART-Status einer SAS-HDD ist "Unknown", liegt wohl am HBA Controler im LSI mode

Dec 25, 2021
18
0
6
61
Ich habe eine SanDisk X421_HCOBE450A10 450 GB mit diesem Controller angeschlossen:

HPE H241 12Gb 2-ports Ext Smart Host Bus Adapter 726911-B21

Leider wird im PVE GUI der SMART-Status mit "Unknown" angezeigt. Auf der Kommandozeile fordert smartctl die Option -d cciss,0, mit smartctl -d cciss,0 -a /dev/sda klappt das dann auch. Ich habe /usr/share/perl5/PVE/Diskmanage.pm deswegen mit push @$cmd, '-d cciss,0'; ergänzt, doch dann werden beide HDDs mit SMART "Unknown" angezeigt. Hat jemand eine Idee? Mit anderen Controllern gibt es das Problem nicht.
 

Attachments

  • Selection_001.png
    Selection_001.png
    70.8 KB · Views: 11
  • Selection_002.png
    Selection_002.png
    156.8 KB · Views: 10
  • Selection_003.png
    Selection_003.png
    90.4 KB · Views: 9
  • Selection_005.png
    Selection_005.png
    109.9 KB · Views: 6
Last edited:
Hi,

ich hatte das gleiche Problem. Versuche es mal folgendes in deiner Diskmanage.pm

my $cmd = [$SMARTCTL, '-H'];
#HP controller
# Slot 1
push @$cmd, '-d', 'cciss,0' if ($disk =~ /sda$/);
push @$cmd, '-d', 'cciss,1' if ($disk =~ /sdb$/);
push @$cmd, '-d', 'cciss,2' if ($disk =~ /sdc$/);
push @$cmd, '-d', 'cciss,3' if ($disk =~ /sdd$/);
# Slot 2
# push @$cmd, '-d', 'cciss,4' if ($disk =~ /sde$/);
# push @$cmd, '-d', 'cciss,5' if ($disk =~ /sdf$/);
# push @$cmd, '-d', 'cciss,6' if ($disk =~ /sdg$/);
# push @$cmd, '-d', 'cciss,7' if ($disk =~ /sdh$/);
# usb
push @$cmd, '-d', 'sat' if ($disk =~ /sdaa$/);
# sas
push @$cmd, '-d', 'scsi' if ($disk =~ /sd[mnop]$/);
###
push @$cmd, '-A', '-f', 'brief' if !$healthonly;
push @$cmd, $disk;


Die Dienste noch neu Starten.

systemctl restart pvedaemon pveproxy


Grüße aus Heidelberg
 
  • Like
Reactions: Marek Möhling
Vielen Dank, bin erst jetzt dazu gekommen. Habe mittlerweile auf v7.3-3 upgedatet, was leider nichts geändert hat, das Skript half mir dagegen nach einigem Experimentieren mit einer Zeile: (sda ist SATA, sd[bcdefghi] sind bei Vollbelegegung die Laufwerke im ersten Slot mit dem problematischen HBA)

Code:
push @$cmd, '-d', 'scsi' if ($disk =~ /sd[bcdefghi]$/);

sdb ist hier ein USB-Stick, der jetzt auch richtig angezeigt wird. (bin aber nicht sicher, ob das Ergebnis konsistent ist, werde ich testen)

sdd ist in diesem Test im zweiten Slot mit einem HBA, der keine Probleme macht, er zeigt aber auch jetzt das richtige Ergebnis an.
Werde nach Entfernen des USB-Sticks dies verwenden: (habe zwei Slots mit je acht SAS-HDDs und jeweils eigenem HBA, sda ist immer SATA mit dem OS)

Code:
push @$cmd, '-d', 'scsi' if ($disk =~ /sd[b-z]$/);
 

Attachments

  • Selection_001.png
    Selection_001.png
    330 KB · Views: 5
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!