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

Mar 22, 2021
11
0
1
32
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:

Hannes Laimer

Proxmox Staff Member
Staff member
Jul 27, 2020
369
47
28
23
Algund
Hey,

make sure when creating the VM you select the correct storage.
1639486840842.png
 
Mar 22, 2021
11
0
1
32
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.
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
5,176
1,491
164
South Tyrol/Italy
shop.proxmox.com
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!