Volume Resize

Grow, or carefully shrink, a disk, partition, LVM volume or filesystem: "extend /var after the EBS resize", "lvextend but df shows the old size", "can I shrink this xfs". The ordering is the skill: capture lsblk and df first, confirm a snapshot or backup, then grow bottom-up (rescan the device, growpart, pvresize, lvextend -r, or resize2fs / xfs_growfs on the mounted path) and compare lsblk and df after. Know the asymmetries: xfs cannot shrink, ext4 shrinks only offline with the filesystem reduced before the volume, and shrinking is really a migration. Check thin-pool data and metadata percentages, LUKS layers and the cloud provider's resize cooldown. Use for any capacity change to an existing volume. Not for finding what filled the disk (disk-full-triage), a failing device (disk-failure-replacement) or Kubernetes PVC expansion (k8s-storage).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 1161daf2b9

Frequently asked questions

npx get-skill add greenblacked/volume-resize