Configuring Volume Mountpoints on a SQL Server 2008 Failover Cluster running on Windows Server 2008

By:   |   Updated: 2012-02-14   |   Comments (7)   |   Related: > Clustering


Problem

You need to provision additional disk subsystem on your SQL Server 2008 Failover Cluster running on Windows Server 2008. However, you are limited by the number of drive letters available to assign to the new disks. How do you do it?  Check out this tip to learn more.

Solution

One of the biggest challenges when dealing with a Windows Failover Cluster is the limited number of letters available for clustered disk resources. If you have deployment standards such as having a C:\ drive for your operating system and a D:\ drive for applications, you are left with only 23 letters to assign to your disk drives (or maybe we can recommend adding the Greek alphabet in the mix.) While this may seem more than enough drive letters for a SQL Server instance, it becomes challenging when you start distributing your tempdb files, data and log files across multiple disks, not to mention having multiple instances running in a cluster. Volume mountpoints address that limitation. Volume mountpoints are objects in an NTFS file system that point to other volumes. They are implemented as folders within an existing drive that actually points to another drive. The C:\Mountpoints folder properties shown below display the type as a MountedVolume. You can also click on the Properties button of the folder to see the disk properties.

Mount Point Properties in Windows Explorer

Using mountpoints in SQL Server Failover Cluster is pretty straightforward. However, most of these tasks are done on the Windows operating system. If a different team is responsible for this task, you need not worry about mountpoints because they are transparent to SQL Server. But if you are responsible for the server operating system in addition to being a SQL Server DBA, this tip is for you.

If you look at my basic SQL Server Failover Cluster setup below, I have two clustered disks that are being used by the SQL Server resource group - E:\ and F:\.

SQL Server Failover Cluster setup

We will extend these two clustered drives by adding volume mountpoints so we can have different dedicated disk subsystems for our databases and not just have them in a single clustered disk subsystem like what I currently have. Before configuring the volume mountpoints in the Windows Failover Cluster, make sure that they have been configured and discovered in the Windows operating system. You may need the assistance of your storage vendors or engineers to complete this task. In my clustered environment, I have added two shared iSCSI disks on the server - Disk 2 and Disk 5. I've also configured this on all of the nodes in my cluster.

Disk Management Drives available for the cluster

Adding Volume Mountpoints in a Windows Failover Cluster

Before we can add the volume mountpoints in the SQL Server clustered resource group, they have to be made available to the Windows Failover Cluster.  Below are the steps to accomplish that task:

  1. Open the Failover Cluster Management console to manage your Windows Failover Cluster.
  2. In the navigation pane, right-click on Storage and click Add a disk.
    Failover Cluster Manager Add a disk
  3. In the Add Disks to a Cluster dialog box, make sure that the shared disks that you want to use as volume mountpoints are displayed and selected. Click OK to continue.
    Add Disks to a Cluster

    Once this is complete, the disks have been added to the Windows Failover Cluster, brought online and moved to the Available Storage group.

  4. Rename the clustered disks accordingly. While this step may seem trivial, note that the new clustered disks will be configured as volume mountpoints with no assigned drive letters. To avoid confusion when managing the cluster, renaming all the cluster resources accordingly, whether they be network adapters or storage, is considered a best practice. In my example, I renamed the new clustered disks MOUNTPOINT-DATA and MOUNTPOINT-LOG because I want to add them as volume mountpoints for the DATA and LOG drives, respectively.
    Summary of Storage

Mapping the Volume Mountpoints in Clustered Disks

To enable SQL Server databases to use volume mountpoints, the mountpoints have to be mounted on a host volume that has a drive letter associated to it. Microsoft does not support storing SQL Server databases on the root of the mountpoint due to permission issues associated with layers of ACLs. Microsoft KB article 819546 describes the different scenarios for using SQL Server on mounted volumes. This is why we will mount the newly added clustered disks to the existing clustered disks that SQL Server already uses. We will be using the Disk Management console to perform the following tasks.

  1. In the Disk Management console, right-click the unallocated space on the disk that you want to configure and select New Simple Volume.
    Windows Disk Management New Simple Volume
  2. In the Welcome to the New Simple Volume Wizard dialog box, click Next.
    New Simple Volume Wizard
  3. In the Specify Volume Size dialog box, enter the volume size and click Next.
    Simple volume size in MB
  4. In the Assign Drive Letter or Path dialog box, select the Mount in the following NTFS folder: option and click Browse.
    Mount in the following empty NTFS folder
  5. In the Browse for Drive Path dialog box, navigate to the clustered disk where you want to mount the drive. You can either create a new NTFS folder or use an existing one. In this example, I want to mount the disk in the E:\ drive. I have created a new NTFS folder named MOUNTPOINT-DATA to keep the naming conventions consistent between the Windows operating system and the Failover Cluster. Click OK.
    Browse for Drive Path
  6. Click Next after getting back to the Assign Drive Letter or Path dialog box.
  7. In the Format Partition dialog box,
    • Make sure that the file system selected is NTFS.
    • To follow Microsoft best practices on allocation unit size, select 64K.
    • In the Volume label: text box, enter the appropriate name. In my example, I used MOUNTPOINT-DATA to be consistent.
    Click Next.
    Format Partition
  8. In the Completing the New Simple Volume Wizard dialog box, review the settings you have made and click Finish.
    Complete the New Simple Volume Wizard

