Pcornel
Automation · Proxmox Automation

Storage Automation

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

Back to the Topic

Answer

Proxmox storage automation adds and configures storage with pvesm or the API, creates ZFS pools, LVM-thin or Ceph pools, and assigns content types such as images, backups and ISOs.

Remember

  • pvesm and the API manage storage.
  • Content types decide what can be stored.
  • The shared flag matters for migration.

First checks

  • pvesm status — storages
  • pvesh create /storage --storage <id> --type nfs --server <s> --export <p> --content images — add storage
  • storage.cfg managed via automation — consistency

Verify in this order

automation → /storage API → storage.cfg

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=5725

Confirmation

Confirm action

Continue?