操作系統:Windows Server 2008 R2 Enterprise
事件:存儲在虛擬機上添加三塊磁盤,筆者准備擴展到E盤(動態分區)
問題:存儲團隊添加磁盤后,OS的磁盤管理界面,看到提示,The disk is offline because of policy set by an administrator
今天存儲團隊的人在我們服務器上添加了三塊硬盤,
然后筆者進入系統的磁盤管理界面看到有Offline(The disk is offline because of policy set by an administrator),如下:
解決方法:進入cmd中,執行如下命令(只輸出一台服務器的操作,其他類似,都操作完后,exit命令退出):
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條命令即可!最后完了筆者還是將san的policy,修改回默認的Offline Shared
后續的操作,只需要在磁盤管理中,添加的磁盤中,刪除分區,
左側Disk欄,右鍵Convert to Dynamic Disk... 轉換成動態磁盤,最后在需要擴展的分區上右鍵擴展即可!
尊重別人的勞動成果 轉載請務必注明出處:https://www.cnblogs.com/5201351/p/13680309.html