{"id":50,"date":"2023-04-24T13:14:25","date_gmt":"2023-04-24T13:14:25","guid":{"rendered":"https:\/\/www.nuclearwaffle.com\/?p=50"},"modified":"2023-04-24T13:14:25","modified_gmt":"2023-04-24T13:14:25","slug":"finding-orphaned-proxmox-disks","status":"publish","type":"post","link":"https:\/\/www.nuclearwaffle.com\/?p=50","title":{"rendered":"Finding orphaned Proxmox disks"},"content":{"rendered":"\n<p>So let&#8217;s say you&#8217;re running Proxmox and you have a bunch of containers and VMs, and you&#8217;ve been moving them around. Or you&#8217;ve been making\/deleting a bunch of VMs so you end up reusing guest ID numbers.  You might end up with orphaned disks in your LVM-Thin volumes, or elsewhere, that aren&#8217;t attached to anything but you can&#8217;t delete them because a container with that number already exists.<\/p>\n\n\n\n<p>So what are your power commands?<br><br>qm rescan<\/p>\n\n\n\n<p>pct rescan<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Both of these will force a rescan of all volumes and attach them to any containers or VMs that exist. Then you can delete them via the GUI. It&#8217;ll also help you identify what they are, so that if it&#8217;s something you actually want you can recover it instead of force deleting something via CLI you actually wanted to keep.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So let&#8217;s say you&#8217;re running Proxmox and you have a bunch of containers and VMs, and you&#8217;ve been moving them around. Or you&#8217;ve been making\/deleting a bunch of VMs so you end up reusing guest ID numbers. You might end up with orphaned disks in your LVM-Thin volumes, or elsewhere, that aren&#8217;t attached to anything&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":1,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":51,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/51"}],"wp:attachment":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}