You can verify the steps you took by making sure that the volume does not have a drive letter assigned to it. Also, the icon for the E:\MOUNTPOINT-DATA folder will not be your default folder icon, but rather a shortcut to a drive.

Windows Disk Management and Windows Explore Mount Point Short Cut

You can also check using the Failover Cluster Management console. The clustered drives added earlier now reflect the new configuration.

Summary of Storage including Mount Points

Repeat the steps for all the volumes that you want to configure as mountpoints.


Moving the Disks to the SQL Server Resource Group

Now that the volume mountpoints have been configured, we need to move them to the clustered resource group that contains the SQL Server resource. This is to make sure that the new volume mountpoints get included when the resource group fails over to another node. Bear in mind that the SQL Server clustered resource group should be treated as a single unit and, therefore, all of the components that make up the group - IP address, network name, disks, SQL Server service and SQL Server Agent - should stay together during a failover.

To move the new volume mountpoints to the SQL Server clustered resource group, follow these steps:

  1. Open the Failover Cluster Management console. In the Available Storage group, right-click the clustered disk, select More Actions ... -> Move this resource to another service or application.
    Failover Cluster Management Move this resource to another service or application
  2. In the Select A Service or Application dialog box, select the SQL Server clustered resource group where you want to move the disk. In cases where you have multiple SQL Server instances in a single Windows Failover Cluster, make sure to move the clustered disk to the appropriate resource group. Click OK.
    Select A Service orApplication

Repeat the steps for all the mountpoints that you want to move to their corresponding SQL Server clustered resource group.


Configuring the Appropriate Dependencies

Resource dependency is a key concept in Windows Failover Clustering. A dependent resource requires another resource to properly function. For example, in order for the SQL Server resource to function properly, the virtual network name and the clustered disks that store the databases need to be brought online prior to bringing the SQL Server resource online. This can be illustrated by the resource's dependency report.

Windows Failover Clustering Dependencies

As part of the scenario that Microsoft supports for volume mountpoints for SQL Server, the mountpoint must be added as a SQL Server dependency. This prevents possible database corruption that may occur during failover. In my example, the two mountpoints I added will be used by my SQL Server instance for data and log files. Therefore, I need to add both of them as dependencies for my SQL Server resource.

  1. Open the Properties page of the SQL Server resource that you would like to use with your mountpoints. In the Dependencies tab, select the mountpoints you've added in the clustered resource group under the Resource drop-down list. Click OK.
    Windows Cluster Management Resource Dependencies
  2. Open the Properties page of the mountpoint resource. In the Dependencies tab, select the clustered disk hosting the mountpoint under the Resource drop-down list. Click OK. In my example, I am making the MOUNTPOINT-DATA mountpoint dependent on the DATA clustered disk. While not necessarily related to SQL Server, this just makes the mountpoint dependent on the host volume, making sure that the host volume comes online first before the mountpoint does. Repeat the steps for all the volume mountpoints in the same clustered resource group.
    Properties for Dependencies

Test, Test, and Test

After configuring the mountpoints, make sure you test that they work properly. Do note that you cannot install or create databases in the root of the mountpoint - in my example, the E:\MOUNTPOINT-DATA or the F:\MOUNTPOINT-LOG folders. Instead, you need to create a subdirectory under the root of the mountpoint for the proper ACLs and permissions to be granted by SQL Server. For example, we can create the E:\MOUNTPOINT-DATA\MDF folder where we can store the data files and E:\MOUNTPOINT-LOG\LDF folder where we can store the log files. After creating the database files in the newly added volume mountpoints, perform the following tests:

  • Manually failover the SQL Server clustered resource group to the other nodes of the cluster. Make sure that all the resources failover as a unit.
  • While manually failing over, check how the clustered resources are switching from offline to online. When failing over, the SQL Server and SQL Server Agent resources should be the first ones to go offline, followed by the volume mountpoints and finally the host volume and/or the virtual network name, depending on which of them go offline first. The reverse should occur when the resource group goes online. This means that your resource dependencies are configured correctly
