Can I add a Block Based LUN to multiple Hyper-V Hosts?

Anthony Tropiano 6 Reputation points
2021-08-04T04:53:23.91+00:00

The topic asks the question.
I am asking because I have a weird problem, one of my hosts completely lost access to the LUN. When I went to Disk Management I saw the LUN as RAW. I took it offline and formatted it.
Now, the host that lost the LUN see a brand new partition which is empty and the old host which never lost the LUN still sees everything, even though I formatted it on the other Hyper-V Host

PS: My setup is very simple. 2 Servers, both have Hyper-V installed, I have 1 NAS that I would just like both servers to see and be in sync. So if in the event one server dies I can simply turn on the VMs on the second server.

Can anyone help me understand what I'm missing
Thanks

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,636 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Alex Bykovskyi 1,851 Reputation points
    2021-08-06T10:58:08.087+00:00

    Hey,

    In order to have simultaneous access to the block device you need to have Cluster Shared Volume on top. You need to build a Failover Cluster as a result you can format your block device as NTFS (or ReFS) and then bring it as CSV to the cluster. Otherwise your data will be corrupted, if you try writing to the LUN from both nodes simultaneously. The following guide will walk you through the configuration: https://www.starwindsoftware.com/resource-library/starwind-virtual-san-for-hyper-v-2-node-hyperconverged-scenario-with-windows-server-2016/

    Cheers,

    Alex Bykovskyi

    StarWind Software

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose

    1 person found this answer helpful.
    0 comments No comments

  2. Anthony Tropiano 6 Reputation points
    2021-08-04T12:30:57.157+00:00

    Anyone have any ideas?

    0 comments No comments

  3. Devaraj G 2,091 Reputation points
    2021-08-04T12:56:34.297+00:00

    Genrally LUN goes RAW when there is some corruption in disk blocks. have you tried chkdsk before formatting ?

    Also its a CSV and running failover cluster?

    0 comments No comments