[pve-devel] [PATCH v2 storage] Diskmanage: Use S.M.A.R.T. attributes for SSDs wearout lookup

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 29 19:21:17 CET 2020


On 24.10.20 21:27, Jan-Jonas Sämann wrote:
> This replaces a locally maintained hardware map in
> get_wear_leveling_info() by commonly used register names of
> smartmontool. Smartmontool maintains a labeled register database that
> contains a majority of drives (including versions). The current lookup
> produces false estimates, this approach hopefully provides more reliable
> data.
> 
> Signed-off-by: Jan-Jonas Sämann <sprinterfreak at binary-kitchen.de>
> ---
>  PVE/Diskmanage.pm | 58 +++++++++++++++++++++++------------------------
>  1 file changed, 28 insertions(+), 30 deletions(-)

so, I was about to apply this, but it fails the disks test now, could you please
adapt them so that the new checks are covered.

The respective test could be run standalone with:

# cd test
# ./run_disk_tests.pl






More information about the pve-devel mailing list