Prevent auto folder creation before manual mount

saures

New Member
Nov 24, 2016
10
1
1
36
Hello again,

I have to do manual mounts of a filesystem. I use folders of this filesystem as proxmox storage for storing ISOs and container-templates.
When I reboot my Proxmox V-Host the needed folder structure gets automatically created by some Proxmox-daemon. But i could not find out which is responsible for this behaviour.
Could you tell me how to stop the automatic creation of the structure, or the responsible service, so i could stop it temporarly in my mount-script.

Thanks in andvance!
Kind regards.
 
You can add "mkdir 0" in your "/etc/pve/storage.cfg" to the one section.
Code:
dir: iso-images 
 path /home/iso-images 
 maxfiles 10
 mkdir 0
 content iso,backup,vztmpl
 
  • Like
Reactions: proxbear
well, this was easy and exactly what i expected.
Thank you!

you can also set "is_mountpoint" on a directory storage if the directory itself is a mount point - then PVE will check whether it is mounted before doing anything else (you can also set both to check/wait for mounting and to not create the directories).
 
  • Like
Reactions: fireon and saures