vsan_disk

vSAN disk and disk-group management (SOAP).

Two surfaces:

  • Per-host via host.configManager.vsanSystem — claim disks, eject, query host status.

  • Cluster-wide via VsanVcDiskManagementSystem at /vsanHealth — bulk disk-group operations across the cluster.

saltext.vcf.clients.vsan_disk.host_status(opts, host_id_or_name, profile=None)[source]

Return per-host vSAN status — node uuid, health, member count.

saltext.vcf.clients.vsan_disk.host_config(opts, host_id_or_name, profile=None)[source]

Return per-host vSAN config — enabled, storage info, cluster info.

saltext.vcf.clients.vsan_disk.host_disk_mapping(opts, host_id_or_name, profile=None)[source]

Return per-host disk mappings (cache + capacity tier disks).

Each entry: {"cache_disk", "capacity_disks", "non_ssd_disks"}.

saltext.vcf.clients.vsan_disk.query_disks_for_filter(opts, host_id_or_name, profile=None)[source]

List all disks (eligible and ineligible) for vSAN on a host.

Returns the result of host.configManager.vsanSystem.QueryDisksForFilter() in dict form: state (eligible/ineligible/in_use), error (when ineligible), vsan_disk (uuid + state).

saltext.vcf.clients.vsan_disk.add_disks(opts, host_id_or_name, disks, profile=None)[source]

Claim disks for vSAN on host_id_or_name.

disks is a list of canonical names (e.g. ["naa.6...", ...]). Returns the vim.Task moId.

saltext.vcf.clients.vsan_disk.remove_disks(opts, host_id_or_name, disks, maintenance_mode_action='ensureObjectAccessibility', profile=None)[source]

Eject disks from vSAN on host_id_or_name (uses MaintenanceSpec).

maintenance_mode_action is one of:

ensureObjectAccessibility | noAction | evacuateAllData