I am trying to create a lab to demonstrate a simple clustering environment. Best practices is not an issue here.
I have a lone Domain Controller that is also running Hyper-V. I am hosting 2 VMs, I call Cluster1 and Cluster2. The VMs share the NIC with the DC, and are members of the domain.
After turning on the iSCSI initiator service on both VMs, I created an iSCSI target on the DC. When I created the target, the DC saw both of the iSCSI initiators on the VMs, and created the target without incident. The target now points to a .vhdx file on the DC. The disk initialized without incident on both VMs.
I was able to add the disk and create a CSV without incident in Failover Cluster Manager. It shows up as online and healthy. When I look at the iSCSI target on the DC, it shows up at health and connected. I ran validation against the cluster, and the storage comes up perfect, no warnings.
When I try and add the file sever role (File Server for general use) to the clustered VMs, no storage is available to add the the role.
The only indication that anything is wrong is that on Cluster2, the disk is shown to be offline. If I try and bring it online, I get the following error:
“The specified disk or volume is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation”
I have tried everything mentioned in the error message, to no avail. In cluster manager, it shows that Cluster1 is the owner of the resource.
Why isn’t this working? I know a .vhdx file has to be marked at shared if two machines are going to access it, but I don’t see how I can do that, or perhaps its already shared?
More to the point, where could I place a .vhdx file on the DC one so that I could share it between the two VMs?
I have 2 more servers at my disposal, and I could hypothetically go out and buy cheap a NAS that supports iSCSI, but thats missing the point. I want to run it all off one box so its portable and easy to demonstrate.
Thank you in advance.