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
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

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
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

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • CI/CD With Azure DevOps and Alibaba Cloud Kubernetes (ACK)
  • Azure Databricks: 14 Best Practices For a Developer
  • Building Hybrid Multi-Cloud Event Mesh With Apache Camel and Kubernetes
  • Kafka on Kubernetes, the Strimzi Way! (Part 4)

Trending

  • Useful System Table Queries in Relational Databases
  • Is Big Data Dying?
  • Bridging UI, DevOps, and AI: A Full-Stack Engineer’s Approach to Resilient Systems
  • Can You Run a MariaDB Cluster on a $150 Kubernetes Lab? I Gave It a Shot
  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.

By 
sagar pawar user avatar
sagar pawar
·
Feb. 07, 23 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
4.3K 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.

Related

  • CI/CD With Azure DevOps and Alibaba Cloud Kubernetes (ACK)
  • Azure Databricks: 14 Best Practices For a Developer
  • Building Hybrid Multi-Cloud Event Mesh With Apache Camel and Kubernetes
  • Kafka on Kubernetes, the Strimzi Way! (Part 4)

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

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

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!