github.com/vmware/govmomi@v0.51.0/simulator/esx/host_storage_device_info.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package esx 6 7 import "github.com/vmware/govmomi/vim25/types" 8 9 // HostStorageDeviceInfo is the default template for the HostSystem config.storageDevice property. 10 // Capture method: 11 // 12 // govc object.collect -s -dump HostSystem:ha-host config.storageDevice 13 var HostStorageDeviceInfo = types.HostStorageDeviceInfo{ 14 HostBusAdapter: []types.BaseHostHostBusAdapter{ 15 &types.HostParallelScsiHba{ 16 HostHostBusAdapter: types.HostHostBusAdapter{ 17 Key: "key-vim.host.ParallelScsiHba-vmhba0", 18 Device: "vmhba0", 19 Bus: 3, 20 Status: "unknown", 21 Model: "PVSCSI SCSI Controller", 22 Driver: "pvscsi", 23 Pci: "0000:03:00.0", 24 }, 25 }, 26 &types.HostBlockHba{ 27 HostHostBusAdapter: types.HostHostBusAdapter{ 28 Key: "key-vim.host.BlockHba-vmhba1", 29 Device: "vmhba1", 30 Bus: 0, 31 Status: "unknown", 32 Model: "PIIX4 for 430TX/440BX/MX IDE Controller", 33 Driver: "vmkata", 34 Pci: "0000:00:07.1", 35 }, 36 }, 37 &types.HostBlockHba{ 38 HostHostBusAdapter: types.HostHostBusAdapter{ 39 Key: "key-vim.host.BlockHba-vmhba64", 40 Device: "vmhba64", 41 Bus: 0, 42 Status: "unknown", 43 Model: "PIIX4 for 430TX/440BX/MX IDE Controller", 44 Driver: "vmkata", 45 Pci: "0000:00:07.1", 46 }, 47 }, 48 }, 49 ScsiLun: []types.BaseScsiLun{ 50 &types.ScsiLun{ 51 HostDevice: types.HostDevice{ 52 DeviceName: "/vmfs/devices/cdrom/mpx.vmhba1:C0:T0:L0", 53 DeviceType: "cdrom", 54 }, 55 Key: "key-vim.host.ScsiLun-0005000000766d686261313a303a30", 56 Uuid: "0005000000766d686261313a303a30", 57 Descriptor: []types.ScsiLunDescriptor{ 58 { 59 Quality: "lowQuality", 60 Id: "mpx.vmhba1:C0:T0:L0", 61 }, 62 { 63 Quality: "lowQuality", 64 Id: "vml.0005000000766d686261313a303a30", 65 }, 66 { 67 Quality: "lowQuality", 68 Id: "0005000000766d686261313a303a30", 69 }, 70 }, 71 CanonicalName: "mpx.vmhba1:C0:T0:L0", 72 DisplayName: "Local NECVMWar CD-ROM (mpx.vmhba1:C0:T0:L0)", 73 LunType: "cdrom", 74 Vendor: "NECVMWar", 75 Model: "VMware IDE CDR00", 76 Revision: "1.00", 77 ScsiLevel: 5, 78 SerialNumber: "unavailable", 79 DurableName: (*types.ScsiLunDurableName)(nil), 80 AlternateName: []types.ScsiLunDurableName{ 81 { 82 Namespace: "GENERIC_VPD", 83 NamespaceId: 0x5, 84 Data: []uint8{0x0, 0x0, 0x0, 0x4, 0x0, 0xb0, 0xb1, 0xb2}, 85 }, 86 { 87 Namespace: "GENERIC_VPD", 88 NamespaceId: 0x5, 89 Data: []uint8{0x0, 0xb2, 0x0, 0x4, 0x1, 0x60, 0x0, 0x0}, 90 }, 91 }, 92 StandardInquiry: []uint8{0x0, 0x0, 0x6, 0x2, 0x1f, 0x0, 0x0, 0x72}, 93 QueueDepth: 0, 94 OperationalState: []string{"ok"}, 95 Capabilities: &types.ScsiLunCapabilities{}, 96 VStorageSupport: "vStorageUnsupported", 97 ProtocolEndpoint: types.NewBool(false), 98 }, 99 &types.HostScsiDisk{ 100 ScsiLun: types.ScsiLun{ 101 HostDevice: types.HostDevice{ 102 DeviceName: "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0", 103 DeviceType: "disk", 104 }, 105 Key: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30", 106 Uuid: "0000000000766d686261303a303a30", 107 Descriptor: []types.ScsiLunDescriptor{ 108 { 109 Quality: "lowQuality", 110 Id: "mpx.vmhba0:C0:T0:L0", 111 }, 112 { 113 Quality: "lowQuality", 114 Id: "vml.0000000000766d686261303a303a30", 115 }, 116 { 117 Quality: "lowQuality", 118 Id: "0000000000766d686261303a303a30", 119 }, 120 }, 121 CanonicalName: "mpx.vmhba0:C0:T0:L0", 122 DisplayName: "Local VMware, Disk (mpx.vmhba0:C0:T0:L0)", 123 LunType: "disk", 124 Vendor: "VMware, ", 125 Model: "VMware Virtual S", 126 Revision: "1.0 ", 127 ScsiLevel: 2, 128 SerialNumber: "unavailable", 129 DurableName: (*types.ScsiLunDurableName)(nil), 130 AlternateName: []types.ScsiLunDurableName{ 131 { 132 Namespace: "GENERIC_VPD", 133 NamespaceId: 0x5, 134 Data: []uint8{0x0, 0x0, 0x0, 0x4, 0x0, 0xb0, 0xb1, 0xb2}, 135 }, 136 { 137 Namespace: "GENERIC_VPD", 138 NamespaceId: 0x5, 139 Data: []uint8{0x0, 0xb2, 0x0, 0x4, 0x1, 0x60, 0x0, 0x0}, 140 }, 141 }, 142 StandardInquiry: []uint8{0x0, 0x0, 0x6, 0x2, 0x1f, 0x0, 0x0, 0x72}, 143 QueueDepth: 1024, 144 OperationalState: []string{"ok"}, 145 Capabilities: &types.ScsiLunCapabilities{}, 146 VStorageSupport: "vStorageUnsupported", 147 ProtocolEndpoint: types.NewBool(false), 148 }, 149 Capacity: types.HostDiskDimensionsLba{ 150 BlockSize: 512, 151 Block: 67108864, 152 }, 153 DevicePath: "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0", 154 Ssd: types.NewBool(true), 155 LocalDisk: types.NewBool(true), 156 PhysicalLocation: nil, 157 EmulatedDIXDIFEnabled: types.NewBool(false), 158 VsanDiskInfo: (*types.VsanHostVsanDiskInfo)(nil), 159 ScsiDiskType: "native512", 160 }, 161 }, 162 ScsiTopology: &types.HostScsiTopology{ 163 Adapter: []types.HostScsiTopologyInterface{ 164 { 165 Key: "key-vim.host.ScsiTopology.Interface-vmhba0", 166 Adapter: "key-vim.host.ParallelScsiHba-vmhba0", 167 Target: []types.HostScsiTopologyTarget{ 168 { 169 Key: "key-vim.host.ScsiTopology.Target-vmhba0:0:0", 170 Target: 0, 171 Lun: []types.HostScsiTopologyLun{ 172 { 173 Key: "key-vim.host.ScsiTopology.Lun-0000000000766d686261303a303a30", 174 Lun: 0, 175 ScsiLun: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30", 176 }, 177 }, 178 Transport: &types.HostParallelScsiTargetTransport{}, 179 }, 180 }, 181 }, 182 { 183 Key: "key-vim.host.ScsiTopology.Interface-vmhba1", 184 Adapter: "key-vim.host.BlockHba-vmhba1", 185 Target: []types.HostScsiTopologyTarget{ 186 { 187 Key: "key-vim.host.ScsiTopology.Target-vmhba1:0:0", 188 Target: 0, 189 Lun: []types.HostScsiTopologyLun{ 190 { 191 Key: "key-vim.host.ScsiTopology.Lun-0005000000766d686261313a303a30", 192 Lun: 0, 193 ScsiLun: "key-vim.host.ScsiLun-0005000000766d686261313a303a30", 194 }, 195 }, 196 Transport: &types.HostBlockAdapterTargetTransport{}, 197 }, 198 }, 199 }, 200 { 201 Key: "key-vim.host.ScsiTopology.Interface-vmhba64", 202 Adapter: "key-vim.host.BlockHba-vmhba64", 203 Target: nil, 204 }, 205 }, 206 }, 207 MultipathInfo: &types.HostMultipathInfo{ 208 Lun: []types.HostMultipathInfoLogicalUnit{ 209 { 210 Key: "key-vim.host.MultipathInfo.LogicalUnit-0005000000766d686261313a303a30", 211 Id: "0005000000766d686261313a303a30", 212 Lun: "key-vim.host.ScsiLun-0005000000766d686261313a303a30", 213 Path: []types.HostMultipathInfoPath{ 214 { 215 Key: "key-vim.host.MultipathInfo.Path-vmhba1:C0:T0:L0", 216 Name: "vmhba1:C0:T0:L0", 217 PathState: "active", 218 State: "active", 219 IsWorkingPath: types.NewBool(true), 220 Adapter: "key-vim.host.BlockHba-vmhba1", 221 Lun: "key-vim.host.MultipathInfo.LogicalUnit-0005000000766d686261313a303a30", 222 Transport: &types.HostBlockAdapterTargetTransport{}, 223 }, 224 }, 225 Policy: &types.HostMultipathInfoFixedLogicalUnitPolicy{ 226 HostMultipathInfoLogicalUnitPolicy: types.HostMultipathInfoLogicalUnitPolicy{ 227 Policy: "VMW_PSP_FIXED", 228 }, 229 Prefer: "vmhba1:C0:T0:L0", 230 }, 231 StorageArrayTypePolicy: &types.HostMultipathInfoLogicalUnitStorageArrayTypePolicy{ 232 Policy: "VMW_SATP_LOCAL", 233 }, 234 }, 235 { 236 Key: "key-vim.host.MultipathInfo.LogicalUnit-0000000000766d686261303a303a30", 237 Id: "0000000000766d686261303a303a30", 238 Lun: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30", 239 Path: []types.HostMultipathInfoPath{ 240 { 241 Key: "key-vim.host.MultipathInfo.Path-vmhba0:C0:T0:L0", 242 Name: "vmhba0:C0:T0:L0", 243 PathState: "active", 244 State: "active", 245 IsWorkingPath: types.NewBool(true), 246 Adapter: "key-vim.host.ParallelScsiHba-vmhba0", 247 Lun: "key-vim.host.MultipathInfo.LogicalUnit-0000000000766d686261303a303a30", 248 Transport: &types.HostParallelScsiTargetTransport{}, 249 }, 250 }, 251 Policy: &types.HostMultipathInfoFixedLogicalUnitPolicy{ 252 HostMultipathInfoLogicalUnitPolicy: types.HostMultipathInfoLogicalUnitPolicy{ 253 Policy: "VMW_PSP_FIXED", 254 }, 255 Prefer: "vmhba0:C0:T0:L0", 256 }, 257 StorageArrayTypePolicy: &types.HostMultipathInfoLogicalUnitStorageArrayTypePolicy{ 258 Policy: "VMW_SATP_LOCAL", 259 }, 260 }, 261 }, 262 }, 263 PlugStoreTopology: &types.HostPlugStoreTopology{ 264 Adapter: []types.HostPlugStoreTopologyAdapter{ 265 { 266 Key: "key-vim.host.PlugStoreTopology.Adapter-vmhba0", 267 Adapter: "key-vim.host.ParallelScsiHba-vmhba0", 268 Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0"}, 269 }, 270 { 271 Key: "key-vim.host.PlugStoreTopology.Adapter-vmhba1", 272 Adapter: "key-vim.host.BlockHba-vmhba1", 273 Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"}, 274 }, 275 { 276 Key: "key-vim.host.PlugStoreTopology.Adapter-vmhba64", 277 Adapter: "key-vim.host.BlockHba-vmhba64", 278 Path: nil, 279 }, 280 }, 281 Path: []types.HostPlugStoreTopologyPath{ 282 { 283 Key: "key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0", 284 Name: "vmhba0:C0:T0:L0", 285 ChannelNumber: 0, 286 TargetNumber: 0, 287 LunNumber: 0, 288 Adapter: "key-vim.host.PlugStoreTopology.Adapter-vmhba0", 289 Target: "key-vim.host.PlugStoreTopology.Target-pscsi.0:0", 290 Device: "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30", 291 }, 292 { 293 Key: "key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0", 294 Name: "vmhba1:C0:T0:L0", 295 ChannelNumber: 0, 296 TargetNumber: 0, 297 LunNumber: 0, 298 Adapter: "key-vim.host.PlugStoreTopology.Adapter-vmhba1", 299 Target: "key-vim.host.PlugStoreTopology.Target-ide.0:0", 300 Device: "key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30", 301 }, 302 }, 303 Target: []types.HostPlugStoreTopologyTarget{ 304 { 305 Key: "key-vim.host.PlugStoreTopology.Target-pscsi.0:0", 306 Transport: &types.HostParallelScsiTargetTransport{}, 307 }, 308 { 309 Key: "key-vim.host.PlugStoreTopology.Target-ide.0:0", 310 Transport: &types.HostBlockAdapterTargetTransport{}, 311 }, 312 }, 313 Device: []types.HostPlugStoreTopologyDevice{ 314 { 315 Key: "key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30", 316 Lun: "key-vim.host.ScsiLun-0005000000766d686261313a303a30", 317 Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"}, 318 }, 319 { 320 Key: "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30", 321 Lun: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30", 322 Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0"}, 323 }, 324 }, 325 Plugin: []types.HostPlugStoreTopologyPlugin{ 326 { 327 Key: "key-vim.host.PlugStoreTopology.Plugin-NMP", 328 Name: "NMP", 329 Device: []string{"key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30", "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30"}, 330 ClaimedPath: []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0", "key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"}, 331 }, 332 }, 333 }, 334 SoftwareInternetScsiEnabled: false, 335 }