在Windows2008下添加iscsi存储出现磁盘Offine(The disk is offine because of policy set by an adminstrator)的解决方法

打开CMD命令行输入如下命令:

DISKPART.EXE

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             40 GB          0 B

Disk 1          Offline            4096MB     1024 KB

DISKPART>select disk 1

Disk 1 is now the selected disk.

DISKPART> ATTRIBUTES DISK CLEAR READONLY

Disk attributes cleared successfully.

DISKPART> attributes disk

Current Read-only State : No

Read-only : No

Boot Disk : No

Pagefile Disk: No

Hibernation File Disk: No

Crashdump Disk : No

Clustered  Disk : No

DISKPART> ONLINE DISK

DiskPart successfully onlined the selected disk.

posted @ 2016-01-16 14:05  袁晓坤  阅读(647)  评论(0)    收藏  举报