Remove unused directory from gui

elmacus

Well-Known Member
Mar 20, 2011
71
3
48
Hi.
After testing some new disk with ext and xfs, i end up with a Server/Disks/Directory with "/mnt/pve/test-disk /dev/disk/by-uuid/xxxxxx ext4 defaults"
This disk in now gone/formatted and replaced with xfs manually.
But this line in gui i cant find out how to remove. (its not in /etc/pve/storage.cfg either).
Where does PVE store this value ?
PVE 6.1-5

My findings by the way:
Single disk SSD Intel D3-S4610
EXT4: FSYNCS/SECOND: 2007.23
XFS: FSYNCS/SECOND: 3975.38
WOW XFS fs looks good. Raid card in HBA,( but have no clue of cache right now.)
 
Last edited:
Hi,

all storages are in /etc/pve/storages.cfg and there is no other place for it.
The only exception is the local storage what is hardcoded.

The fsyncs are only comparable if you hate the same features active (ie mount options).
 
Hi,

all storages are in /etc/pve/storages.cfg and there is no other place for it.
The only exception is the local storage what is hardcoded.
Thanks for answer.

Well in that case its a bug in GUI since its not in /etc/pve/storage.cfg, i did create the directory in GUI. Not hardcoded.

But now when adding this server to the production cluster, it failed for unknown cause (corosync i guess, no log, in syslog: pveproxy[11952]: /etc/pve/local/pve-ssl.key: failed to load local private key)
So i will reinstall and try again, and report back if still error.
 
Reinstall fixed and made it possible to add to cluster.

Gui "bug" is probably still there, but i will not try that again on this server, now in production.

The uuid was also looked (but failed since disk was reinstalled) for at boot, so maybe its a systemd thing ?
 
If you create a DIR storage via GUI, the disk is mounted with systemd.

For each mount point, you can see a file like this:

Code:
cat /etc/systemd/system/mnt-pve-testxfs.mount

[Install]
WantedBy=multi-user.target

[Mount]
Options=defaults
Type=xfs
What=/dev/disk/by-uuid/5a0a6149-ce8f-4e36-94c4-348d0d133e72
Where=/mnt/pve/testxfs

[Unit]
Description=Mount storage 'testxfs' under /mnt/pve

If you remove the storage definition via GUI, this mount file is NOT removed. This is by design, as we do not want that user can destroy their data with a simple click. If you know what you are doing, just remove the mount file (rm ..).
 
If you create a DIR storage via GUI, the disk is mounted with systemd.

For each mount point, you can see a file like this:

Code:
cat /etc/systemd/system/mnt-pve-testxfs.mount

[Install]
WantedBy=multi-user.target

[Mount]
Options=defaults
Type=xfs
What=/dev/disk/by-uuid/5a0a6149-ce8f-4e36-94c4-348d0d133e72
Where=/mnt/pve/testxfs

[Unit]
Description=Mount storage 'testxfs' under /mnt/pve

If you remove the storage definition via GUI, this mount file is NOT removed. This is by design, as we do not want that user can destroy their data with a simple click. If you know what you are doing, just remove the mount file (rm ..).

Thanks Tom, exactly what i was looking for. Wolfgang did not mention this.

This info need to be in the documentation: 8.5 Directory Backend.
 

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 yours easily in our online shop.

Buy now!