SAS cables and HBA cards should all be labeled so that you can connect your JBOD(s) to your server(s). Cabling diagrams can also be found on our website here: http://www.dataonstorage.com/windows-server-2012-r2-storage-spaces.html
Windows Server 2012 R2
Before setting up your storage spaces, it is required to go into Server Manager and install the following in every single server
- Failover Cluster Manager
- Enable SAS Device
- MPIO Policy
- Step-by-step guide on how to install MPIO and enable SAS devices can be found here: https://dataon.freshdesk.com/support/solutions/folders/6000101726
- Information about MPIO policy: https://dataon.freshdesk.com/support/solutions/articles/6000014964-mpio-policy
- File and Storage Services
- File and iSCSI Services
- Storage Services
- Hyper-V Manager (if needed)
It is recommended that SAS devices are used with DataON JBODs.
- Verify that the HealthStatus of all JBOD enclosures are Healthy. To do this, in PowerShell, run the following cmdlet: Get-StorageEnclosure | select * . This will get all storage enclosures that are recognized by the server, along with important information regarding the enclosure, including its health status.
Verify that all physical disks can be pooled. The following cmdlet lists the number of disks that are available to be added to a storage pool: Get-PhysicalDisk -canpool $true | measure
Verify each server has redundant paths to all the disks in each JBOD enclosure. Download the file in the following link which contains the cmdlet, mpathadm.ps1: https://dataon.freshdesk.com/support/solutions/articles/6000112437-windows-cmdlet-to-check-path-redundancy . The cmdlet, mpathadm.ps1, returns how many paths each server has to each disk.
Creating Storage Spaces
Before creating the storage pool, reference the following guide on Microsoft's configuration limits for storage spaces:
- Create a Storage Pool - All available disks must be grouped into one or more storage pools.
- In Server Manager, click File and Storage Services
- Click Storage Pools
- Under Storage Pools, click Tasks, then New Storage Pool. The Storage Pool Wizard will open
- Name the storage pool
- Select each physical disk you wish to be added to the storage pool
- Confirm the settings of the storage pool are correct, then click Create
- The new storage pool should now be listed under Storage Pools
- Create the Quorum Disk - A Quorum disk must be created in a failover cluster to ensure that the cluster will continue to have high availability an event of a failure.
- The New Virtual Disk Wizard should open after creating the storage pool. If not, under Virtual Disks, click Tasks, then New Virtual Disk.
- .On the storage pool page, select the storage pool you'd like to create the quorum disk from and then click Next.
- Name the quorum disk Q.
- Select your desired layout for the quorum disk and then click Next.
- Select the Fixed provisioning type.
- Specify the size of the quorum disk. The quorum disk should be the smallest virtual disk.
- Confirm the settings of the quorum disk are correct, then click Create.
- Follow the Create the Volume step below to create the volume for the quorum disk.
- Create the Virtual Disk(s) - You must now create one, or more, virtual disks, from the storage pool.
- Under Virtual Disks, click Tasks, then New Virtual Disk.
- On the storage pool page, select the storage pool you'd like to create the virtual disk from and then click Next.
- If Mirror is selected as the desired storage layout, the Configure resiliency settings page will appear and will ask you to choose between:
- Two-way mirror
- Three-way mirror
- For more information on this, use the following guideline: https://dataon.freshdesk.com/support/solutions/articles/6000014952-what-types-of-storage-spaces-can-i-use-with-a-failover-cluster-
- Specify the provisioning type. The two options are: Thin and Fixed. The Fixed provisioning type is needed in order to use clustering.
- For more information on provisioning types, refer to the following guideline: https://dataon.freshdesk.com/support/solutions/articles/6000015373-what-properties-can-i-change-after-creating-a-storage-space-thin-or-fixed-
- Specify the size of the virtual disk.
- Confirm the settings of the virtual disk are correct, then click Create.
- After the creation of the virtual disk is completed, closing the wizard will open the wizard to create a volume.
- Create the Volume
- Select the server and virtual disk in which you want to create the volume.
- Specify the size of the volume and then click Next.
- On the Assign to a drive letter or folder page, select your option and click Next.
- Select your desired file system settings and click Next.
- Confirm that the volume settings are correct, then click Create.
- In Server Manager, click the Volumes page to verify the volume was created.
- Creating the Failover Cluster
- On one of the available nodes, open Failover Cluster Manager in the tools drop-down in Server Manager.
- Under Management, select Validate Configuration to validate the cluster. If the validation tests are successful, you may proceed to create the cluster.
- Select Create cluster
- Select the servers you wish to be clustered.
- Name the cluster.
- Verify that the Add all eligible storage to the cluster box is checked.
- Confirm the cluster settings, then click Create.
- After the cluster is created, expand Storage, then click Disks. The quorum disk, along with all of the virtual disks, that were created should be shown. Select all of the virtual disks, excluding the quorum disk, and click the Add to clustered shared volume option.
- All of the volumes are now shared between the clustered servers. If failure with one server would occur, the workload will be distributed to another server in the cluster.
After running the script, the report will be generated.https://dataon.freshdesk.com/support/solutions/articles/6000112475-windows-cmdlet-to-diagnose-storage-spaces