qlozin

New Member
May 27, 2024
2
0
1
Hi,
I am new to promox VE. Sorry for my foo question.

I have a LSi 2308 SAS Controller to manage some disks. (Most people don't use this. But second hand SAS disk are cheaper.)

And using qm set 101 -scsi1 /dev/disk/by-id/XXXX to pass-through a disk.

I want to monitor disk status in 101, but there's no data (such as 0℃ temperature result) and it's working in promox.

101: smartctl -a /dev/sdb

Bash:
root@nas:~# smartctl -a /dev/sdb
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-21-amd64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               QEMU
Product:              QEMU HARDDISK
Revision:             2.5+
Compliance:           SPC-3
User Capacity:        3,000,592,982,016 bytes [3.00 TB]
Logical block size:   512 bytes
LU is thin provisioned, LBPRZ=0
Device type:          disk
Local Time is:        Mon May 27 12:53:18 2024 CST
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

Device does not support Self Test logging

promox: smartctl -a /dev/sde

Bash:
root@pve:/# smartctl -a /dev/sde
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.5.11-8-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HITACHI
Product:              HUS723030ALS640
Revision:             M2D4
Compliance:           SPC-4
User Capacity:        3,000,592,982,016 bytes [3.00 TB]
Logical block size:   512 bytes
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca03e2b1ba4
Serial number:        YVGSPY8D
Device type:          disk
Transport protocol:   SAS (SPL-4)
Local Time is:        Mon May 27 12:53:50 2024 CST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     40 C
Drive Trip Temperature:        85 C
.....


  • Is it possible to get disk status in VM?
  • Or it's wrong way to pass through a disk ?
I don't want to passthrough all the LSI2308's into the VM.​

promox 8.1.4

1716785901121.png

Thanks a lot.



Deepmind Translator Support , Trying to be accurate ❤
 
As you can see its QEMU passing the disk to VM - so no SMART HW data from disk.
AFAIK only if you passthrough the HW controller is there any chance of getting direct SMART data from disk.
But you should be able to get the SMART data from the host.
So what happens if you check that drive from the host ? So maybe:

proxmox: smartctl -a /dev/sdb

Any alerting etc. can also be done for that drive from host. So I'm not sure why you want it specifically from within the VM.
 
As you can see its QEMU passing the disk to VM - so no SMART HW data from disk.
AFAIK only if you passthrough the HW controller is there any chance of getting direct SMART data from disk.
But you should be able to get the SMART data from the host.
So what happens if you check that drive from the host ? So maybe:

proxmox: smartctl -a /dev/sdb

Any alerting etc. can also be done for that drive from host. So I'm not sure why you want it specifically from within the VM.
Thanks for the reply. ❤

I'm trying to build a NAS using openmediavault in VM and there are some great automated alerting solutions inside.

I am new in promox so building lots of service may take mistakes then mass. QAQ

It seems there are two choices: Pass through full control or monitor from host.

Deepmind Translator Support , Barely to be accurate :(
 
It seems there are two choices: Pass through full control or monitor from host.
Yes, that is pretty much your choice.

However (& I don't use OMV at all); It may be possible (theoretically) to get the SMART data in OMV by getting it through an API/SSH from the Proxmox Host. I can't help you with that - and almost surely it will take a lot of tinkering - not the automated built-in alerts in OMV you are looking at.
 

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!