How to Configure a Clustered Storage Space in Windows Server 2012

How to Configure a Clustered Storage Space in Windows Server 2012

Rate This
  • Comments 35

This blog outlines the sequence of steps to configure a Clustered Storage Space in Windows Server 2012 using the Failover Cluster Manager or Windows PowerShell®. You can learn more about Storage Spaces here:

http://blogs.msdn.com/b/b8/archive/2012/01/05/virtualizing-storage-for-scale-resiliency-and-efficiency.aspx

Prerequisites

  •          A minimum of three physical drives, with at least 4 gigabytes (GB) capacity each, are required to create a storage pool in a Failover Cluster.
  •          The clustered storage pool MUST be comprised of Serial Attached SCSI (SAS) connected physical disks. Layering any form of storage subsystem, whether an internal RAID card or an external RAID box, regardless of being directly connected or connected via a storage fabric, is not supported.
  •          All physical disks used to create a clustered pool must pass the Failover Cluster validation tests. To run cluster validation tests:
    • Open the Failover Cluster Manager interface (cluadmin.msc) and select the Validate Cluster option.

  •          Clustered storage spaces must use fixed provisioning.
  •          Simple and mirror storage spaces are supported for use in Failover Cluster. Parity Spaces are not supported.
  •          The physical disks used for a clustered pool must be dedicated to the pool. Boot disks should not be added to a clustered pool nor should a physical disk be shared among multiple clustered pools.
  •          Storage spaces formatted with ReFS cannot be added to the Cluster Shared Volume (CSV).

Steps to configure using the Failover Cluster Manager

1.       Add the File Services Role and the File Services Role Administration Tools  to all nodes in the Failover Cluster

2.       Open the Failover Cluster Manager interface (cluadmin.msc)

3.       In the left-hand pane, expand Storage. Right-click on Pools and select New Storage Pool. This will start the New Storage Pool Wizard

4.       Specify a Name for the Storage Pool and choose the Storage Subsystem that is available to the cluster and click Next

5.       Select the Physical Disks (a minimum of three with minimum capacity 4GB each and bus type SAS) for the storage pool and confirm the creation of the pool. The pool will be added to the cluster and brought Online, once created.

6.       The next step is to create a Virtual Disk (storage space) that will be associated with a storage pool. In the Failover Cluster Manager, select the storage pool that will be supporting the Virtual Disk. Right-click and choose New Virtual Disk

7.       This initiates the New Virtual Disk Wizard. Select the server and storage pool for the virtual disk and click Next.  Note that the cluster node hosting the storage pool will be listed.

8.       Provide a name and description for the virtual disk and click Next

9.       Specify the desired Storage Layout (Simple or Mirror; Parity is not supported in a Failover Cluster) and click Next

Note: I/O operations to a CSV mirror space are redirected at the block level through the CSV coordinator node. This may result in different performance characteristics for I/O to the storage, compared to a simple space.

10.   Specify the size of the virtual disk and click Next. After you confirm your selection, the virtual disk is created. The New Volume Wizard is launched if you do not uncheck this option on the confirmation page.

11.   The correct Disk and the Server to provision the disk to should be selected for you. Verify this selection and click Next.

12.   Specify the size of the volume and click Next

13.   Optionally assign a drive letter to the volume and click Next

 

14.   Select the file system settings and click Next and confirm the volume settings. The new volume will be created on the virtual disk and will be added to the Failover Cluster.

Note: The NTFS File System should be selected if the volume is to be added to Cluster Shared Volumes.

 

15.   Your clustered storage space can now be used to host clustered workloads. You can also see the properties of the clustered storage space and the clustered pool that contains it, from the Failover Cluster Manager.

 

Steps to configure using Windows PowerShell®

 

Open a Windows PowerShell® console and run the following steps:

1.       Create a new pool

a.  Select physical disks to add to the pool

$phydisk = Get-PhysicalDisk –CanPool $true | Where BusType -eq "SAS”

b.  Obtain the storage subsystem for the pool

$stsubsys = Get-StorageSubsystem

c.       Create the new storage pool

$pool = New-StoragePool -FriendlyName TestPool -StorageSubsystemFriendlyName $stsubsys.FriendlyName -PhysicalDisks $phydisk -ProvisioningTypeDefault Fixed

d.      Optionally add an additional disk as a HotSpare
$hotSpareDisk =
Get-PhysicalDisk –CanPool $true |Out-GridView -PassThru

Add-PhysicalDisk -StoragePoolFriendlyName TestPool -PhysicalDisks $hotSpareDisk -Usage HotSpare

 

