Skip to content

Commit 9cb5ee9

Browse files
authored
AB#6861: Create Troubleshooting Guide: Windows Server Storage Migration Service (#9984)
* Create windows-server-storage-migration-service.md * Update windows-server-storage-migration-service.md * Change 'Introduction' to 'Summary' in documentation
1 parent efff15e commit 9cb5ee9

File tree

1 file changed

+235
-0
lines changed

1 file changed

+235
-0
lines changed
Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
---
2+
title: Troubleshoot Windows Server Storage Migration service
3+
description: Resolves issues in Windows Storage Migration (Robocopy, Storage Migration Service [SMS], and other tools) and Hyper-V Storage Migration.
4+
ms.date: 10/08/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika
9+
ms.custom:
10+
- sap:Backup, Recovery, Disk, and Storage\Storage migration
11+
- pcy:WinComm Storage High Avail
12+
appliesto:
13+
- <a href=https://learn.microsoft.com/windows/release-health/windows-server-release-info target=_blank>Supported versions of Windows Server</a>
14+
---
15+
16+
# Troubleshoot Windows Server Storage Migration service
17+
18+
## Summary
19+
20+
Windows Storage Migration includes tools such as Robocopy, Storage Migration Service [SMS], and Hyper-V Storage Migration. These tools are essential for administrators to move data, share drives, and server identities between environments or hardware. Migration failures can manifest as data loss, security risks, unexpected downtime, or complex permission issues. This article provides a diagnostic process and actionable solutions based on real-world cases to help you efficiently resolve the most common and challenging troubleshooting scenarios in storage migration operations across Windows Server environments.
21+
22+
## Troubleshooting checklist
23+
24+
Use this checklist for systematic troubleshooting:
25+
26+
1. **Preparation**
27+
- Verify that all planned destination drives are sized appropriately and formatted as NTFS or ReFS.
28+
- Verify that hardware and OS compatibility across source and destination.
29+
- Have a tested and recent backup or snapshot available.
30+
2. **Permissions**
31+
- Verify that the migration accounts have administrative rights on both source and target.
32+
- Make sure that SMS accounts are domain-joined and, if it's required, are a local administrator on the server.
33+
- Verify that NTFS and share permissions are correctly set for all folders and files to be migrated.
34+
3. **Network**
35+
- Test the connectivity between source and destination (ping, Test-WSMan, Test-NetConnection).
36+
- Make sure that all necessary ports are open (especially for WMI, RPC, SMB).
37+
- Check VPN and firewall rules if crossing subnets or geographical sites.
38+
4. **Services and Features**
39+
- Verify that required Windows features and roles (for example, iSCSI, SMS, file server, clustering) are installed and running.
40+
- For Hyper-V, make sure that services and cluster roles are healthy.
41+
5. **Source and Destination Health**
42+
- To detect errors, run chkdsk and fsutil on source and destination volumes.
43+
- Verify that disks aren't at or near capacity, and that the file system is healthy.
44+
- Remove unnecessary shadow copies before migration.
45+
6. **Backup and Safety**
46+
- Export registry keys for share settings.
47+
- Back up permissions and document account SIDs, if possible.
48+
- Document migration tool switches and environmental variables.
49+
50+
## Common issues and solutions
51+
52+
The following sections detail the most common failure modes and provide step-by-step solutions.
53+
54+
### Permission or Access Denied errors
55+
56+
#### Symptoms
57+
58+
- "Access denied" or "insufficient permissions" in logs or UI.
59+
- Event IDs: 5000, 1069, 45062.
60+
- Migrated files are inaccessible or missing inherited permissions.
61+
62+
#### Resolution
63+
64+
1. NTFS ACLs: To preserve permissions, use Robocopy together with /COPYALL or /SEC:
65+
66+
```console
67+
robocopy <Source> <Destination> /MIR /COPYALL /SEC /R:3 /W:5 /LOG:robocopy.log
68+
```
69+
70+
Run as an account that has full (preferably SYSTEM) permissions on both servers.
71+
2. Share Permissions:
72+
1. On the source, export the share registry:
73+
74+
```console
75+
reg export "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares" shares.reg
76+
```
77+
78+
1. On the destination, **import** and restart or restart LanmanServer service.
79+
1. After migration, use GUI or PowerShell to verify permissions.
80+
3. Account/SID Issues:
81+
1. Align built-in administrator account names, and make sure that matching SIDs.
82+
1. Use PowerShell to list accounts and SIDs:
83+
84+
```powershell
85+
Get-LocalUser | Where-Object { $_.Enabled -eq $true } | fl Name,SID
86+
```
87+
88+
1. If it's necessary, assign permissions after migration by using icacls or PowerShell.
89+
90+
### Failed or Stuck Migration Jobs (SMS/Robocopy/Hyper-V)
91+
92+
#### Symptoms
93+
94+
- "Couldn’t transfer some devices."
95+
- Jobs stop responding at certain percentages or log "insufficient resources."
96+
- SMS inventory scan repeatedly fails ("partially succeeded," error code 0x800705AA).
97+
98+
#### Resolution
99+
100+
1. Check Account and Service Permissions:
101+
1. Verify SMS runs as an account with full control.
102+
1. For stuck Robocopy jobs, run with SYSTEM permissions or elevate prompt.
103+
2. File System and Path Checks:
104+
1. Enable long path support:
105+
106+
```console
107+
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
108+
```
109+
110+
Restart required.
111+
1. Use Get-ChildItem -Path <Path> -Recurse | Where-Object { $_.Name -match "[<>:/\\|?\*]" } in PowerShell to detect invalid file/folder names.
112+
3. Tool/Feature Limitations:
113+
1. SMS doesn't support migrating domain-joined to workgroup servers or across untrusted domains.
114+
1. If migration is unsupported, consider robocopy or manual intervention.
115+
4. Process/Locking Issues:
116+
1. Stop services or processes (like SyncShareState/antivirus) that may be locking files.
117+
1. On cluster disks, clear reservations:
118+
119+
```powershell
120+
Clear-ClusterDiskReservation -Disk \<DiskNumber>
121+
```
122+
123+
5. Resource Shortages:
124+
1. Free up system resources: check CPU/memory usage, close open files, increase storage array queue depth if Event 153.
125+
1. For Hyper-V: Detach shared VHDs before moving, stop VM for moving shared disks.
126+
127+
### File/Folder Discrepancies (Size, Visibility, or Incomplete Copy)
128+
129+
#### Symptoms
130+
131+
- "Size on disk" differs between source and destination.
132+
- Some files don’t appear after migration.
133+
- Robocopy log notes files as "updated" when unchanged.
134+
- Event IDs: None or general user confusion.
135+
136+
#### Resolution
137+
138+
1. Sector Size/Allocation Unit Differences:
139+
1. Understand that NTFS allocates space differently on 512- vs. 4K-sector disks; file “size on disk” varies, but data remains intact.
140+
1. Verify that with fsutil or disk properties.
141+
2. Hidden or protected folders: System Volume Information, $RECYCLE.BIN, and similar folders are re-created automatically. Ignore errors for these folders. Files may be hidden because of attributes. View them in File Explorer (select **Show hidden files**) or:
142+
143+
```powershell
144+
Get-ChildItem -Path \<Path> -Force
145+
```
146+
147+
3. Transfer-of-Changes confusion:
148+
1. Robocopy /MIR performs a mirror. Use /M for archive attribute. For incremental only, use /XO, /XC, /XN and reference logs.
149+
1. Review migration tool documentation for logic on differential sync.
150+
151+
### Cluster Disk or Hyper-V Migration Failures
152+
153+
#### Symptoms
154+
155+
- Disk resource fails to come online (Error 995).
156+
- Hyper-V: "The disk cannot be moved because it is marked as shareable."
157+
- “OnlineThread: Error 995 bringing resource online”
158+
159+
#### Resolution
160+
161+
1. Shadow copies or backup interference:**
162+
1. Remove all shadow copies that are created by third-party backup tools.
163+
1. Use vssadmin (vssadmin list shadows) or the vendor’s own tools for cleanup.
164+
2. Cluster/CSV Configuration:
165+
1. Remove and restore the disk to the cluster, as necessary.
166+
1. Always stop VMs and unmount disks before moving.
167+
1. After migration, reconfigure roles, dependencies, and permissions.
168+
3. Shareable Attribute:
169+
1. Detach shared VHDs from all VMs.
170+
1. Move/copy the disk to new storage.
171+
1. Reattach after move is complete.
172+
173+
### Path, long path, and invalid characters errors
174+
175+
#### Symptoms
176+
177+
- Errors such as "Path cannot be found," "Path contains invalid characters," "Path is too long."
178+
- Actual migration failures for specific files or folders.
179+
180+
#### Resolution
181+
182+
1. Fix Paths and Characters: Enable long path support, and remove or rename files that have invalid characters in the file name.
183+
2. Script Solutions:
184+
1. Run a test script to enumerate all files and folders before the migration attempt.
185+
1. Use dedicated tools for batch renaming or removal.
186+
187+
### Unexpected file timestamp or access time changes
188+
189+
#### Symptoms
190+
191+
- LastWriteTime updates after migration on Windows 11 but not Windows 10.
192+
- User confusion about post-migration file modification dates.
193+
194+
#### Resolution
195+
196+
Understand MOTW implementation: Windows 11 (June 2024 and later) applies Mark-of-the-Web to files from untrusted networks, changing timestamps. To prevent this issue, add network paths to Trusted Sites/Local Intranet.
197+
198+
## Common issues quick reference table
199+
200+
| Symptom | Event ID / Message | Root cause | Resolution |
201+
| --- | --- | --- | --- |
202+
| Access Denied / Permissions fail | 5000, 45062 | NTFS/Share permissions, wrong account | Use /COPYALL, align SIDs, export/import registry shares, adjust permissions |
203+
| Inventory scan fails (SMS) | 2506, 2513, 7004, 0x800705AA | Account, network, long path, firewall | Grant permissions, open ports, enable long paths, clear locks |
204+
| Robocopy logs "updated" files wrongly | N/A | Incorrect switches, incompatible sources | Review switches, match source/dest filesystems, filter logs |
205+
| Disk won’t come online in cluster | 995, 1069 | Shadow copies, reservations | Remove shadow copies, clear reservations, repair cluster config |
206+
| Hyper-V shared disk moves fail | "Disk can't be moved..." | Shareable disk attribute | Detach from VMs, manual move/copy, reattach |
207+
| Stuck or slow migration | N/A | Locked files, resource limits | Stop open processes/services, increase queue depth, upgrade HW |
208+
| Path too long/invalid character errors | "Path is too long" etc. | Invalid char, &gt;260 chars | Clean up names/paths, enable long path support |
209+
| LastWriteTime changed after migration | N/A | MOTW in Windows 11 | Add share to Trusted Sites, user education |
210+
| System folders fail to migrate | "Couldn't transfer some devices", CSV log | By design | Ignore, expected behavior |
211+
212+
## Data collection
213+
214+
Before you contact Microsoft Support, you can gather the following information about your issue.
215+
216+
- **Robocopy logs** (/LOG+:\<path>//unilog+:\<path>) – full and differential copies
217+
- **SMS logs:** C:\ProgramData\Microsoft\StorageMigrationService\Logs\\*
218+
- **Event Viewer (System/Application/StorageMigrationService) logs** – filtered to relevant times and Event IDs
219+
- **Cluster logs:** Get-ClusterLog on all nodes
220+
- **Disk/scanning utilities:**
221+
- fsutil fsinfo for sector and allocation unit details.
222+
- du.exe or WinDirStat for directory size breakdown
223+
- **PowerShell outputs:**
224+
- Get-ChildItem with filters for path and attribute issues
225+
- icacls output for critical paths
226+
- **Snapshots of registry for share settings:**
227+
- Exported as .reg file
228+
229+
## References
230+
231+
- [Storage Migration Service documentation](https://learn.microsoft.com/windows-server/storage/storage-migration-service/overview)
232+
- [Robocopy reference](/windows-server/administration/windows-commands/robocopy)
233+
- [Share permissions migration](/answers/questions/1193948/how-to-migrate-file-server-data-with-permissions-u)
234+
- [Cluster-shared volume documentation](/windows-server/failover-clustering/failover-cluster-csvs)
235+
- [Known issues in SMS](/windows-server/storage/storage-migration-service/known-issues)

0 commit comments

Comments
 (0)