DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Building Windows File Server Cluster in Azure

Building Windows File Server Cluster in Azure

In this tutorial, learn how to set up a Windows file server cluster with a shared disk and storage account.

sagar pawar user avatar by
sagar pawar
·
Feb. 07, 23 · Tutorial
Like (1)
Save
Tweet
Share
3.67K Views

Join the DZone community and get the full member experience.

Join For Free

Today, I am going to share the steps for the Windows File server cluster in Azure. It is not very new, but when you are on the Azure cloud, things might change from the configuration side. You can achieve better resiliency and high availability with a shared disk and storage account.

Let’s see how you can achieve it step-by-step in this Windows file server cluster architecture diagram:

Windows Fileserver Architecture
Windows Fileserver Architecture

Pre-Requisites

  • Windows Active directory server is up and functional.
  • The DNS server is up and functional.
  • Create a storage account with a standard type.
  • Administrator permission on Windows server
  • Contributor permission on Azure portal

Initial Prep

  • Spin-up two Windows server 2016 nodes.
  • Attach NSG to windows servers to allow AD, DNS, SMB, and health check traffic from respective servers
  • Add nodes in the domain. Verify domain connectivity by login in windows server.
  • Make private IP and DNS IP static for both nodes on the Azure portal. 
File server Network Interface

File server network interface

  • Login into both Windows server nodes, and install the file server role and Windows failover cluster through the server manager. 
  • Create a shared disk and add it to both nodes through the Azure portal.
  • Open the disk management console in Windows, format the disk, and make it online so you can access it.

Note: For a shared disk, you need to go with only a premium disk and a minimum size of 256 GB which supports up to 2 -3 nodes. You can extend the size to 32 TB and the node count to 10.

Azure Shared Disk

Azure Shared Disk

Cluster Setup

  • Open Failover cluster manager. Create a new cluster, and add node 1. Give the cluster a name and click next to complete.

Note: Cluster will fail because it takes the IP of any one node where the cluster manager is running.

  • Click on cluster IP and change it to any new IP that is available.
  • Add node 2 as you added node 1.
  • Start the quorum disk addition process. Select advance configuration. Select cloud witness from the available list. Provide a storage account name and access key available on the storage account blade. This is how your Windows cluster is ready.

Add File Server Role

  • Open Failover cluster manager. Go to role. Create a file server role, give a name, and select cluster disk.

Note: The file server role will fail initially as it takes the duplicate IP of any one node.

  • Once you restart the role, you need to manually change the IP to any next IP from the IP pool. 

Note: Even though you give a new IP to the role, it is up and running, but still not accessible from outside.  Azure says any IP should associate with the Azure NIC card for communication; hence, the need to go for the internal load balancer. 

  • Setup new load balancer: 
File Server - Azure Load Balancer

File Server – Azure Load Balancer

  • Further, you need to add a backend pool to point to both nodes. 
  • Add a health probe on port 59999 to determine which node is active.
  • Configure load balancing rule to receive SMB traffic on port 445.
  • Run below PowerShell script to know your Cluster to respond to Azure LB. 

# Define variables $ClusterNetworkName = “” # the cluster network name (Use Get-ClusterNetwork on Windows Server 2012 of higher to find the name) $IPResourceName = “” # the IP Address resource name $ILBIP = “” # the IP Address of the Internal Load Balancer (ILB) Import-Module FailoverClusters # If you are using Windows Server 2012 or higher: Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{Address=$ILBIP;ProbePort=59999;SubnetMask="255.255.255.255";Network=$ClusterNetworkName;EnableDhcp=0} # If you are using Windows Server 2008 R2 use this: #cluster res $IPResourceName /priv enabledhcp=0 address=$ILBIP probeport=59999  subnetmask=255.255.255.255


  • Start and stop file server IP. 

Final Testing

  • Manually failover cluster from one node to another to confirm everything looks ok/no error logs.
  • Create a new file share on the file server role and give a name. 
  • Browse the new file share path from the client machine.

This is how you can set up a Windows file server failover cluster in Azure with a shared disk and storage account. 

Additional points: In Azure, you have the option to put your servers in an availability set to increase uptime or you can use a proximity placement group to achieve low latency.  

Thanks for reading the article.

azure cluster Microsoft Windows Server

Published at DZone with permission of sagar pawar. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Mocha JavaScript Tutorial With Examples for Selenium Testing
  • What To Know Before Implementing IIoT
  • What Is JavaScript Slice? Practical Examples and Guide
  • NoSQL vs SQL: What, Where, and How

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: