Hello,
I found something strange in regards to SMART info retrieved from my proxmox install.
I have 2 NVME Drives:
Samsung Drive:
Toshiba Drive:
However after some digging around it seems that the mapping of the controllers and block devices are switched. So the info shown is probably received from the SMART data from the controller /dev/nvme0 and /dev/nvme1 but when showing the SMART values it takes them from /dev/nvme0n1 and /dev/nvme1n1 which created the mixup that I had excessive writes on the boot drive and almost none on the ZFS drive.
I've added the outputs from smartctl below.
The following shows the output from /sys/block and you can see that the paths are mixed up, nvme0n1 via /nvme/nvme0 and vice versa. I've checked the PCI IDs as well so.
Does anybody have an idea of what happened here since the block device is mapped on the other controller on the system. Can't find much info about the mapping on the web.
Thanks!
I found something strange in regards to SMART info retrieved from my proxmox install.
I have 2 NVME Drives:
- 1x Toshiba RC-100 240 GB as boot drive with LVM
- 1x Samsung 970 Evor 1TB as ZFS drive
Samsung Drive:
Toshiba Drive:
However after some digging around it seems that the mapping of the controllers and block devices are switched. So the info shown is probably received from the SMART data from the controller /dev/nvme0 and /dev/nvme1 but when showing the SMART values it takes them from /dev/nvme0n1 and /dev/nvme1n1 which created the mixup that I had excessive writes on the boot drive and almost none on the ZFS drive.
I've added the outputs from smartctl below.
Code:
root@proxmox01:~# smartctl -i /dev/nvme0
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.18-9-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
=== START OF INFORMATION SECTION ===
Model Number: TOSHIBA-RC100
Serial Number: XXXXX
Firmware Version: ADRA0101
PCI Vendor/Subsystem ID: 0x1179
IEEE OUI Identifier: 0x00080d
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 240,057,409,536 [240 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Dec 7 14:07:02 2018 CET
root@proxmox01:~# smartctl -i /dev/nvme0n1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.18-9-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 970 EVO 1TB
Serial Number: XXXXX
Firmware Version: 2B2QEXE7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity: 0
Controller ID: 4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB]
Namespace 1 Utilization: 399,893,221,376 [399 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Dec 7 14:07:07 2018 CET
root@proxmox01:~# smartctl -i /dev/nvme1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.18-9-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 970 EVO 1TB
Serial Number: XXXXX
Firmware Version: 2B2QEXE7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity: 0
Controller ID: 4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB]
Namespace 1 Utilization: 399,893,426,176 [399 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Dec 7 14:07:11 2018 CET
root@proxmox01:~# smartctl -i /dev/nvme1n1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.18-9-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
=== START OF INFORMATION SECTION ===
Model Number: TOSHIBA-RC100
Serial Number: XXXXX
Firmware Version: ADRA0101
PCI Vendor/Subsystem ID: 0x1179
IEEE OUI Identifier: 0x00080d
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 240,057,409,536 [240 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Dec 7 14:07:13 2018 CET
The following shows the output from /sys/block and you can see that the paths are mixed up, nvme0n1 via /nvme/nvme0 and vice versa. I've checked the PCI IDs as well so.
Code:
root@proxmox01:~# lspci |grep -i Non-Volatile
02:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 0113 (rev 01)
65:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a808
Code:
root@proxmox01:~# ls -l /sys/block/nvme0n1
lrwxrwxrwx 1 root root 0 Dec 7 12:10 /sys/block/nvme0n1 -> ../devices/pci0000:64/0000:64:02.0/0000:65:00.0/nvme/nvme1/nvme0n1
root@proxmox01:~# ls -l /sys/block/nvme1n1
lrwxrwxrwx 1 root root 0 Dec 7 12:10 /sys/block/nvme1n1 -> ../devices/pci0000:00/0000:00:1c.2/0000:02:00.0/nvme/nvme0/nvme1n1
Does anybody have an idea of what happened here since the block device is mapped on the other controller on the system. Can't find much info about the mapping on the web.
Thanks!