1. 程式人生 > 實用技巧 >windows伺服器新增磁碟後,提示The disk is offline because of policy set by an administrator的解決辦法

windows伺服器新增磁碟後,提示The disk is offline because of policy set by an administrator的解決辦法

作業系統: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... 轉換成動態磁碟,最後在需要擴充套件的分割槽上右鍵擴充套件即可!

尊重別人的勞動成果 轉載請務必註明出處:https://www.cnblogs.com/5201351/p/13680309.html