[SOLVED] Running a VM on a sshfs fills disk locally instead

Mar 22, 2021
18
0
6
35
Hello,
I tried setting up a sshfs storage, mounted locally and setup as Storage ->directory ->Disk image.
Problem is that it seems the VM is spawned on local storage and fills up the root partition.
/dev/mapper/pve-root 94G 94G 0 100% /

What am I doing wrong ?
 
Last edited:
Hey,

make sure when creating the VM you select the correct storage.
1639486840842.png
 
Ok, so the problem was that we have 2 nodes. Sshfs was mounted only on the 1st and the Vm was created on the second where the Storage was showing up but same size as the root partition. Which is kinda confusing.
 
I mean, you probably did not limit the directory storage to the node where sshfs was mounted so PVE assumed its for all nodes and just created the directory storage on both, on one in the SSHFS mount and on one at the same place, but as no SSHFS mount was there it landed on the root FS...

If you add a storage that's only available on a subset of nodes you need to configure it that way. Also, I'd really recommend using something more efficient as the FUSE based sshfs as backing storage for VM disks if anyhow possible.