all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Dominic Jäger" <d.jaeger@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH docs] pvesm: How to remove directory storages
Date: Fri, 21 May 2021 12:44:48 +0200	[thread overview]
Message-ID: <20210521104448.4376-1-d.jaeger@proxmox.com> (raw)

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@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





             reply	other threads:[~2021-05-21 10:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 10:44 Dominic Jäger [this message]
2021-06-18 16:31 ` Thomas Lamprecht
2021-06-21  7:06   ` Dominic Jäger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210521104448.4376-1-d.jaeger@proxmox.com \
    --to=d.jaeger@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal