Windows Server storage: iSCSI, MPIO and Storage Spaces
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Core administration and security
-
Phase 3: Enterprise infrastructure
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
Sooner or later a server needs disks that are bigger, faster or more reliable than the ones inside its own case. Windows Server storage is the set of tools Windows gives you for that: iSCSI to share disks over the network, MPIO so there’s more than one path to them, and Storage Spaces to combine disks with mirroring.
You’ll build an iSCSI target on SRV01 and connect a new server, NODE1, to it over two networks with MPIO. Then you’ll make a mirrored Storage Spaces disk out of three small disks and pull one out to see the mirror survive. Along the way you’ll also meet S2D, Storage Replica and SMB over QUIC.
| Time | You need | By the end you can |
|---|---|---|
| About 2 hours | DC01 and SRV01, plus a new Server Core VM NODE1 (2 GB RAM, 40 GB disk); NODE1 is reused in Lesson 37 | Configure an iSCSI target and initiator, set up MPIO, create Storage Spaces pools and mirrored disks, handle disk failures, and choose between S2D, Storage Replica and SMB options |
What it is, in one line
Windows Server storage means the built-in features that provide, pool and protect disks for servers, from iSCSI and MPIO through to Storage Spaces, Storage Spaces Direct and Storage Replica.
In Simple Words
Water tanks and pipes
Think about how a building gets its water. Instead of a bucket in every flat there’s one big tank on the roof, pipes bring the water down, and a well-built block has two pipes so a single leak doesn’t leave anyone dry. iSCSI is the pipe that brings a disk from a storage server to another server, and MPIO is that second pipe. Storage Spaces is like joining several small tanks into one big one and keeping a copy of the water in two of them, so a cracked tank costs you nothing. Thin provisioning is promising every flat a full tank when the real tanks are smaller, which works fine until everybody fills the bath on the same evening.
Engineer's View
iSCSI, MPIO, Storage Spaces and friends
iSCSI carries SCSI commands over TCP 3260. The target presents the disks (in this lab that’s the iSCSI Target Server role, using VHDX files as LUNs) and the initiator connects to them. A target decides which initiators to allow by IQN, IP or DNS name, and it can require CHAP as well.
MPIO (Multipath I/O) takes several paths to the same LUN and turns them into one disk, with either failover or round-robin load balancing. If you open two sessions to one LUN without MPIO, the disk shows up twice and you risk corrupting it.
Storage Spaces pools physical disks and lets you carve virtual disks out of the pool with simple (no protection), mirror (two or three copies) or parity resiliency, either fixed or thin provisioned. Storage Spaces Direct (S2D) does the same thing across the local disks of 2 to 16 clustered servers, and it’s what hyperconverged setups are built on.
Also good to know: Storage Replica copies volumes block by block, synchronously or asynchronously, between servers or clusters (on Standard edition you’re limited to one partnership and a 2 TB volume). SMB over QUIC lets clients reach file shares safely over the internet on UDP 443 with no VPN, and Server 2025 has it in both Standard and Datacenter.
How it works, step by step
Here’s how NODE1 reaches its disk on SRV01 over two paths:
NODE1 sees a single disk even though two sessions carry the traffic, and if one network goes down, MPIO shifts the I/O onto the other path so the disk stays online.
The storage you’ll build:
- Networks: a second NAT network, LabNet2 (10.0.1.0/24), for the second storage path.
- NODE1: a new Server Core member server with two NICs.
- iSCSI: a 10 GB LUN on SRV01, allowed only for NODE1, reached over both networks with MPIO.
- Storage Spaces: three 4 GB disks on SRV01 pooled into a two-way mirror.
Hands-on Lab: Windows Server storage with iSCSI and Storage Spaces
Before you run any command, double-check it
Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.
Start DC01 and leave SRV01 shut down for now. You’ll start on your laptop and then move to SRV01 and NODE1, working in PowerShell as administrator.
1Add a second network and disks
On your laptop, create LabNet2 and give SRV01 a second NIC and three small disks:
VBoxManage natnetwork add --netname LabNet2 --network "10.0.1.0/24" --enable --dhcp off
VBoxManage modifyvm SRV01 --nic2 natnetwork --nat-network2 LabNet2
VBoxManage storagectl SRV01 --name SATA --portcount 8
3..5 | ForEach-Object {
VBoxManage createmedium disk --filename "C:\Lab\VMs\SRV01\SRV01-pool$_.vdi" --size 4096
VBoxManage storageattach SRV01 --storagectl SATA --port $_ --device 0 --type hdd --medium "C:\Lab\VMs\SRV01\SRV01-pool$_.vdi"
}
VBoxManage startvm SRV01Create NODE1 with two NICs and install Server Core on it the way you did in Lesson 33:
VBoxManage createvm --name NODE1 --ostype Windows2025_64 --basefolder C:\Lab\VMs --register --default
VBoxManage modifyvm NODE1 --memory 2048 --cpus 2 --nic1 natnetwork --nat-network1 LabNet --nic2 natnetwork --nat-network2 LabNet2
VBoxManage createmedium disk --filename C:\Lab\VMs\NODE1\NODE1.vdi --size 40960
VBoxManage storageattach NODE1 --storagectl SATA --port 0 --device 0 --type hdd --medium C:\Lab\VMs\NODE1\NODE1.vdi
VBoxManage storageattach NODE1 --storagectl SATA --port 1 --device 0 --type dvddrive --medium C:\Lab\ISO\server2025.iso
VBoxManage startvm NODE1On SRV01, give the new NIC its address:
Get-NetAdapter | Select-Object Name, InterfaceDescription, Status
New-NetIPAddress -InterfaceAlias 'Ethernet 2' -IPAddress 10.0.1.20 -PrefixLength 24 | Out-NullOn NODE1, once Server Core is installed and you’ve picked 15 in sconfig:
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.0.41 -PrefixLength 24 -DefaultGateway 10.0.0.1 | Out-Null
New-NetIPAddress -InterfaceAlias 'Ethernet 2' -IPAddress 10.0.1.41 -PrefixLength 24 | Out-Null
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.10, 10.0.0.11
Add-Computer -DomainName saatlab.internal -NewName NODE1 -OUPath 'OU=Servers,OU=SAATLAB,DC=saatlab,DC=internal' -Credential SAATLAB\adm.rahul -RestartThe storage network deliberately has no gateway and no DNS server, because its only job is to carry iSCSI traffic between the two servers.
✅ Checkpoint: SRV01 has 10.0.1.20 on Ethernet 2, and NODE1 is joined with 10.0.0.41 and 10.0.1.41.
2Build the iSCSI target on SRV01
On SRV01:
Install-WindowsFeature FS-iSCSITarget-Server -IncludeManagementTools | Out-Null
New-Item -ItemType Directory D:\iSCSI -Force | Out-Null
New-IscsiVirtualDisk -Path D:\iSCSI\Node1-Data.vhdx -SizeBytes 10GB | Out-Null
New-IscsiServerTarget -TargetName NodeTarget -InitiatorIds 'IQN:iqn.1991-05.com.microsoft:node1.saatlab.internal' | Out-Null
Add-IscsiVirtualDiskTargetMapping -TargetName NodeTarget -Path D:\iSCSI\Node1-Data.vhdx
Get-IscsiServerTarget | Select-Object TargetName, TargetIqn, @{n='Initiators';e={$_.InitiatorIds -join ', '}}You should see something like this:
TargetName TargetIqn Initiators
---------- --------- ----------
NodeTarget iqn.1991-05.com.microsoft:srv01-nodetarget-target IQN:iqn.1991-05.com.microsoft:node1.saatlab.internalThe LUN is nothing more than a VHDX file on D:, and only NODE1’s IQN is allowed to use it. By default a Windows initiator’s IQN is iqn.1991-05.com.microsoft: followed by the computer’s FQDN.
✅ Checkpoint: NodeTarget exists, maps Node1-Data.vhdx, and allows only NODE1’s IQN.
3Connect NODE1 over two paths with MPIO
On NODE1, start the initiator, install MPIO and let MPIO claim iSCSI disks:
Set-Service MSiSCSI -StartupType Automatic; Start-Service MSiSCSI
(Get-InitiatorPort).NodeAddress
Install-WindowsFeature Multipath-IO | Out-Null
Enable-MSDSMAutomaticClaim -BusType iSCSI
Restart-ComputerWhen it has restarted, connect through both networks:
New-IscsiTargetPortal -TargetPortalAddress 10.0.0.20 -InitiatorPortalAddress 10.0.0.41 | Out-Null
New-IscsiTargetPortal -TargetPortalAddress 10.0.1.20 -InitiatorPortalAddress 10.0.1.41 | Out-Null
$iqn = (Get-IscsiTarget).NodeAddress
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.0.20 -InitiatorPortalAddress 10.0.0.41 -IsPersistent $true -IsMultipathEnabled $true | Out-Null
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.1.20 -InitiatorPortalAddress 10.0.1.41 -IsPersistent $true -IsMultipathEnabled $true | Out-Null
Get-IscsiSession | Select-Object InitiatorPortalAddress, TargetNodeAddress, IsConnected
mpclaim -s -dYou should see something like this:
InitiatorPortalAddress TargetNodeAddress IsConnected
---------------------- ----------------- -----------
10.0.0.41 iqn.1991-05.com.microsoft:srv01-nodetarget-target True
10.0.1.41 iqn.1991-05.com.microsoft:srv01-nodetarget-target True
For more information about a particular disk, use 'mpclaim -s -d #' where # is the MPIO disk number.
MPIO Disk System Disk LB Policy DSM Name
-------------------------------------------------------------------------------
MPIO Disk0 Disk 1 RR Microsoft DSMBring the disk online and format it:
Get-Disk | Where-Object BusType -eq 'iSCSI' | Select-Object Number, Size, PartitionStyle
Get-Disk -Number 1 | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -DriveLetter S -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel Shared -Confirm:$false | Out-NullYou’ve got two sessions but only one disk, because MPIO merged the paths and is using round-robin (RR) load balancing. Without MPIO you’d see Disk 1 and Disk 2 as two separate disks pointing at the same LUN, which is how disks get corrupted.
✅ Checkpoint: NODE1 has two connected sessions, mpclaim shows one MPIO disk, and drive S: is formatted.

