Use this when provisioning and managing storage through APIs and scripts.
Storage Automation
Storage automation provisions and manages volumes, LUNs, shares, snapshots and replication through storage array APIs, CLIs, Ansible modules or PowerShell, avoiding manual console work.
1. Storage automation: provision volumes, filesystems, mounts, snapshots, replication, backups.
2. Capacity checks first.
3. Idempotent.
4. Verify after.
5. Document ownership.
request → capacity check → provision → verify
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 Target-state verification ladder Verify boundary
Storage Automation uses a strict target-state ladder for storage request to durable/presented state: request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified.
Step 2 Verification path Verify boundary
Record array/cluster, pool, volume/LUN ID, host/initiator mapping and automation run ID; inspect the runtime/control-plane result; then query the provisioned storage object and its usable attachment/filesystem/application path through an independent read path and compare it with the versioned intent. The negative fixture should deliberately exercise risks such as wrong pool/tenant, thin-capacity exhaustion, duplicate names, stale mappings, asynchronous provisioning, destructive resize/delete and array success without host visibility, choosing the cases most relevant to storage object lifecycle, capacity/protection/attachment policy, destructive-operation gates and host/application visibility after provisioning. For Automation → Storage Automation, 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 Where it fails Narrow the fault
Failure analysis for Automation → Storage Automation should follow the path through the components: automation request → storage API/controller → pool allocation → volume/LUN → mapping/attach → OS/hypervisor discovery → filesystem/application verification. Common failure classes include wrong pool/tenant, thin-capacity exhaustion, duplicate names, stale mappings, asynchronous provisioning, destructive resize/delete and array success without host visibility. Before retrying a mutating operation, read current target state using the stable identity array/cluster, pool, volume/LUN ID, host/initiator mapping and automation run ID; if state is unknown, stop broad retries.
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.
Subtopics
Go one level deeper into this subject.
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.
Subtopic Volume CreationVolume creation automation creates block or file volumes with defined size, thin or thick provisioning, naming and tags through storage APIs, LVM, ZFS or cloud CLIs.
Subtopic Filesystem ProvisioningFilesystem provisioning automation creates file systems on new volumes with mkfs, labels them, mounts them and sets ownership and permissions consistently.
Subtopic Mount AutomationMount automation adds file systems to /etc/fstab by UUID with correct options, or uses systemd mount units or Ansible's mount module, then verifies with findmnt.
Subtopic LVM AutomationLVM automation creates and extends physical volumes, volume groups and logical volumes with pvcreate, vgextend and lvextend -r, or Ansible's lvg and lvol modules, growing file systems online.
Subtopic ZFS AutomationZFS automation creates pools and datasets with zpool and zfs, sets properties like compression and quotas, schedules snapshots and scrubs and replicates with zfs send/receive or syncoid.
Subtopic Ceph AutomationCeph automation deploys and manages clusters with cephadm or Rook, creates pools, RBD images and CephFS, and checks health with ceph -s and ceph health detail in scripts.
Subtopic Snapshot AutomationSnapshot automation creates snapshots on a schedule with retention, such as zfs-auto-snapshot, sanoid or array schedules, and prunes old ones so they do not fill the pool.
Subtopic Replication AutomationReplication automation configures and monitors storage replication — zfs send/receive, DRBD, array replication, rsync — checking lag and alerting when copies fall behind.
Subtopic Backup AutomationBackup automation in storage schedules and verifies backups and snapshots — rsync, restic, Veeam, vzdump, zfs send — with retention, success checks and alerts on failure.
Subtopic Capacity ChecksCapacity checks in storage automation monitor free space and growth of file systems, pools and volumes, alerting or expanding storage before a threshold like 80 % is reached.
Subtopic Storage Automation TroubleshootingTroubleshoot storage automation by checking device names (prefer UUIDs or WWNs), permissions, whether volumes are already in use, free space in the VG or pool, and command output and exit codes at each step.
- Use stable identifiers (UUIDs, WWNs).
- Check capacity before creating volumes.
- Snapshots need retention.
- Storage provisioning automation (API/Ansible/Terraform) — tools
- Capacity pre-checks — safety
- Post-provision verification — results
ReferenceWhy it matters1 section · depth on demand
In depth
Storage automation provisions and manages storage — LUNs, volumes, file shares, ZFS datasets, LVM volumes, Ceph pools — through array APIs, OS tools and configuration management, with capacity checks and documentation built in.
| Layer | Tools |
|---|---|
| Arrays | Vendor REST APIs, Ansible collections (NetApp, Pure, Dell) |
| Linux | Ansible community.general.lvg/lvol/filesystem, ansible.posix.mount |
| ZFS | zfs/zpool commands, Ansible modules |
| Ceph | ceph CLI, cephadm, Rook |
| Windows | New-Volume, Storage Spaces cmdlets |
Always check free capacity before provisioning and record what was created for whom.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Automation → Storage Automation is owned at runtime by the storage control plane/API and operating-system or hypervisor layer consuming provisioned storage. Its durable intent is versioned volume/LUN/pool specification with capacity, performance, protection and attachment policy; the stable identity contract is array/cluster, pool, volume/LUN ID, host/initiator mapping and automation run ID. The consumer-visible target is the provisioned storage object and its usable attachment/filesystem/application path. The operating invariants are that capacity and pool headroom are checked, identifiers/mappings are stable, destructive operations are gated, asynchronous tasks finish and consumer visibility is independently verified. Follow the chain of components automation request → storage API/controller → pool allocation → volume/LUN → mapping/attach → OS/hypervisor discovery → filesystem/application verification and record which layer currently owns truth. The linked authority for bounded mechanics is Ansible community.general.lvol module; documentation support is separate from observed lab/production Evidence.
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. 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%Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum array/cluster, pool, volume/LUN ID, requested/actual size, task ID/status, mapping/initiator, device/path and filesystem/application read-back. 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.