[SOLVED] How i can remove directory-entry from gui?

ChrisDB

Member
Jan 28, 2020
12
7
8
33
Why does everything have to be half-arsed?
There are create buttons for LVM, LVM-Thin, Directory and ZFS. Why not add the delete/format buttons as well?
I can't imagine them to be much different that the create buttons. They can probably be added in 5 minutes by whomever added the create buttons.
Ugh.
 
  • Like
Reactions: wegiii

illuminatus

New Member
May 15, 2020
3
0
1
32
Why does everything have to be half-arsed?
There are create buttons for LVM, LVM-Thin, Directory and ZFS. Why not add the delete/format buttons as well?
I can't imagine them to be much different that the create buttons. They can probably be added in 5 minutes by whomever added the create buttons.
Ugh.
Yeah... this raises so many frustration to me also.
Maybe paid subscription support have more job because of that
 

ChrisDB

Member
Jan 28, 2020
12
7
8
33
This is what I ended up doing.
Every disk directory entry has a file located at /etc/systemd/system/mnt-pve-<name>.mount.
To remove it, make sure mount is not used anywhere and do:
Bash:
systemctl stop mnt-pve-<name>.mount
systemctl disable mnt-pve-<name>.mount
rm /etc/systemd/system/mnt-pve-<name>.mount
And to be able to add it again remove partition with `fdisk /dev/<disk name>` or `wipefs -a /dev/<disk name>`.
Use the same /dev/ path as the one that was in the .mount file at `What` field.
You can identify disk names with `lsblk' or `df -h`, then find it in /dev/.
 
Last edited:
Aug 2, 2018
41
2
13
111
Same issue. Added blank drive via gui, drive recently failed, removed drive. Multiple reboots later I don't see a way to remove the now missing drive and experience several minutes of delay on bootup as PVE looks for the drive.

I will follow the instructions in this thread, and am sure they will work, but I'm unsure if this is expected behavior (manual removal required) or if we've (the posters) all done something wrong.
 

mikeinnyc

New Member
Jul 6, 2021
9
7
3
55
New York City
Use shell in Proxmox
stop the service before moving ahead

To find the EXACT NAME of the Mount file(s) you need to delete
you will see something like this mnt-pve-Backups.mount

#cd /etc/systemd/system
#ls

#rm mnt-pve-Backups.mount (use your own file mount name to remove)
#rm mnt-pve-Downloads.mount (if you have more file mounts names to remove)

# ls list the files and folders again to see if removed

# nano /etc/pve/storage.cfg
delete those dir references and save

Reboot or Stop and Start a Service

#cd /etc/systemd/system
#systemctl stop pvedaemon.service
#systemctl start pvedaemon.service
#systemctl status pvedaemon.service

# systemctl stop pvestatd.service
# systemctl start pvestatd.service
# systemctl status pvestatd.service




OR Do it all in one line Restart multiple Services
#service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart

if you have other stopped services and can't reboot find them
#systemctl list-units --type service --all

Hope this helped
 
Last edited:

khampol

New Member
Sep 6, 2021
21
0
1
32
did you delete the systemd mount unit file?
/etc/systemd/system/mnt-pve-testdir.mount
Sorry bump this *old* topic in 2021.
But really hope have this function by system. Not too risky to have to do this manually ?? :rolleyes:
 

dec

New Member
Jan 26, 2022
2
1
1
38
There is now a destroy button in the more sub-menu.
But note that it works only if the device is still plugged-in (otherwise you will have this error: not a valid block device).


1654757898444.png
 
  • Like
Reactions: fireon

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!