On Windows Server’s Storage Pools area of Server Manager, the health status of the storage spaces and virtual disks is shown as “Unknown”.
Attempt to manage such as delete any virtual disks will fail with error message stating that “error deleting virtual disk: the storage pool could not complete the operation because its configuration is read-only.”
To resolve the issue, open a Windows PowerShell window as Administrator, and run the following commands.
Check the read-only state of all available Storage Pools:
Get-StoragePool
If OperationalStatus is set to Read-only, run the following command to set it to writable (replacing Name of Storage Pool with the actual name of the storage pool):
Set-StoragePool -FriendlyName "Name of Storage Pool" –IsReadonly $False
If you want to change “Read-only” attribute of all storage pools at one go automatically, use the following command:
Get-StoragePool | Where-Object {$_.IsReadonly –eq $True } | Set-StoragePool –IsReadonly $False
Run the following command to check the details of virtual disks:
Get-VirtualDisk
Note the IsManualAttach attribute. If it’s set to True, it means that you need to manually attach the disks on every restart of server or PC before you’re able to use the disks. To make sure that the virtual disks can auto-attach, run the following command:
Get-VirtualDisk | Where-Object {$_.IsManualAttach –eq $True} | Set-VirtualDisk –IsManualAttach $False
Storage Spaces feature is available since Windows 8 and Windows Server 2012, and Windows 8.1, Windows 10, Windows Server 2012 R2 and Windows Server 2016 continue to support Storage Spaces feature.