Pcornel
Automation · VMware Automation

Datastores

Cheat sheet · https://pcornel.dk/topic.php?topic=5738

Back to the Topic

Answer

Datastore automation creates and monitors VMFS and NFS datastores with New-Datastore, rescans HBAs, reports free space and moves VMs with Storage vMotion.

Remember

  • New-Datastore creates datastores.
  • Rescan HBAs before creating.
  • Monitor free space.

First checks

  • Get-Datastore | ft Name,FreeSpaceGB,CapacityGB — capacity
  • Get-DatastoreCluster — SDRS clusters
  • Storage policies (SPBM) assignment — placement

Verify in this order

policy → placement → datastore

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5738

Confirmation

Confirm action

Continue?