Use this topic when the observed symptom or requested change has been narrowed to Proxmox VE → Storage → Directory. Start with current state and dependencies before changing configuration.
Directory
The storage plugin trusts the host filesystem/mount beneath the configured path; if a network or block mount disappears, the directory path can still exist while pointing at the wrong local filesystem.
1. Directory storage stores qcow2/raw files on a mounted filesystem.
2. qcow2 gives snapshots.
3. Mark shared only if it's on shared storage mounted everywhere.
4. Use is_mountpoint to avoid filling the root disk if mount fails.
5. Simple and flexible.
qcow2/raw file → filesystem → disk
Context & applicabilityCommon mistakes · platform/version boundaries
A readable directory shows path access, not that the intended mount, image integrity or shared-storage semantics are correct.
- Using RAW files on directory storage and losing snapshots.
- Storing VM disks on the root file system.
- Not marking mount points (
is_mountpoint), so VMs write to an unmounted directory. - Wrong
contenttypes, so ISO or backup uploads do not appear.
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
Storage ID → directory path → mounted filesystem/block device → image/content file → consumer
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.
- Directory exists ≠ intended filesystem mounted.
- Filesystem free space ≠ guest filesystem free space.
- Image file present ≠ image chain healthy.
- Local directory storage is not shared merely because names match on multiple nodes.
pvesm status --storage local— usagedf -h /var/lib/vz— filesystemls /var/lib/vz/images/<vmid>— disk files
ReferenceWhat it is1 section · depth on demand
Directory storage tips
Set is_mountpoint 1 (or mkdir 0) for paths on separately mounted disks so Proxmox never writes into the root file system when the disk is missing. For qcow2 images on directory storage, snapshots are internal qcow2 snapshots. Use fstrim and discard so thin images shrink.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A readable directory shows path access, not that the intended mount, image integrity or shared-storage semantics are correct.
In depth
Proxmox directory storage is any mounted path. Use it for ISOs, container templates, backups and snippets (cloud-init custom configs).
pvesm add dir usb-backup --path /mnt/usb --content backup --is_mountpoint yes --prune-backups keep-daily=7,keep-weekly=4
ls /var/lib/vz/{template/iso,template/cache,dump,snippets}
VM disks on directory storage use qcow2 (snapshots) or raw (no snapshots). The default local storage (/var/lib/vz) sits on the root filesystem — keep large backups off it.
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 VE → Storage → Directory. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Proxmox VE → Storage → Directory reference map
Fast operational boundaries and evidence limits for Proxmox VE → Storage → Directory.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Configured state | Expected Directory configuration is present | Configuration alone does not prove runtime behavior |
| Runtime state | Relevant Directory service/object is active and error-free | Runtime state does not prove dependencies |
| Dependency | Backing network, storage, cluster or host dependency is healthy | Local success does not prove end-to-end outcome |
| Acceptance | Original VM/container/workload test succeeds | Required to close the incident |