2.        Now create a Storage Space in the pool created in the previous step

a.  $newSpace = New-VirtualDisk –StoragePoolFriendlyName TestPool –FriendlyName space1 -Size (1GB)  -ResiliencySettingName Mirror   

 

3.       Initialize, partition and format the Storage Space created

a.  $spaceDisk = $newSpace | Get-Disk

b.  Initialize-Disk -Number $spaceDisk.Number -PartitionStyle GPT

c.  $partition = New-Partition -DiskNumber $spaceDisk.Number -DriveLetter $driveletter -size $spaceDisk.LargestFreeExtent

d.  Format-Volume -Partition $partition -FileSystem NTFS

 

4.       Add the Storage Space created to the Cluster

a.  $space = Get-VirtualDisk -FriendlyName space1              

b.   Add-ClusterDisk $space

 

Note:

  • Clustered Spaces can also be created using the Server Manager:

  • You can find a full end to end Windows PowerShell® sample on setting up a file server cluster with Storage Spaces here.

Troubleshooting tips:

If you come across any of the following errors while attempting to add a storage pool to the cluster please review the Prerequisites section at the beginning of this blog to determine which requirement was not met:

Failed to add storage pool to cluster – {XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX}

No storage pool suitable for cluster was found. 

 

 

Thanks!

Subhasish Bhattacharya                                                                                                               
Program Manager                                                                                                          
Clustering & High Availability                                                                                      
Microsoft

Leave a Comment
  • Please add 4 and 4 and type the answer here:
  • Post
  • Hi,

    I am having two machines with Windows 2012 Server 64bit Standard edition.

    I created one cluster failover service by following blogs.msdn.com/.../10299698.aspx

    I ignored warnings which came related to Storage "No disks were found on which to perform cluster validation tasks." while validating cluster in process of creation.

    Now I want to add role in this cluster let say I want to add role for Message Queuing, it is asking me for storage.

    I need to add storage to this cluster so I came across to your blog.

    This blog says that :-

    1. A minimum of three physical drives, with at least 4 gigabytes (GB) capacity each, are required to create a storage pool in a Failover Cluster.

    I created 4 partitions with 10 GB capacity.

    2. The clustered storage pool MUST be comprised of Serial Attached SCSI (SAS) connected physical disks. Layering any form of storage subsystem, whether an internal RAID card or an external RAID box, regardless of being directly connected or connected via a storage fabric, is not supported.

    I don't have any SAS drive to connect and I also don't have any SAS Controller.

    When I add storage or pool it shows me that no suitable disk found.

    Is there any way that I can move forward in adding role?

    I am having 150 GB space available on my local disk and I can also divide this into parts if number of disks required.

    Is there any alternative for SAS disk?

    Any help will be appreciated. Please do reply.

  • Hi Rohit,

    You should set up an iSCSI target on another node. Then connect the iSCSI initiators from your two cluster nodes to the iSCSI target server.

    Here are the step by step instructions:

    blogs.technet.com/.../introduction-of-iscsi-target-in-windows-server-2012.aspx

    This will allow you to have shared storage for your cluster that you can then use to configure your MSMQ role.

    Best,

    Subhasish

  • Thanks for this guide.  It was helpful in setting up a lab environment and seeing how this works.  Clustered storage places seems to me to be mostly about providing a SAN alternative.  That's a good thing.

    It took me quite a while to get this up and going.  For the lab I used shared VHDX files hosted on another single node SOFS because I didn't have any other way to simulate two servers accessing shared disks on a SAS bus.  definitely not supported but good for this lab.

    At the end, I attempted to create the virtual disks using the Failover cluster manager and Server Manager from a Windows 8.1 box remotely and it failed.  When I used these same tools while locally on a node, I was able to create the virtual disks without a problem.

    We have a SAN (That we are not too happy with) so we probably won't be using the shared SAS bus for giving storage to a SOFS setup but it was worth the time to go through to understand it.

  • Thanks for your note Hollisorama and for trying this out!

    As for your failure to create vds remotely from a Windows 8.1 box, that is not expected. Perhaps, you can attempt using PowerShell with the -verbose flag and see if you get more information on what is going wrong.

    Best,

    Subhasish

  • Hi, Rob.

    This requirements is equal in Windows Server 2012 R2?

    I have 8 luns in Storage Compellent with RAID and i need create storage pool or another solution to use all disk for Hyper-V Replica.

    Can you help me with this cenario?

Page 3 of 3 (35 items) 123