In my attempts to understand how Proxmox storage works in a cluster, I took a spare disk and tried to add it through the web GUI via
node -> Disks -> Directory -> Create: Directory.
I selected my spare disk but the only filesystems I could pick were either EXT4 or XFS. I went for EXT4.
Now I've learned I want to use ZFS instead, so I need to remove the current configuration again. But there's nothing about this in the Proxmox Admin Guide.
So, how should I remove local (Directory) storage properly?
This is what I did / tried:
- Removed the storage on the Datacenter level. Result: it's still visible via node -> Disks -> Directory.
- At that same spot, it's impossible to remove anything, you can only add storage.
- The PVE Admin Guide states all storage configuration resides in
- The guide also states
- Seems it's actually in systemd as I discovered - in
Bingo. Let's remove it:
Ok, now just remove the partition via cfdisk and we're done, right?
Wrong - the partition / directory is still visible in the web GUI. Hmmmm...
- Reboot the system then? Nope. Still there. What gives?!
- Searched for string '
It's inactive according to systemctl:
- Searched for string '
- Searched for string '
That can't be it either.
So where on earth does PVE store this information? And how do I remove it? What am I missing?
node -> Disks -> Directory -> Create: Directory.
I selected my spare disk but the only filesystems I could pick were either EXT4 or XFS. I went for EXT4.
Now I've learned I want to use ZFS instead, so I need to remove the current configuration again. But there's nothing about this in the Proxmox Admin Guide.
So, how should I remove local (Directory) storage properly?
This is what I did / tried:
- Removed the storage on the Datacenter level. Result: it's still visible via node -> Disks -> Directory.
- At that same spot, it's impossible to remove anything, you can only add storage.
- The PVE Admin Guide states all storage configuration resides in
/etc/pve/storage.conf
, but in fact that file only contains cluster-wide mounts, *not* local mounts.- The guide also states
/etc/fstab
, but it's empty, except for /proc
.- Seems it's actually in systemd as I discovered - in
/etc/systemd/system/mult-user-target.wants/
to be precise:
Bash:
root@node2:/etc/systemd/system/multi-user.target.wants# ls |grep mount
mnt-pve-static_data.mount
Bash:
root@node2:/etc/systemd/system/multi-user.target.wants# systemctl disable mnt-pve-static_data.mount
root@node2:/etc/systemd/system/multi-user.target.wants# systemctl stop mnt-pve-static_data.mount
Wrong - the partition / directory is still visible in the web GUI. Hmmmm...
- Reboot the system then? Nope. Still there. What gives?!
- Searched for string '
static_data
' in all files in /etc/
. 1 result: /etc/systemd/system/mnt-pve-static_data.mount
It's inactive according to systemctl:
Bash:
root@node2:/etc/systemd/system/# systemctl |grep static_data.mount
root@node2:/etc/systemd/system/#
- Searched for string '
static_data
' in all files in /var/
: only some results in the logs, nothing else.- Searched for string '
static_data
' in all files in /usr/
: only some results in binaries en libraries.That can't be it either.
So where on earth does PVE store this information? And how do I remove it? What am I missing?