Next Steps
  • Check out the Microsoft KB article on SQL Server support for mounted volumes.
  • Check out the Microsoft KB article on How to configure volume mountpoints on a server cluster in Windows Server 2008. This is very helpful if you are supporting Windows Failover Clusters that aren't necessarily running SQL Server.
  • Check out the SQL Server Clustering tips on MSSQLTips.com.


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Edwin Sarmiento Edwin M Sarmiento is a Microsoft SQL Server MVP and Microsoft Certified Master from Ottawa, Canada specializing in high availability, disaster recovery and system infrastructures.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips


Article Last Updated: 2012-02-14

Comments For This Article




Monday, December 3, 2012 - 8:41:13 AM - bass_player Back To Top (20707)

I have not had a chance to do this in Windows Server 2008 - I didn't have to put the clustered drive that will host the mountpoint in maintenance mode. I know in Windows Server 2003, this is the case.


Sunday, December 2, 2012 - 1:13:15 PM - Sik Back To Top (20693)

Hello Edwin,

Excellent article.

Quick question: If you are adding a new MV to an existing root Mount Point which is already a part of fail over cluster, shouldn't you put the Root mount point in Maintenance mode first?. Doing this will prevent you from getting the parameter incorrect error when you try to map the mount volums to the clustered disk. Let me know if this makes sense to you?


Wednesday, June 20, 2012 - 10:30:14 AM - Peter DuDeck Back To Top (18126)

Perry, you have the dependencies backwards, SQL Server, having the mounted volume as a dependeny, which itself hase the root volume as its dependency, has a transitive dependency on the root volume.  Your description loses the required dependency that SQL server needs to access the disk that actually holds the data.  While one can argue that keeping the dependency that SQL Server has on the root volume, it would be poor judgment to remove it. as the resource monitor may detect a problem with the root volume before it impacts the mounted volume.

Edwin, thanks for the post, keep it up.


Monday, March 19, 2012 - 1:49:39 PM - bass_player Back To Top (16511)

Bruces,

I totally agree with you on that. And it's the main reason I have included the mountpoints as dependencies. YOu just have to document these settings on your cluster


Monday, March 19, 2012 - 1:24:27 PM - Bruces Back To Top (16510)

I would have to agree on the dependance chain that SQL server should not go online until the mountpoints are online.

Sure, you can argue that its not going to come online anyway, because the mountpoints don't have the items it needs to start. But if you use mount points for items that SQL Server can start without, but needs for normal business operations, then you should fail instead of run in a 'half there' state.

An example to this is your backups directory. For anyone who still uses native disk backups like I do, you may find you need to get that disk IO off of any disk data or logs uses. (Let alone TempDB). I am hihgly dependant on that drive being available. If however my SAN decides it is not going to share that LUN any more (say an overzelous SAN administrator), and my cluster fails over, now its missing something it should have, but can start without, right?

In some shops, it may be safe to run loose and carefree. But in a shop like mine where we make money off of these servers directly, being an extra bit paranoid is a good move.


Friday, February 17, 2012 - 6:12:34 AM - bass_player Back To Top (16049)
Hi Perry, Thanks for pointing this out. I agree that it is not recommended to use an existing drive to host the volume mountpoints especially if the existing volume is relatively large. We can keep the size of the root volume to host the mountpoints to as small as 5MB. The only reason I used existing drives is because they are relatively small - 2GB each. I also agree that it isn't necessary to set the mounted volumes as dependencies on the SQL Server service resource because the root volume takes care of that dependency. I'm just being really cautious to make sure that both volumes go online first prior to bringing the SQL Server cluster resource online

Thursday, February 16, 2012 - 6:52:04 AM - Perry Whittle Back To Top (16036)
Hi it is not recommended or ideal to use an existing drive to host the mounted volume. Create a new root disk for your mount points, this disk should be as small as possible (under 100MB). It is not necessary to set the mounted volumes as dependencies on the SQL Server service resource. You only need to ensure that the mounted volumes have the root drive as a dependency as the root drive must be online before the mount point can start. The SQL Server service will then have a dependency on the root drive itself. You can see this when installing SQL Server, at the section where you come to select the available disks all mount points will be unavailable and only the root disk may be selected. Check out my article on SSC for further info http://www.sqlservercentral.com/articles/mount+points/75855/ Regards Perry














get free sql tips
agree to terms