Use this when provisioning storage via APIs.
Storage Provisioning
Storage provisioning automation creates and presents storage — LUNs, volumes, shares or cloud disks — with the right size, protection and access, through APIs or modules instead of consoles.
1. Storage provisioning via array APIs, cloud APIs, Ceph/ZFS/LVM tools.
2. Standard names and tags.
3. Check capacity.
4. Map to hosts (masking).
5. Verify.
request → API → volume → mapping
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINTSPrimary Commands
Configuration and operational commands for this Topic.
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 Command read-back and what it shows Verify boundary
lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINTS is the bounded verification surface selected for Storage Automation → Storage Provisioning. A known-good result is the allocated resource has the expected identity/size, appears on the intended host through the correct path/multipath mapping, upper layers match the request and the consumer sees the expected capacity. Treat missing/wrong-sized device, duplicate path treated as separate disks, wrong mapping to volume identity, or correct block visibility with missing/incorrect upper-layer provisioning as broken/suspicious. lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS,UUID shows host-visible block topology and selected metadata, but it does not show array/cloud policy, path redundancy or application I/O quality.
Step 2 Verification path Verify boundary
For Storage Automation → Storage Provisioning, the evidence must connect the control-plane result to the provisioned storage object and its usable attachment/filesystem/application path and explain any gap between desired, controller-reported and consumer-visible state.
Step 3 Common mistakes Narrow the fault
- No naming or tagging standard.
Step 4 Observation-driven branch and next-check logic Narrow the fault
For a failing Storage Automation → Storage Provisioning case, freeze scope first: target/object, desired revision or request, and failure time. Inspect lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINTS. Branch on evidence rather than labels: if provider allocation is absent/failed, stay at provider workflow; if allocation exists but host device is missing, inspect presentation/path/rescan; if device exists but upper layers are wrong, inspect size, multipath, partition/LVM/filesystem mapping before application checks.
Step 5 Where it fails Narrow the fault
Failure analysis for Storage Automation → Storage Provisioning should follow the path through the components: automation request → storage API/controller → pool allocation → volume/LUN → mapping/attach → OS/hypervisor discovery → filesystem/application verification.
- Provision with the right size, protection and access.
- Follow naming standards.
- Document what was created.
- Array/storage API or CLI — provisioning interface
- Naming and tagging standards — consistency
- Capacity check before provisioning — safety
ReferenceWhy it matters1 section · depth on demand
Method
Storage provisioning automation creates storage for a request consistently and safely.
1. Validate the request: size, performance tier, protocol, consumer host.
2. Check pool capacity and thin-provisioning headroom.
3. Create the volume/LUN/dataset with naming and tagging standards.
4. Map/export it to the consumer (LUN masking, NFS export, SMB share).
5. On the host: rescan, create filesystem, mount persistently.
6. Verify read/write and record the allocation.
- community.general.lvg: { vg: data, pvs: /dev/disk/by-id/scsi-3600a0980... }
- community.general.lvol: { vg: data, lv: app, size: 200g }
- community.general.filesystem: { fstype: xfs, dev: /dev/data/app }
- ansible.posix.mount: { path: /srv/app, src: /dev/data/app, fstype: xfs, state: mounted }
ReferenceHow it works1 section · depth on demand
How it works
In Storage Automation → Storage Provisioning, effective state is split across requested capacity/performance class, provider or array allocation, host-visible device identity and any partition/LVM/filesystem layers created above that device. Storage provisioning moves from provider-side allocation through attachment/presentation to host discovery and then optional volume/filesystem construction; each layer can succeed while the next remains absent. SAN zoning/masking, cloud attachment, multipath, udev, LVM, filesystem and permissions are separate things to check. This matters because a provider reports volume creation before the host sees a usable device, and a visible block device does not show it maps to the intended LUN/volume or meets requested policy.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Storage Automation → Storage Provisioning is owned at runtime by the storage control plane/API and operating-system or hypervisor layer consuming provisioned storage.
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 Storage Automation > Storage Provisioning. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ansible.com/ansible/latest/collections/community/general/lvol_module.html · confidence 94%