I have an nvme pool that I want to use for
a) storing VMs
b) storing mails (by a mail server run in one of the VMs)
For this purpose, I have created, via command line, a ZFS pool with two datasets, "VMs" and "mail". (mail is obviously shared via nfs with a VM). I have then, in Proxmox GUI, created a "Directory", and have pointed that to the dataset "VMs":
Now, I have since then experienced two strange things:
1. At some point, my VMs had disappeared after a reboot. I copied them into /mnt/zfs_opt/VMs again from backup, and the problem had since not occurred again. So I stopped worrying about it.
2. Later, I was missing the .zfs directory in /mnt/zfs_opt.
After #2 occurred and some searching, I discovered that my dataset "VMs" existed, but that (I think) Proxmox at some point had tried to access the VMs directory before zfs was mounted completedly, and had then, as it automatically does, populated /mnt/zfs_opt/VMs with the folder "images" (because of the Directory that was configured for this folder. Since then, /mnt/zfs_opt/VMs was not empty anymore, so ZFS didn't mount the VMs dataset anymore. I guess this had lost me the VMs at some point. Possibly a race condition or something.
Now, I'm wondering, did I do anything wrong by configuring where to store VMs for Proxmox?
Thanks.
a) storing VMs
b) storing mails (by a mail server run in one of the VMs)
For this purpose, I have created, via command line, a ZFS pool with two datasets, "VMs" and "mail". (mail is obviously shared via nfs with a VM). I have then, in Proxmox GUI, created a "Directory", and have pointed that to the dataset "VMs":
Code:
dir: VMs
path /mnt/zfs_opt/VMs
content images
shared 0
Now, I have since then experienced two strange things:
1. At some point, my VMs had disappeared after a reboot. I copied them into /mnt/zfs_opt/VMs again from backup, and the problem had since not occurred again. So I stopped worrying about it.
2. Later, I was missing the .zfs directory in /mnt/zfs_opt.
After #2 occurred and some searching, I discovered that my dataset "VMs" existed, but that (I think) Proxmox at some point had tried to access the VMs directory before zfs was mounted completedly, and had then, as it automatically does, populated /mnt/zfs_opt/VMs with the folder "images" (because of the Directory that was configured for this folder. Since then, /mnt/zfs_opt/VMs was not empty anymore, so ZFS didn't mount the VMs dataset anymore. I guess this had lost me the VMs at some point. Possibly a race condition or something.
Now, I'm wondering, did I do anything wrong by configuring where to store VMs for Proxmox?
Thanks.