Hyper-V: Error: Media is Write Protected (0x80070013, SAN-Disk)
"Media is Write Protected" Error or VDS error 80070013 after bringing SAN disk online via Diskpart
In Windows Server there is a policy new to Windows related to SAN disks. This "SAN policy" determines whether a newly discovered disk is brought online or remains offline, and whether it is made read/write or remains read-only.
- Run DiskPart
- List and select the disk that needs to be made available.
LIST DISK SELECT DISK <disk #>
- If the disk is offline, bring it online by running
- View the attributes by running
- To clear the read only flag run
ATTRIBUTE DISK CLEAR READONLY
- Exit DiskPart