4Create a mirrored Storage Spaces disk on SRV01
On SRV01:
Get-PhysicalDisk -CanPool $true | Select-Object FriendlyName, Size, MediaType
New-StoragePool -FriendlyName Pool1 -StorageSubSystemFriendlyName 'Windows Storage*' -PhysicalDisks (Get-PhysicalDisk -CanPool $true) | Out-Null
New-VirtualDisk -StoragePoolFriendlyName Pool1 -FriendlyName Mirror1 -ResiliencySettingName Mirror -NumberOfDataCopies 2 -Size 4GB -ProvisioningType Fixed |
Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -DriveLetter F -UseMaximumSize | Format-Volume -FileSystem ReFS -NewFileSystemLabel Mirror1 -Confirm:$false | Out-Null
Get-VirtualDisk | Select-Object FriendlyName, ResiliencySettingName, NumberOfDataCopies, HealthStatus, OperationalStatusYou should see something like this:
FriendlyName Size MediaType
------------ ---- ---------
ATA VBOX HARDDISK 4294967296 Unspecified
ATA VBOX HARDDISK 4294967296 Unspecified
ATA VBOX HARDDISK 4294967296 Unspecified
FriendlyName ResiliencySettingName NumberOfDataCopies HealthStatus OperationalStatus
------------ --------------------- ------------------ ------------ -----------------
Mirror1 Mirror 2 Healthy OKEvery block you write to F: lands on two of the three disks. ReFS adds checksums on top, so Storage Spaces can repair a bad copy using the good one. Copy a few files onto F: now, because you’ll check later that they survive a failed disk.
✅ Checkpoint: Pool1 contains three disks and Mirror1 (F:) is Healthy with two data copies.
Break It, Then Fix It
You’ll cause two storage problems here: a target that hides from the wrong initiator, and a disk that dies underneath a mirror.
1Break it: the target only accepts a different initiator
On SRV01, change the allowed initiator to one with a typo in it:
Set-IscsiServerTarget -TargetName NodeTarget -InitiatorIds 'IQN:iqn.1991-05.com.microsoft:node01.saatlab.internal'On NODE1, disconnect and try discovering the target again:
Get-IscsiSession | Unregister-IscsiSession -ErrorAction SilentlyContinue
Get-IscsiTarget | Disconnect-IscsiTarget -Confirm:$false -ErrorAction SilentlyContinue
Update-IscsiTargetPortal -TargetPortalAddress 10.0.0.20 | Out-Null
Get-IscsiTargetThis is what you get, which is nothing at all:
(no output)The Windows iSCSI target only shows an initiator the targets it’s allowed to use, so instead of an error NODE1 just gets an empty list. If S: had belonged to a cluster or a database, it would have vanished. A one-letter typo in an IQN is one of the most common causes of this.
To fix it, allow NODE1’s real IQN and reconnect both paths:
Set-IscsiServerTarget -TargetName NodeTarget -InitiatorIds 'IQN:iqn.1991-05.com.microsoft:node1.saatlab.internal' # on SRV01
Update-IscsiTargetPortal -TargetPortalAddress 10.0.0.20 | Out-Null # on NODE1
$iqn = (Get-IscsiTarget).NodeAddress
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.0.20 -InitiatorPortalAddress 10.0.0.41 -IsPersistent $true -IsMultipathEnabled $true | Out-Null
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.1.20 -InitiatorPortalAddress 10.0.1.41 -IsPersistent $true -IsMultipathEnabled $true | Out-Null✅ Checkpoint: NODE1 saw no targets with the wrong IQN allowed, and reconnects both paths after the fix.
2Break it: a failed disk under the mirror
Shut down SRV01, detach one of the pool disks on your laptop, and start SRV01 again:
VBoxManage storageattach SRV01 --storagectl SATA --port 4 --device 0 --medium none
VBoxManage startvm SRV01On SRV01:
Get-VirtualDisk Mirror1 | Select-Object FriendlyName, HealthStatus, OperationalStatus
Get-PhysicalDisk | Where-Object OperationalStatus -ne 'OK' | Select-Object FriendlyName, OperationalStatus
Get-ChildItem F:\ | Select-Object -First 3 NameYou’ll see something like this:
FriendlyName HealthStatus OperationalStatus
------------ ------------ -----------------
Mirror1 Warning Degraded
FriendlyName OperationalStatus
------------ -----------------
ATA VBOX HARDDISK Lost Communication
Name
----
...your files are still here...The mirror shows Degraded, but your data is all still there because every block had a second copy. Some of that data now has no spare copy, though, so a second failure would lose it, and that’s why you replace the disk quickly.
To fix it, add a new disk, retire the missing one and run the repair:
# on your laptop, with SRV01 shut down:
VBoxManage createmedium disk --filename C:\Lab\VMs\SRV01\SRV01-pool6.vdi --size 4096
VBoxManage storageattach SRV01 --storagectl SATA --port 6 --device 0 --type hdd --medium C:\Lab\VMs\SRV01\SRV01-pool6.vdi
# on SRV01, after starting it:
Add-PhysicalDisk -StoragePoolFriendlyName Pool1 -PhysicalDisks (Get-PhysicalDisk -CanPool $true)
$lost = Get-PhysicalDisk | Where-Object OperationalStatus -eq 'Lost Communication'
$lost | Set-PhysicalDisk -Usage Retired
Repair-VirtualDisk -FriendlyName Mirror1
Remove-PhysicalDisk -StoragePoolFriendlyName Pool1 -PhysicalDisks $lost -Confirm:$false
Get-VirtualDisk Mirror1 | Select-Object HealthStatus, OperationalStatusWhen the repair is done you should see this:
HealthStatus OperationalStatus
------------ -----------------
Healthy OK✅ Checkpoint: Mirror1 went Degraded with the disk missing, the files stayed readable, and it’s Healthy again after the repair.

