Shared storage

nmartinez

New Member
Nov 19, 2021
3
0
1
36
Hello everybody, I have two nodes in the same cluster and in each one I have a separate storage for VMs, the thing is, when I share the storage for migrate the VMs from one to another not work because don't let me migrate the VM storage and also an storage on node 1 with 15TB show in node 2 whit just 1TB. Any idea.

Thanks
 
How did you create a shared storage?
Often people think they just need to enabe the "shared storage" checkbox and PVE will do some magic and the local storage is now a shared one.

But in reality you need to setup that shared storage on your own using SMB/NFS/iSCSI/CEPH or ZFS replication. Which one did you try?
 
Last edited:
How did you create a shared storage?
Often people think they just need to enabe the "shared storage" checkbox and PVE will do some magic and the local storage is now a shared one.

Did you share your storage using SMB/NFS/iSCSI/CEPH or ZFS replication?
Thanks for the answer, that's exactly what I did. We don't have shared storage. So if you can give some tips for do that in the proper way appreciate. Bought servers have just local storage.
Thanks
 
Most professional way would be using CEPH with some 10/40 Gbit NICs on an dedicated storage backend network with alot of enterprise SSDs and so on.

Easiest would be to use NFS. So one of your server will act as a NAS being the NFS server for the whole cluster storing all VM virtual disks on that NFS share and all other servers will just access the VM disks remotely using NFS shares. Downside is that if that single NFS server stops working all the other servers won't be able to operate until the NFS server is reachable again.

Another option would be to setup ZFS replication. In that case you want identical sized ZFS pools with identical names as a local storage in each server. And then replication will be used to sync data between the servers. But if you for example got 4 server each of them would need store a local copy of everything so you basically need 4 times the number of drives. Benefit would be that it is fast because it is still a local storage and not a real shared storage over the network with high latencies. But that also means you will always loose some minutes of data if a server fails because the ZFS pools will never be in perfect sync.
So for just 2 server ZFS replication might be fine, but if you plan to add more server in the future I really would recommend setting up CEPH instead.
 
Last edited:
  • Like
Reactions: thimplicity
Most professional way would be using CEPH with some 10/40 Gbit NICs on an dedicated storage backend network with alot of enterprise SSDs and so on.

Easiest would be to use NFS. So one of your server will act as a NAS being the NFS server for the whole cluster storing all VM virtual disks on that NFS share and all other servers will just access the VM disks remotely using NFS shares. Downside is that if that single NFS server stops working all the other servers won't be able to operate until the NFS server is reachable again.

Another option would be to setup ZFS replication. In that case you want identical sized ZFS pools with identical names as a local storage in each server. And then replication will be used to sync data between the servers. But if you for example got 4 server each of them would need store a local copy of everything so you basically need 4 times the number of drives. Benefit would be that it is fast because it is still a local storage and not a real shared storage over the network with high latencies. But that also means you will always loose some minutes of data if a server fails because the ZFS pools will never be in perfect sync.
So for just 2 server ZFS replication might be fine, but if you plan to add more server in the future I really would recommend setting up CEPH instead.
Thanks !!!
 

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 yours easily in our online shop.

Buy now!