Windows Servers

Storage Spaces on Windows Server: Pools, Resiliency and Setup

By NileVPS Team · Published · 5 min read

اقرأ المقال بالعربي

Storage Spaces is the software-defined storage layer built into Windows Server. Instead of treating each disk as a separate drive letter, you group several physical disks into a pool and then carve virtual disks out of that pool with the size and resiliency you choose. It replaces the old dynamic-disk software RAID, adds thin provisioning, and can grow by simply adding more disks. This article explains the building blocks, shows the full setup in PowerShell, and is honest about where Storage Spaces helps and where it does not, especially on a cloud VPS.

The three building blocks

  • Physical disks: the raw disks you add to a pool. They must be empty, with no partitions, and the system (boot) disk can never be pooled.
  • Storage pool: a collection of physical disks managed as one capacity unit.
  • Virtual disk (storage space): a logical disk created from the pool, with a resiliency type and a provisioning type. Windows sees it as a normal disk that you partition and format.

Resiliency types

LayoutMinimum disksSurvivesUsable capacityGood for
Simple1No disk failure100%Scratch data, caches, data that is backed up elsewhere
Two-way mirror2One disk failure50%General workloads, VMs, databases
Three-way mirror5Two disk failuresAbout 33%Critical data on standalone servers
Parity3One disk failureHigher than mirrorArchives, backups, mostly sequential writes

Parity saves capacity but writes are noticeably slower than mirrors, so avoid it for databases or busy virtual machines.

Provisioning: fixed or thin

Fixed allocates all space on creation. Thin allocates as data is written, so you can create a 2 TB virtual disk on a pool that has 1 TB today and add disks later. Thin provisioning is convenient but must be monitored: if the pool fills up, the virtual disk goes offline to protect data.

Setting up Storage Spaces with PowerShell

1. Find the disks that can be pooled

Get-PhysicalDisk -CanPool $true | Format-Table FriendlyName, SerialNumber, Size, MediaType

If a disk you expect is missing, it probably still has partitions. Check with Get-Disk and clear it carefully with Clear-Disk -Number <n> -RemoveData only after confirming it holds nothing you need.

2. Create the pool

$disks = Get-PhysicalDisk -CanPool $true
New-StoragePool -FriendlyName "DataPool" `
  -StorageSubSystemFriendlyName "Windows Storage*" `
  -PhysicalDisks $disks

3. Create a virtual disk

New-VirtualDisk -StoragePoolFriendlyName "DataPool" -FriendlyName "Data" `
  -ResiliencySettingName Mirror -ProvisioningType Fixed -UseMaximumSize

For thin provisioning use -ProvisioningType Thin -Size 2TB instead of -UseMaximumSize.

4. Initialize, partition and format

Get-VirtualDisk -FriendlyName "Data" | Get-Disk |
  Initialize-Disk -PartitionStyle GPT -PassThru |
  New-Partition -DriveLetter D -UseMaximumSize |
  Format-Volume -FileSystem ReFS -NewFileSystemLabel "Data"

ReFS is designed for Storage Spaces: with a mirror it can detect corruption through checksums and repair it from the healthy copy. Use NTFS instead if you need features ReFS does not offer, such as EFS file encryption, disk quotas, or applications that explicitly require NTFS.

Day-to-day operations

Check health

Get-StoragePool -IsPrimordial $false | Select-Object FriendlyName, HealthStatus, OperationalStatus
Get-VirtualDisk | Select-Object FriendlyName, ResiliencySettingName, HealthStatus
Get-PhysicalDisk | Select-Object FriendlyName, HealthStatus, Usage

Anything other than Healthy deserves attention. Storage events are also logged under Applications and Services Logs > Microsoft > Windows > StorageSpaces-Driver.

Add capacity

Add-PhysicalDisk -StoragePoolFriendlyName "DataPool" -PhysicalDisks (Get-PhysicalDisk -CanPool $true)
Optimize-StoragePool -FriendlyName "DataPool"
Resize-VirtualDisk -FriendlyName "Data" -Size 3TB

After resizing the virtual disk, extend the partition with Resize-Partition.

Replace a failed disk

Mark the bad disk as retired, add the replacement, repair, then remove the old one:

Set-PhysicalDisk -FriendlyName "PhysicalDisk3" -Usage Retired
Add-PhysicalDisk -StoragePoolFriendlyName "DataPool" -PhysicalDisks (Get-PhysicalDisk -CanPool $true)
Repair-VirtualDisk -FriendlyName "Data"
Remove-PhysicalDisk -StoragePoolFriendlyName "DataPool" -PhysicalDisks (Get-PhysicalDisk -FriendlyName "PhysicalDisk3")

Storage Spaces vs Storage Spaces Direct

Classic Storage Spaces runs on a single server with locally attached disks and works on Standard edition. Storage Spaces Direct (S2D) pools the local disks of several clustered servers into one shared storage system. It needs Datacenter edition, a failover cluster and fast networking between nodes, so it belongs in on-premises or dedicated hardware designs rather than a typical VPS.

Does Storage Spaces make sense on a VPS?

On a cloud VPS the disks you see are already virtual, and the provider's platform handles physical disk redundancy underneath. Mirroring two virtual disks that live on the same backend does not give you real protection against hardware failure, it only halves your capacity. Storage Spaces can still be useful on a VPS to:

  • Combine several attached virtual disks into one large volume (a simple layout).
  • Use thin provisioning and grow a volume later without changing drive letters.
  • Practise and test configurations before rolling them out on physical servers.

Whatever layout you choose, resiliency is not a backup. Keep snapshots before major changes and real off-server backups of your data. If you are planning disk sizes, our pricing page lists the storage included with each plan, and the guide on Performance Monitor shows how to watch disk latency once the volume is in use.

FAQ

Can I add the C: drive to a storage pool?

No. The disk that holds the operating system cannot join a pool. Storage Spaces only uses additional, empty disks.

Is Storage Spaces the same as hardware RAID?

It provides similar results in software. The server's CPU and memory handle the work instead of a RAID controller, and the pool can be moved to another Windows Server with the disks intact.

What happens if a thin-provisioned pool runs out of space?

The affected virtual disks are taken offline to prevent data corruption. Add disks or free space in the pool, then bring them back online. Monitoring pool usage avoids this situation.

Related guides