Automatic transfer of ownership of a volume in S2D Host Cluster based on Current Owner of HA File Share Role in Guest Cluster.

Tomek Grabowski 31 Reputation points
2024-07-10T10:08:51.14+00:00

Hi everyone.
This question is too complex for me to just google, so I kindly ask the community for help.
I have a Hyper-V HCI S2D 2-Node on WS2022DC.

I'm trying to setup a 2-Node VM Guest Cluster with General Use File Server Role. Active-Passive Relationship.

VM Node1 runs on Host Node1 and VM Node2 runs on Host Node 2.
Files for both VMs as well the Virtual Drives they share are located on the same S2D CSV Drive (NTFS formatted, labeled 'WarTroll') .
As I understand optimal solution is when Physical Node running 'Master' VM owns this VOLUME.
Ie. VNode1 controls the Shares so HNode1 should own WarTroll.

My first question is if this is correct and is this crucial?

Second question is how to achieve automatic transfer of WarTroll's ownership when FileServer Role is transfered between VMs? I would like to know it even if it's not required as it may be helpful in some other applications later.

Is there a Dependency I can setup or some additional resources and/or roles that I need to add?

Or is it Powershell all the way? I'm fine with any solution, I just need somebody to point proper direction I should go with this.

Thanks in advance!

PS. I have one bonus question that seems simple, yet I can't find unambiguous answer.
In S2D HCI Microsoft recommends to create Volumes in quantity that is a multiple of Nodes. So each Node controls/owns equal amount of Volumes and keep it balanced.
My question is: Do I count it with SDDC? - Since technically I did not create it and it's not assigned to CSV. It's not clear if it should be accounted for when planning the Volumes. And for a 2 Node cluster this question keeps me in a perpetual uncertainty.

(This is a fresh all-NVMe cluster, I can't perceive any change in performance yet.)

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
365 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,278 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
1,014 questions
0 comments No comments
{count} votes

Accepted answer
  1. Q&A Assist
    2024-07-10T10:08:51.19+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To answer your first question, it is not crucial for the physical node running the "Master" VM to own the volume. However, it is recommended for optimal performance.

    To achieve automatic transfer of the WarTroll volume's ownership when the FileServer Role is transferred between VMs, you can use PowerShell. You can create a script that will run as a scheduled task on each node of the VM Guest Cluster. The script will check the current owner of the HA File Share Role in the Guest Cluster and transfer the ownership of the WarTroll volume to the corresponding physical node.

    As for your bonus question, when planning volumes for a two-node cluster, you should create an even number of volumes so that each node can own an equal number of volumes. This applies to all volumes, including those created by SDDC.


    References:

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.