记述一次Windows服务器磁盘故障问题

问题描述:Win 2008 R2——由于管理员设置的策略,该磁盘处于脱机状态

(The disk is offfline because of policy set by an administrator)

解决方案步骤如下:

使用DISKPART.exe命令 解除策略

1.运行:cmd
2.输入:DISKPART.exe搜索
3.DISKPART> san
4.DISKPART> san policy=onlineall
5.DISKPART>list disk
6.DISKPART> select disk 1
7.DISKPART>attributes disk clear readonly
8.DISKPART>online disk


附解决方案英文描述:

open a command prompt and type “diskpart.exe”.

You will now receive a diskpart-prompt:
Diskpart>

Now type “san”. This will provide you with the current configured SAN policy:

SAN Policy : Offline Shared


In the diskpart-prompt, type “san policy=OnlineAll”.
This will result in the following message:
Diskpart successfully changed the SAN policy for the current operating system.

Now type “list disk”, which will give this message:
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 30 GB 0 B
Disk 1 Offline 50 GB 1024 KB

In my case, disk 1 was offline so I typed “select disk 1” which provided:
Disk 1 is now the selected disk

Now type “attributes disk clear readonly”.
Disk attributes cleared successfully.
And to check if all the settings are now correct, type “attributes disk”.
This will give an output something like:
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

After the last check has been successful, type “online disk” to bring the disk online.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值