What Should I Do If a Disk Is Offline?
Symptom
A disk attached to a Windows ECS is offline, and the system displays the message "The disk is offline because of policy set by an administrator."
Possible Causes
Windows has three types of SAN policies: OnlineAll, OfflineShared, and OfflineInternal.
| SAN Policy | Description |
|---|---|
| OnlineAll | Indicates that all newly detected disks are automatically brought online. |
| OfflineShared | Indicates that all newly detected disks on sharable buses, such as FC or iSCSI, are left offline by default, while disks on non-sharable buses are kept online. |
| OfflineInternal | Indicates that all newly detected disks are left offline. |
The SAN policy of certain Windows OSs, such as Windows Server 2008/2012 Enterprise Edition and Data Center Edition, is OfflineShared by default.
Solution
Use the disk partition management tool DiskPart to obtain and set the SAN policy on the ECS to OnlineAll.
- Log in to the Windows ECS.
- Press Win+R to run cmd.exe.
- Run the following command to access DiskPart:
- Run the following command to view the SAN policy on the ECS: san
- If the SAN policy is OnlineAll, run the exit command to exit DiskPart.
- If the SAN policy is not OnlineAll, go to step 5.
- Run the following command to change the SAN policy to OnlineAll:
san policy=onlineall
- (Optional) Use the ECS with the SAN policy changed to create a private image for the configuration to take effect permanently. After an ECS is created using this private image, the disks attached to the ECS are online by default. You only need to initialize them.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.