首页 > 代码库 > server2008磁盘管理(由于管理员设置的策略 脱机)
server2008磁盘管理(由于管理员设置的策略 脱机)
DISKPART.exe
DISKPART> san
SAN Policy : Offline Shared
Once you checked the applied policy you can set the disk online, as follow:
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 30 GB
Disk 1 Offline 50 GB
Disk 2 Offline 80 GB
Disk 3 Offline 250 GB
Disk 4 Offline 50 GB
In my case, disk 1 till 4 was offline so I had to repeat the following steps several times.
Select a offline disk
DISKPART> select disk 1
Disk 1 is now the selected disk
DISKPART>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 this:
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Now type “online disk” to bring the disk online.
If Clustered disk is set to YES. You have to stop the nodes. After that you are allowed to do the action above.