storage_rescan
Rescan ESXi host HBAs and VMFS volumes to discover newly presented LUNs and datastores after SAN changes. Use when a storage array adds LUNs or after out-of-band modifications.
Instructions
[WRITE] Rescan all HBAs and VMFS volumes on an ESXi host to discover newly presented LUNs and datastores.
Use this when a storage array presents new LUNs, or after out-of-band SAN changes. Not needed after storage_iscsi_add_target / storage_iscsi_remove_target — those rescan automatically. Non-destructive: only triggers device and VMFS discovery (deletes nothing), but it is I/O-visible on the host and may take a minute or two with many paths. Audit-logged to ~/.vmware/audit.db. Returns a confirmation string; errors include remediation hints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter/ESXi target name from config. | |
| dry_run | No | If true, return a preview of the change without executing it. | |
| host_name | Yes | ESXi host name as shown in vCenter inventory (FQDN or IP). Errors if not found. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |