The vm-support --loglevel 0 command takes an excessively long time (approximately two hours) to generate a diagnostic log bundle on an ESXi host.
/var/log/vmsupport.log indicates the following timed out ERROR: naa.###############: failed to scan disk partitions Traceback (most recent call last): File "/usr/lib/vmware/vm-support/bin/systemStorageDebug.py", line 502, in scanPartitions File "/lib64/python3.11/site-packages/systemStorage/esxdisk.py", line 304, in scanPartitions File "/lib64/python3.11/site-packages/systemStorage/esxdisk.py", line 151, in scan File "/lib64/python3.11/site-packages/systemStorage/mbr.py", line 323, in scan File "/lib64/python3.11/site-packages/systemStorage/blockdev.py", line 140, in readBlock TimeoutError: [Errno 110] Connection timed out
/var/run/log/vmkernel logs for naa.############### shows D:0x18 i.e. Reservation Conflicts
vmkernel: cpu9:2098137)NMP: nmp_ResetDeviceLogThrottling:3845: Error status H:0x0 D:0x18 P:0x0 Sense Data: 0x0 0x0 0x0 from dev "naa.###############" occurred 1999 times(of 1999 commands)
vmkernel: cpu16:2098137)NMP: nmp_ResetDeviceLogThrottling:3845: Error status H:0x0 D:0x18 P:0x0 Sense Data: 0x0 0x0 0x0 from dev "naa.##################" occurred 1802 times(of 1802 commands)
esxcli storage core devie list and verify Lun Configuration:
naa.############: Display Name: IBM Fibre Channel Disk (naa.##############) Has Settable Display Name: true Size: 512000 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/naa.############# Vendor: IBM Model: 2107900 Revision: .126 Is Perennially Reserved: false
VMware vSphere Esxi 7.x
VMware vSphere Esxi 8.x
VMware vSAN 7.x
VMware vSAN 8.x
The delay is caused by the /usr/lib/vmware/vm-support/bin/systemStorageDebug.pyc Python script, which fails to scan Raw Device Mapping (RDM) disks configured for virtual machines, while VMDKs are stored on a vSAN datastore. The RDM disks are not marked as perennially reserved, leading to SCSI reservation conflicts. These conflicts cause the script to timeout while probing the affected Logical Unit Numbers (LUNs), significantly slowing down the log bundle generation process.
To resolve the issue, configure the affected RDM disks as perennially reserved to prevent SCSI reservation conflicts. Follow these steps:
Option 1: Using the vSphere Client
Option 2: Using the ESXi Command Line
esxcli storage core device setconfig -d <naa.id> --perennially-reserved=true
esxcli storage core device list -d <naa.id> | grep Perennially
Expected Output: Is Perennially Reserved: true