* [pve-devel] [PATCH docs] pvesm: How to remove directory storages
@ 2021-05-21 10:44 Dominic Jäger
2021-06-18 16:31 ` Thomas Lamprecht
0 siblings, 1 reply; 3+ messages in thread
From: Dominic Jäger @ 2021-05-21 10:44 UTC (permalink / raw)
To: pve-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH docs] pvesm: How to remove directory storages
2021-05-21 10:44 [pve-devel] [PATCH docs] pvesm: How to remove directory storages Dominic Jäger
@ 2021-06-18 16:31 ` Thomas Lamprecht
2021-06-21 7:06 ` Dominic Jäger
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2021-06-18 16:31 UTC (permalink / raw)
To: Proxmox VE development discussion, Dominic Jäger
On 21.05.21 12:44, Dominic Jäger wrote:
> 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
shouldn't the disable --now already take care of that?
>
> ifdef::wiki[]
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH docs] pvesm: How to remove directory storages
2021-06-18 16:31 ` Thomas Lamprecht
@ 2021-06-21 7:06 ` Dominic Jäger
0 siblings, 0 replies; 3+ messages in thread
From: Dominic Jäger @ 2021-06-21 7:06 UTC (permalink / raw)
To: Thomas Lamprecht, pve-devel; +Cc: Proxmox VE development discussion
On Fri, Jun 18, 2021 at 06:31:51PM +0200, Thomas Lamprecht wrote:
> On 21.05.21 12:44, Dominic Jäger wrote:
> > 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
>
> shouldn't the disable --now already take care of that?
>
I expected something similar, but when I tried it out, the entry remained always
visible in the GUI without the `rm`.
> >
> > ifdef::wiki[]
> >
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-21 7:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 10:44 [pve-devel] [PATCH docs] pvesm: How to remove directory storages Dominic Jäger
2021-06-18 16:31 ` Thomas Lamprecht
2021-06-21 7:06 ` Dominic Jäger
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