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 4E1EE91999 for ; Thu, 22 Dec 2022 14:51:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 35B711C157 for ; Thu, 22 Dec 2022 14:51:15 +0100 (CET) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 22 Dec 2022 14:51:13 +0100 (CET) Received: by picard.linux.it (Postfix, from userid 10) id 2DF683CB9B5; Thu, 22 Dec 2022 14:51:00 +0100 (CET) Received: from 37-186-212-162.ip270.fastwebnet.it ([37.186.212.162] helo=hermione.sv.lnf.it) by eraldo.lilliput.linux.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1p8LrZ-0002Zq-1m for pve-user@lists.proxmox.com; Thu, 22 Dec 2022 14:43:57 +0100 Received: by hermione.sv.lnf.it (Postfix, from userid 1000) id 3F5C9A00110; Thu, 22 Dec 2022 14:43:56 +0100 (CET) Date: Thu, 22 Dec 2022 14:43:56 +0100 From: Marco Gaiarin To: pve-user@lists.proxmox.com Message-ID: MIME-Version: 1.0 Organization: Casa Gaiarin User-Agent: Mutt/2.1.4 (2021-12-11) X-SPAM-LEVEL: Spam detection results: 0 AWL 0.015 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% JMQ_SPF_NEUTRAL 0.5 SPF set to ?all KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Thu, 22 Dec 2022 15:13:30 +0100 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [PVE-User] Strange SMART data behaviour... smartd and PVE have different serial... X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2022 13:51:15 -0000 Look at the photo attached. Srver just installed, four HDD (that SMART and PVE identify correctly) and two SSD disk that PVE put in state 'UNKNOWN'. SSD disks are behind an HP controller, put in HBA mode. But if i try to check the disks using 'smartctl': root@svpve3:~# smartctl -d cciss,0 -a /dev/sde smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.4.203-1-pve] (local build) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Phison Driven SSDs Device Model: KINGSTON SEDC500M480G Serial Number: 50026B7282DBBD5D LU WWN Device Id: 5 0026b7 282dbbd5d Firmware Version: SCEKJ2.8 User Capacity: 480,103,981,056 bytes [480 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available, deterministic, zeroed Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-3 (minor revision not indicated) SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Thu Dec 22 14:37:16 2022 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled note that the serial are different. If i add to 'smartd.conf: /dev/sde -d cciss,0 -a -m root -M exec /usr/share/smartmontools/smartd-runner /dev/sdf -d cciss,1 -a -m root -M exec /usr/share/smartmontools/smartd-runner disks get monitored, but state file have the 'smartd' serial, not the 'PVE' serial. root@svpve3:~# ls -la /var/lib/smartmontools/ total 106 drwxr-xr-x 3 root root 19 Dec 22 14:40 . drwxr-xr-x 40 root root 40 Dec 21 14:08 .. -rw-r--r-- 1 root root 347 Dec 22 14:40 attrlog.KINGSTON_SEDC500M480G-50026B7282DBB86A.ata.csv -rw-r--r-- 1 root root 351 Dec 22 14:40 attrlog.KINGSTON_SEDC500M480G-50026B7282DBBD5D.ata.csv -rw-r--r-- 1 root root 16638 Dec 22 14:40 attrlog.ST8000VN004_3CP101-WRQ0WQ44.ata.csv -rw-r--r-- 1 root root 16665 Dec 22 14:40 attrlog.ST8000VN004_3CP101-WWZ1MBA8.ata.csv -rw-r--r-- 1 root root 16768 Dec 22 14:40 attrlog.ST8000VN004_3CP101-WWZ1Q7F1.ata.csv -rw-r--r-- 1 root root 16626 Dec 22 14:40 attrlog.ST8000VN004_3CP101-WWZ1RFL5.ata.csv drwxr-xr-x 2 root root 3 Dec 19 16:33 drivedb -rw-r--r-- 1 root root 3206 Dec 22 14:40 smartd.KINGSTON_SEDC500M480G-50026B7282DBB86A.ata.state -rw-r--r-- 1 root root 3209 Dec 22 14:40 smartd.KINGSTON_SEDC500M480G-50026B7282DBBD5D.ata.state -rw-r--r-- 1 root root 2529 Dec 22 14:40 smartd.ST8000VN004_3CP101-WRQ0WQ44.ata.state -rw-r--r-- 1 root root 2530 Dec 22 14:40 smartd.ST8000VN004_3CP101-WRQ0WQ44.ata.state~ -rw-r--r-- 1 root root 2530 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1MBA8.ata.state -rw-r--r-- 1 root root 2531 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1MBA8.ata.state~ -rw-r--r-- 1 root root 2533 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1Q7F1.ata.state -rw-r--r-- 1 root root 2533 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1Q7F1.ata.state~ -rw-r--r-- 1 root root 2531 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1RFL5.ata.state -rw-r--r-- 1 root root 2531 Dec 22 14:40 smartd.ST8000VN004_3CP101-WWZ1RFL5.ata.state~ What i'm missing here? Where PVE get the disk serial? Thanks.