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

Dominic Jäger d.jaeger at proxmox.com
Mon Jun 21 09:06:07 CEST 2021


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 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
> 
> 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[]
> >  
> > 
> 





More information about the pve-devel mailing list