From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9E69A642D5 for ; Fri, 30 Oct 2020 04:32:25 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9AC49D1C3 for ; Fri, 30 Oct 2020 04:32:25 +0100 (CET) Received: from lithium.binary-kitchen.net (lithium.binary-kitchen.net [IPv6:2a02:958:0:f6::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 67E01D1A8 for ; Fri, 30 Oct 2020 04:32:24 +0100 (CET) Received: from jayjay.reg.saenet.de (p5dc3c0b1.dip0.t-ipconnect.de [93.195.192.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by lithium.binary-kitchen.net (Postfix) with ESMTPSA id 3CFB842455; Fri, 30 Oct 2020 04:32:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=binary-kitchen.de; s=mail-20190723; t=1604028737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hk2ZrXZ7z860X6JGGB69KBI37FjWh0RCCC5oC/LQPXc=; b=NJXghu5HULaU1wpWQNFg/Y/tW/8vgSdFLPS+G1VqDz4+dEoxLwu0Wu4yLn/hPH7Hk6j3O+ 3H3NNLeBxBYmvz2RJLs/5uhLjLibT2jNGau8077yJPBPhnDuWjWKifNOoZA0uHLGGl1nDd i2WZ6GhdhyloTR7WSb1HKldhOQe4sSo8k/O/zL1kMEU36dDbdkFbSRqWCmd5hb98GyGl9P 5fPL3rN7SEU4QNEcKrt7yfQcCNXMZrIoJhCqzYgK8YgK1zWPwi1xSPjjt32uw9iJJIk14M Xqv99KsS+93nH/N+zKqkpebcfttCXZRNXmB9uXb7I0tlgo3jv+U0CYNAGr1Q6JNd0XCgwj R3SBsFVqdazC8lPjNNIJXSs48GON0FYMC+LM6FDfrqbSE9eAeqTnEIRVqnNoH+L5ho/WQt A2j9+o2paeP+tYTOOuVFwsrI25cPJF7pM2t7ZPxF5RTfn53Cs93NO4TX8TUq9gXpn+10Bx MhXaKmAbuAWNLF0CSH7Yd87BssoyXtYgfoiSN+U093rlE0u6ZH3JaL0wEbsEzNnTlBjjVN TqeZJJessTL9dHrLZYdul1ojd9qkakyL1YhWXjQiGXeiCBiYsn2o3kPsmw6BPIgMeFhGrX v1YgUS2/tXbBsDb0MJU8TpMi9ctHpFKpol1zeyPUfqfmsQYJpQfLo= From: =?UTF-8?q?Jan-Jonas=20S=C3=A4mann?= To: pve-devel@lists.proxmox.com Cc: =?UTF-8?q?Jan-Jonas=20S=C3=A4mann?= Date: Fri, 30 Oct 2020 04:31:48 +0100 Message-Id: <20201030033149.19828-2-sprinterfreak@binary-kitchen.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201030033149.19828-1-sprinterfreak@binary-kitchen.de> References: <8f4377de-7b18-461b-4882-26a7e59affa1@proxmox.com> <20201030033149.19828-1-sprinterfreak@binary-kitchen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=sprinterfreak smtp.mailfrom=sprinterfreak@binary-kitchen.de X-SPAM-LEVEL: Spam detection results: 0 AWL -0.156 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [binary-kitchen.de, smartmontools.org] Subject: [pve-devel] [PATCH storage v3 1/2] Update disk_tests/ssd_smart/sde data X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2020 03:32:25 -0000 From: Jan-Jonas Sämann Provides recent test data for disk_tests/ssd_smart/sde_smart. The previous data was created using an older smartmontools version, which did not yet support the drive and therefore had bogus attribute mapping. Signed-off-by: Jan-Jonas Sämann --- test/disk_tests/ssd_smart/sde_smart | 33 +- .../ssd_smart/sde_smart_expected.json | 286 +++++++++++++++--- 2 files changed, 270 insertions(+), 49 deletions(-) diff --git a/test/disk_tests/ssd_smart/sde_smart b/test/disk_tests/ssd_smart/sde_smart index 147790b..f6f01d6 100644 --- a/test/disk_tests/ssd_smart/sde_smart +++ b/test/disk_tests/ssd_smart/sde_smart @@ -1,5 +1,5 @@ -smartctl 6.4 2014-10-07 r4002 [x86_64-linux-4.4.19-1-pve] (local build) -Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org +smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.65-1-pve] (local build) +Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED @@ -7,13 +7,34 @@ SMART overall-health self-assessment test result: PASSED SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE -177 Wear_Leveling_Count ------ 000 000 000 - 0 -230 Unknown_SSD_Attribute PO--C- 100 100 000 - 100 -231 Temperature_Celsius ------ 091 091 011 - 4294967296 -233 Media_Wearout_Indicator -O--CK 000 000 000 - 43362 + 1 Raw_Read_Error_Rate -O--CK 120 120 050 - 0/0 + 5 Retired_Block_Count PO--CK 100 100 003 - 0 + 9 Power_On_Hours_and_Msec -O--CK 091 091 000 - 7963h+07m+54.620s + 12 Power_Cycle_Count -O--CK 099 099 000 - 1153 +171 Program_Fail_Count -O-R-- 100 100 000 - 0 +172 Erase_Fail_Count -O--CK 100 100 000 - 0 +174 Unexpect_Power_Loss_Ct ----CK 000 000 000 - 113 +177 Wear_Range_Delta ------ 000 000 000 - 1 +181 Program_Fail_Count -O-R-- 100 100 000 - 0 +182 Erase_Fail_Count -O--CK 100 100 000 - 0 +187 Reported_Uncorrect -O--C- 100 100 000 - 0 +189 Airflow_Temperature_Cel ------ 027 049 000 - 27 (Min/Max 2/49) +194 Temperature_Celsius -O---K 027 049 000 - 27 (Min/Max 2/49) +195 ECC_Uncorr_Error_Count --SRC- 120 120 000 - 0/0 +196 Reallocated_Event_Count PO--CK 100 100 003 - 0 +201 Unc_Soft_Read_Err_Rate --SRC- 120 120 000 - 0/0 +204 Soft_ECC_Correct_Rate --SRC- 120 120 000 - 0/0 +230 Life_Curve_Status PO--C- 100 100 000 - 100 +231 SSD_Life_Left ------ 091 091 011 - 4294967296 +233 SandForce_Internal -O--CK 000 000 000 - 6317 +234 SandForce_Internal -O--CK 000 000 000 - 4252 +241 Lifetime_Writes_GiB -O--CK 000 000 000 - 4252 +242 Lifetime_Reads_GiB -O--CK 000 000 000 - 34599 +244 Unknown_Attribute ------ 099 099 010 - 4063273 ||||||_ K auto-keep |||||__ C event count ||||___ R error rate |||____ S speed/performance ||_____ O updated online |______ P prefailure warning + diff --git a/test/disk_tests/ssd_smart/sde_smart_expected.json b/test/disk_tests/ssd_smart/sde_smart_expected.json index f4e4bdf..1d45c1d 100644 --- a/test/disk_tests/ssd_smart/sde_smart_expected.json +++ b/test/disk_tests/ssd_smart/sde_smart_expected.json @@ -1,46 +1,246 @@ { - "attributes" : [ - { - "worst" : 0, - "threshold" : 0, - "name" : "Wear_Leveling_Count", - "value" : 0, - "id" : "177", - "raw" : "0", - "flags" : "------", - "fail" : "-" - }, - { - "worst" : 100, - "name" : "Unknown_SSD_Attribute", - "threshold" : 0, - "id" : "230", - "fail" : "-", - "flags" : "PO--C-", - "raw" : "100", - "value" : 100 - }, - { - "worst" : 91, - "threshold" : 11, - "name" : "Temperature_Celsius", - "id" : "231", - "flags" : "------", - "raw" : "4294967296", - "fail" : "-", - "value" : 91 - }, - { - "worst" : 0, - "threshold" : 0, - "name" : "Media_Wearout_Indicator", - "id" : "233", - "flags" : "-O--CK", - "raw" : "43362", - "fail" : "-", - "value" : 0 + "health": "PASSED", + "type": "ata", + "attributes": [ + { + "fail": "-", + "id": " 1", + "raw": "0/0", + "flags": "-O--CK", + "name": "Raw_Read_Error_Rate", + "threshold": 50, + "value": 120, + "worst": 120 + }, + { + "id": " 5", + "fail": "-", + "value": 100, + "worst": 100, + "threshold": 3, + "name": "Retired_Block_Count", + "flags": "PO--CK", + "raw": "0" + }, + { + "fail": "-", + "id": " 9", + "raw": "7963h+07m+54.620s", + "flags": "-O--CK", + "worst": 91, + "value": 91, + "name": "Power_On_Hours_and_Msec", + "threshold": 0 + }, + { + "id": " 12", + "fail": "-", + "threshold": 0, + "name": "Power_Cycle_Count", + "worst": 99, + "value": 99, + "flags": "-O--CK", + "raw": "1153" + }, + { + "flags": "-O-R--", + "raw": "0", + "worst": 100, + "value": 100, + "threshold": 0, + "name": "Program_Fail_Count", + "fail": "-", + "id": "171" + }, + { + "fail": "-", + "id": "172", + "flags": "-O--CK", + "raw": "0", + "name": "Erase_Fail_Count", + "threshold": 0, + "worst": 100, + "value": 100 + }, + { + "fail": "-", + "id": "174", + "raw": "113", + "flags": "----CK", + "value": 0, + "worst": 0, + "threshold": 0, + "name": "Unexpect_Power_Loss_Ct" + }, + { + "id": "177", + "fail": "-", + "value": 0, + "worst": 0, + "name": "Wear_Range_Delta", + "threshold": 0, + "flags": "------", + "raw": "1" + }, + { + "flags": "-O-R--", + "raw": "0", + "threshold": 0, + "name": "Program_Fail_Count", + "worst": 100, + "value": 100, + "fail": "-", + "id": "181" + }, + { + "threshold": 0, + "name": "Erase_Fail_Count", + "value": 100, + "worst": 100, + "flags": "-O--CK", + "raw": "0", + "id": "182", + "fail": "-" + }, + { + "flags": "-O--C-", + "raw": "0", + "value": 100, + "worst": 100, + "threshold": 0, + "name": "Reported_Uncorrect", + "fail": "-", + "id": "187" + }, + { + "value": 27, + "worst": 49, + "name": "Airflow_Temperature_Cel", + "threshold": 0, + "flags": "------", + "raw": "27 (Min/Max 2/49)", + "id": "189", + "fail": "-" + }, + { + "threshold": 0, + "name": "Temperature_Celsius", + "worst": 49, + "value": 27, + "flags": "-O---K", + "raw": "27 (Min/Max 2/49)", + "id": "194", + "fail": "-" + }, + { + "id": "195", + "fail": "-", + "worst": 120, + "value": 120, + "threshold": 0, + "name": "ECC_Uncorr_Error_Count", + "raw": "0/0", + "flags": "--SRC-" + }, + { + "fail": "-", + "id": "196", + "raw": "0", + "flags": "PO--CK", + "threshold": 3, + "name": "Reallocated_Event_Count", + "value": 100, + "worst": 100 + }, + { + "value": 120, + "worst": 120, + "threshold": 0, + "name": "Unc_Soft_Read_Err_Rate", + "flags": "--SRC-", + "raw": "0/0", + "id": "201", + "fail": "-" + }, + { + "raw": "0/0", + "flags": "--SRC-", + "value": 120, + "worst": 120, + "threshold": 0, + "name": "Soft_ECC_Correct_Rate", + "fail": "-", + "id": "204" + }, + { + "value": 100, + "worst": 100, + "threshold": 0, + "name": "Life_Curve_Status", + "raw": "100", + "flags": "PO--C-", + "id": "230", + "fail": "-" + }, + { + "id": "231", + "fail": "-", + "worst": 91, + "value": 91, + "name": "SSD_Life_Left", + "threshold": 11, + "flags": "------", + "raw": "4294967296" + }, + { + "raw": "6317", + "flags": "-O--CK", + "name": "SandForce_Internal", + "threshold": 0, + "value": 0, + "worst": 0, + "fail": "-", + "id": "233" + }, + { + "value": 0, + "worst": 0, + "name": "SandForce_Internal", + "threshold": 0, + "flags": "-O--CK", + "raw": "4252", + "id": "234", + "fail": "-" + }, + { + "worst": 0, + "value": 0, + "name": "Lifetime_Writes_GiB", + "threshold": 0, + "flags": "-O--CK", + "raw": "4252", + "id": "241", + "fail": "-" + }, + { + "flags": "-O--CK", + "raw": "34599", + "value": 0, + "worst": 0, + "threshold": 0, + "name": "Lifetime_Reads_GiB", + "fail": "-", + "id": "242" + }, + { + "threshold": 10, + "name": "Unknown_Attribute", + "worst": 99, + "value": 99, + "flags": "------", + "raw": "4063273", + "id": "244", + "fail": "-" } - ], - "type" : "ata", - "health" : "PASSED" + ] } -- 2.25.1