ABOUT
This script helps Proxmox users identify and remove orphaned LVM volumes that are no longer associated with any VM or LXC container. It scans all LVM volumes, detects unused ones, and provides an interactive prompt to delete them safely. System-critical volumes like root, swap, and data are excluded to prevent accidental deletion.
infoExecute within the Proxmox shell
INSTALL
Approved local installer
DefaultDebian 13
Approved locallyRun this command in the Proxmox VE shell. It downloads the immutable approved file, verifies SHA-256, and only then executes it.
( url='https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/tools/pve/clean-orphaned-lvm.sh'; sha='36f239d02e16f0c5fcb2c438847ca091662f94997afbe436f952900e673903ec'; tmp="$(mktemp)" || exit; curl -fsSL "$url" -o "$tmp" && printf '%s %s\n' "$sha" "$tmp" | sha256sum -c - && bash "$tmp"; rc=$?; rm -f "$tmp"; exit "$rc" )
View approved source ↗Path tools/pve/clean-orphaned-lvm.shSHA-256 36f239d02e16f0c5fcb2c438847ca091662f94997afbe436f952900e673903ec LOCAL CHANGE REVIEW
Approved vs latest fetched source
Sign in with a passkey to inspect pending source changes. Approved content remains public.