无法通过Windows文件系统备份枚举磁盘
适用场景
问题描述
SnapCenter UI不会显示给定Microsoft插件主机的磁盘,并在中显示以下错误 SCWDebug.log
:
2023-04-21T11:11:52.3126576+02:00 Information SDW PID=[4960] TID=[1000] Get disks, volumes and partitions on my-hostname0010
2023-04-21T11:11:52.3126576+02:00 Verbose SDW PID=[4960] TID=[1000] query: SELECT * FROM MSFT_StorageNode WHERE Name = 'my-hostname0010.Oster.local'
2023-04-21T11:11:52.3126576+02:00 Verbose SDW PID=[4960] TID=[1000] scope: \\my-hostname0010\root\Microsoft\Windows\Storage
2023-04-21T11:11:52.3282250+02:00 Error SDW PID=[4960] TID=[1000] Error: Failed to get disks. 'results' null
2023-04-21T11:11:52.3282250+02:00 Verbose SDW PID=[4960] TID=[1000] GetNodeSpecificHostStorageData: Caught exception: 'Error: Failed to get disks. 'results' null'
2023-04-21T11:11:52.3282250+02:00 Verbose SDW PID=[4960] TID=[1000] GetNodeSpecificHostStorageData: Stack trace: at SnapDrive.Nsf.Core.Host.HostDiscoveryManager.GetNodeSpecificHostStorageData(String host, Boolean isAlm)
此查询将使用此名称运行 my-hostname0010
、但此主机已注册到NSM MySQL元数据数据库中、并且主机ID为2、其名称为my-hostname001002.domain.local
同一查询在插件主机上从PowerShell手动运行时会显示空输出:
gwmi -Namespace ROOT/Microsoft/Windows/Storage -Query "select * from MSFT_StorageNode WHERE Name ='my-hostname0010.domain.local'"
但是、对正确的主机名运行查询会正确返回输出:
gwmi -Namespace ROOT/Microsoft/Windows/Storage -Query "select * from MSFT_StorageNode WHERE Name ='my-hostname001002.domain.local'"