This happened at work
The thin pool that ran dry
One team built a 20 TB Storage Spaces pool and created thin-provisioned virtual disks adding up to 45 TB for their Hyper-V hosts. Thin disks only use space for what’s actually written, and for two years usage stayed below 12 TB, so nobody gave it a thought. Then a new backup product arrived and started writing full copies of every VM onto one of those disks. Over a single weekend the pool filled up, Storage Spaces protected the data by taking the full virtual disks offline, and every VM stored on them paused.
The team cleared space by deleting the new backup copies, added more disks to the pool and brought the virtual disks back online, and that took most of Monday.
The fix: overcommitment is now capped at 1.5 times the real capacity, an alert fires once the pool passes 70% used, and backup targets live on separate fixed storage. The lesson: thin provisioning lets you promise more space than you have, so keep an eye on real usage and get alerted long before it runs out.
Common mistakes and troubleshooting
| Mistake or symptom | What happens | What to do instead |
|---|---|---|
| iSCSI target not visible to an initiator | The IQN, IP or name isn’t on the allowed list | Check InitiatorIds on the target; copy the IQN exactly |
| Two sessions without MPIO | The same LUN appears twice; corruption risk | Install MPIO and claim iSCSI before connecting the second path |
| iSCSI on the user network | Storage traffic competes with users; less secure | Dedicated storage networks, no gateway |
| No CHAP on iSCSI | Any allowed-looking initiator can connect | Use CHAP or mutual CHAP in production |
| Ignoring a Degraded virtual disk | A second failure loses data | Replace the failed disk and repair right away |
| Thin pools without monitoring | The pool fills and virtual disks go offline | Alerts on pool usage; limit overcommitment |
| Simple (no resiliency) spaces for important data | One disk failure loses everything | Mirror or parity |
| Storage Replica as backup | Corruption and deletions replicate | Backups as well (Lesson 38) |
| Exposing SMB 445 to the internet | Attacks on file servers | SMB over QUIC or VPN for remote access |
Interview questions
Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.
Fresher level
1. Can you explain in simple words what iSCSI is?
Why they ask this: Before they go deeper, they want to be sure you understand the basic idea of network storage.
How you might answer: iSCSI carries normal SCSI disk commands over a TCP/IP network on port 3260, so a server can use disks that really live on a storage server somewhere else on the network. To the server, that remote disk looks like a local one.
2. In an iSCSI setup, what’s the target and what’s the initiator?
Why they ask this: Every iSCSI setup and troubleshooting conversation uses these two words, so they want to know you’re clear on both roles.
How you might answer: The target is the side that presents the disks, which are called LUNs, and the initiator is the server that connects to the target and uses them. In my lab the storage VM is the target and the file server is the initiator.
3. What is Storage Spaces, and why would a small office use it?
Why they ask this: They’re checking that you know how Windows pools disks and which resiliency choices it gives you.
How you might answer: Storage Spaces pools physical disks together, and from that pool I create virtual disks with simple, mirror or parity resiliency, fixed or thin provisioned. For a small office it means protection against a disk failure without buying a separate storage array.
2–5 years experience
4. You connect a server to the same iSCSI LUN over two network paths, and Disk Management shows two disks. What’s missing?
Why they ask this: They want to see that you understand why MPIO matters and what it really does.
How you might answer: MPIO is missing. Without it each path shows the LUN as its own disk, which is confusing and risky. Once MPIO is installed and has claimed the iSCSI devices, the two paths merge into one disk and MPIO takes care of failover and load balancing between them.
5. It’s Monday morning and a mirrored virtual disk shows Degraded. What do you do?
Why they ask this: They want to know if you’ve dealt with a disk failure before and can fix it in the right order without losing data.
How you might answer: First I find which physical disk failed. Then I add a replacement disk to the pool, retire the failed one and run Repair-VirtualDisk, and when the repair’s finished I remove the old disk from the pool and check that HealthStatus is back to Healthy.
6. What’s the difference between Storage Spaces and Storage Spaces Direct, and when would you pick each?
Why they ask this: They want to know you understand the two variants and where each one fits.
How you might answer: Storage Spaces pools disks attached to one server, or shared JBODs, while Storage Spaces Direct (S2D) pools the local disks of clustered servers over the network, which gives you hyperconverged storage. For a single file server I’d use Storage Spaces, and for a Hyper-V cluster with no shared array I’d look at S2D.
Senior level
7. A small office needs a two-node Hyper-V cluster. How would you design the storage?
Why they ask this: They want to see you balance cost against resilience and remember backup and growth.
How you might answer: I’d weigh up two options. One is a two-node S2D cluster with a witness, mirrored volumes and RDMA if we can get it; the other is shared iSCSI storage with redundant paths and MPIO. Whichever we pick, I’d size it for growth, monitor capacity and keep the backups away from the cluster.
8. When would you use Storage Replica?
Why they ask this: They’re checking that you know the disaster recovery options in Windows Server and the sync versus async trade-off.
How you might answer: I’d use Storage Replica to replicate volumes at block level between servers or clusters, for disaster recovery or stretched clusters. Over short distances I’d run it synchronously for zero data loss, and over longer links I’d switch to asynchronous mode.
9. Remote staff need access to file shares, and the security team won’t allow a VPN or open port 445. What would you suggest?
Why they ask this: They want to see that you know the newer options and think about security as well as access.
How you might answer: I’d suggest SMB over QUIC on Windows Server 2025. It runs TLS 1.3 over UDP 443 with a trusted certificate and client access control, so we never have to expose SMB on port 445 to the internet.
Quick quiz
Q1. Which port does iSCSI use?
- 445
- 3260
- 3389
Show answer
B — TCP 3260.
Q2. What does MPIO do with two paths to one LUN?
- Shows two disks
- Combines them into one disk with failover
- Disables one path
Show answer
B — That’s why it must be in place first.
Q3. Why did NODE1 see no targets in Break It step 1?
- SRV01 was off
- Its IQN wasn’t on the allowed list
- MPIO was missing
Show answer
B — The target hides itself from other initiators.
Q4. What happened to Mirror1 when a disk was removed?
- All data lost
- Degraded, but data still readable
- Nothing
Show answer
B — Two copies kept the data safe.
Q5. In the work story, why did VMs pause?
- A virus
- A thin-provisioned pool filled up
- A failed NIC
Show answer
B — Monitor pool usage.
Quick recap
- Windows Server storage gives you iSCSI, MPIO, Storage Spaces, S2D and Storage Replica.
- iSCSI targets allow initiators by IQN, and if the IQN is wrong the target simply hides.
- Install MPIO before you connect a second path, so one LUN stays one disk.
- Mirror and parity Storage Spaces survive a disk failure, but repair a degraded disk quickly.
- Watch thin-provisioned pools closely.
- SMB over QUIC replaces VPNs for remote file access on Server 2025.
Next lesson
Lesson 37: Failover clustering → Next you’ll add NODE2, validate and build a two-node failover cluster on the iSCSI storage, set up a witness, make a file server highly available and try a failover.
Further reading: Windows Server storage
Want to go deeper into Windows Server storage? Microsoft’s iSCSI Target Server overview explains the target role, and the Manage Storage and File Services training path covers Storage Spaces, S2D and Storage Replica. You can also see the full plan for this course on the Windows Server Administration course page.
