操作系统:Windows Server 2008 R2 Enterprise
事件:外部添加两块磁盘,扩展到E盘(动态分区)
问题:存储团队添加磁盘后,OS磁盘管理界面,看到提示,The disk is offline because of policy set by an administrator
今天vmware团队的人在我们虚拟机服务器上添加了一块硬盘,
然后笔者进入系统的磁盘管理界面看到有Offline(The disk is offline because of policy set by an administrator),如下:
解决方法:
进入cmd中,执行如下命令(只输出一台服务器的操作,其他类似):
C:\Users\QQ5201351\Desktop>diskpart DISKPART> san SAN Policy : Offline Shared DISKPART> san policy=onlineall DiskPart successfully changed the SAN policy for the current operating system. DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 60 GB 2048 KB ………………………………….(省略部分输出)…………………………………………. Disk 12 Online 20 GB 1024 KB * Disk 13 Offline 102 GB 0 B * Disk 14 Offline 102 GB 0 B * Disk 15 Offline 102 GB 102 GB * DISKPART> select disk 14 DISKPART> attributes disk clear readonly DISKPART> online disk
说明:其实应该只需要操作最后3条命令即可!最后完了还是修改回默认的Offline Shared
后续的操作,只需要在磁盘管理中,添加的磁盘中,删除分区,
左侧Disk栏,右键Convert to Dynamic Disk... 转换成动态磁盘,最后在需要扩展的分区上右键扩展即可!
windows服务器添加磁盘后,提示The disk is offline because of policy set by an administrator的解决办法