[pve-devel] [PATCH docs] pvesm: How to remove directory storages

Dominic Jäger d.jaeger at proxmox.com
Fri May 21 12:44:48 CEST 2021


Users are repeatedly left with entries in Disks->Directory, most recently
https://forum.proxmox.com/threads/how-to-remove-local-directory-storage-properly.89504/

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 pve-storage-dir.adoc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/pve-storage-dir.adoc b/pve-storage-dir.adoc
index 090a44b..8489b42 100644
--- a/pve-storage-dir.adoc
+++ b/pve-storage-dir.adoc
@@ -133,6 +133,19 @@ And you can remove the image with:
 
  # pvesm free local:100/vm-100-disk10.raw
 
+To completely remove a directory storage with the name `backup`,
+
+1. Remove the storage from `/etc/pve/storage.cfg`
+
+ # pvesm remove backup
+
+2. Stop & disable the systemd mount
+
+ # systemctl disable mnt-pve-backup.mount --now
+
+3. Remove the systemd mount file
+
+ # rm /etc/systemd/system/mnt-pve-backup.mount
 
 ifdef::wiki[]
 
-- 
2.20.1





More information about the pve-devel mailing list