Automation · Storage Automation
Volume Creation
Cheat sheet · https://pcornel.dk/topic.php?topic=5744
Answer
Volume 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.
Remember
- Volumes need size, provisioning type and tags.
- Names must be unique.
- Creation should be idempotent.
First checks
lvcreate -L 20G -n <lv> <vg>— LVM volumezfs create -V 20G <pool>/<vol>— zvol- Cloud volume (aws ec2 create-volume) — cloud
Verify in this order
check exists → create → verify
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=5744