Use this when automating Proxmox storage.
Storage Automation · Proxmox Automation
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.
1. Storage automation: add/remove storages, content types, shared flags.
2. Validate mount/backends.
3. Consistent across cluster.
4. Monitor capacity.
5. Document.
automation → /storage API → storage.cfg
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as wrong node/VMID, task accepted but later failed, cluster quorum/lock contention, storage/network mismatch, stale API view and retrying a still-running task, choosing the cases most relevant to storage object lifecycle, capacity/protection/attachment policy, destructive-operation gates and host/application visibility after provisioning.
Step 2 Common mistakes Narrow the fault
- Adding storage that some nodes cannot reach.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- pvesm and the API manage storage.
- Content types decide what can be stored.
- The shared flag matters for migration.
pvesm status— storagespvesh create /storage --storage <id> --type nfs --server <s> --export <p> --content images— add storage- storage.cfg managed via automation — consistency
ReferenceWhy it matters1 section · depth on demand
What it is
Storage definitions (/etc/pve/storage.cfg) are managed with pvesm or the API and apply cluster-wide.
ReferenceHow it works1 section · depth on demand
In depth
Storage automation on Proxmox manages storage definitions (local ZFS/LVM, NFS, Ceph RBD, CephFS, PBS), disk allocation for VMs and lifecycle tasks such as snapshots and cleanup.
pvesm status
pvesm add nfs backup-nfs --server 10.0.0.20 --export /srv/pve --content backup
qm disk move 214 scsi0 ceph-vm --delete 1
pvesh get /nodes/pve01/storage/local-zfs/content --output-format json
Check the content types a storage allows (images, rootdir, backup, iso) — a common provisioning failure is targeting a storage that does not accept VM images. Monitor thin-provisioned storage (LVM-thin, ZFS) for fill level, since overcommitted storage fills without warning to individual VMs.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
pvesm add nfs backup-nfs --server 10.0.30.10 --export /export/pve --content backup
pvesm status
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Proxmox Automation > Storage Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/api-viewer/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For storage object lifecycle, capacity/protection/attachment policy, destructive-operation gates and host/application visibility after provisioning, prefer typed fields and stable IDs over human presentation text.