[SOLVED] Issue with secondary local dir storage after node remove and add

Dale.Sykora

Active Member
May 13, 2020
26
4
43
57
I have a 4 node 9.1.5 cluster where each node has a 300GB boot disk and second disk (1TB SSD). The second disk on all nodes is defined as DIR storage named dir1. /etc/pve/storage.cfg shows the following

dir: dir1
path /mnt/pve/dir1
contents snippets,backup,vztmpl,images,rootdir,iso
is_mountpoint 1
noden pn1,pn2,pn3,pn4

I removed a node from the cluster, rebuilt and added back. However, dir1 storage shows greyed out on this node. When I try to add secondary storage via GUI as DIR dir1 it says name already used (or similar). I manually from cli created the mountpoint, created disk partition, formatted partition, and can manually mount it. However, it is gone after a reboot. I copied missing file /etc/systemd/system/mnt-pve-dir1.mount from another node and updated uuid to match node drive, however it is still greyed out after a reboot. What else is needed to get the drive back after a reboot?
 
You should check and match /etc/fstab from old nodes to new node.
The filesystem will not be mounted by PVE, it has to be mounted already when PVE starts.

If you are mounting through Systemd, you should check the log for any errors related to that service. Make sure the disk gets mounted by the OS on boot.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
You should check and match /etc/fstab from old nodes to new node.
The filesystem will not be mounted by PVE, it has to be mounted already when PVE starts.

If you are mounting through Systemd, you should check the log for any errors related to that service. Make sure the disk gets mounted by the OS on boot.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
/etc/fstab are identical on nodes and just show root, swap, and proc mounts
 
I figured it out. There was a symlink missing under /etc/systemd/system/multi-user.target.wants for mnt-pve-dir1.mount Once this was created, dir1 shows up after a reboot.
 
  • Like
Reactions: bl1mp and bbgeek17