Simplest way to do block storage

Red Squirrel

Renowned Member
May 31, 2014
37
7
73
Currently my VM storage infrastructure is all NFS based, and so are all my general purpose file shares on my workstation etc. All going towards my NAS. Been toying with doing more of a SAN approach where the storage is on it's separate network and uses dedicated NICs to each VM host, and for file shares I would still use NFS, or SMB, but going to a VM that I would designate as being a file server that then uses block storage to the SAN. To improve the VM storage backend I would want to do block storage like iSCSI but I read that's more complex as you need a cluster aware file system like gluster.

But since a VM can only run on one host at a time anyway, wondering if Proxmox already has built in mechanism to ensure that a section of block storage is only being accessed by one host at a time? I noticed when provisioning storage there is an option for "VirtIO Block" when creating a hard drive. Would it be as simple as selecting this option and pointing to a iSCSI LUN and Proxmox handles the rest?
 
But since a VM can only run on one host at a time anyway, wondering if Proxmox already has built in mechanism to ensure that a section of block storage is only being accessed by one host at a time?
Hi @Red Squirrel. Yes, PVE has a way to ensure that shared storage is used in a way that does not lead to contention or corruption.
You should consult the official storage type guide: https://pve.proxmox.com/wiki/Storage#_storage_types. You are looking for the ones that are both "shared" and "block/both".

I noticed when provisioning storage there is an option for "VirtIO Block" when creating a hard drive.
This option is a few layers above the "shared" storage mechanism. Whether you use "VirtIO Block" or not - has no bearing on the "shared" capability of underlying storage. You may find the diagram here helpful: https://kb.blockbridge.com/technote/proxmox-vs-vmware-nvmetcp/#proxmox--virtio-scsi--raw

nd pointing to a iSCSI LUN and Proxmox handles the rest
You can use RAW iSCSI LUNs as shared storage. However, the most popular option is a combination of iSCSI+Thick LVM.

There are more than a few articles and even videos on the topic: https://www.youtube.com/watch?v=g5fhCiAETSU

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Kingneutron

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!