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

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 18 18:31:51 CEST 2021


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?

>  
>  ifdef::wiki[]
>  
> 






More information about the pve-devel mailing list