|
虚拟机配置启用嵌套化,支持安装hyper-v
关闭虚拟机后,使用
PowerShell
Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
查看存储池的相关powershell
==================================================
Get-StorageFaultDomain
#查询所有物理磁盘的信息:
Get-PhysicalDisk
#查询所有物理磁盘的 riendlyName,UniqueId,HealthStatus,OperationalStatus 对应信息
Get-PhysicalDisk | Select-Object FriendlyName,UniqueId,HealthStatus,OperationalStatus
#查询存储池的信息
Get-StoragePool
#查询存储层信息
Get-StorageTier
#查询指定存储池的物理磁盘特定信息
Get-StoragePool -FriendlyName 'S2D on testcluster' | Get-PhysicalDisk | Select-Object FriendlyName,UniqueId,HealthStatus,OperationalStatus
# 设置物理硬盘为热备盘
Get-PhysicalDisk 查询到物理硬盘的情况,然后根据硬盘的-FriendlyName 进行设置
Get-PhysicalDisk -FriendlyName HGST_HUS726060ALS640_1EGD0NMB | Set-PhysicalDisk -Usage HotSpare
Get-PhysicalDisk -FriendlyName SEAGATE_ST6000NM0034_Z4D257LP0000R543W0K3 | Set-PhysicalDisk -Usage HotSpare
#把硬盘恢复成自动选择:
Get-PhysicalDisk -FriendlyName SEAGATE_ST6000NM0034_Z4D257LP0000R543W0K3 | Set-PhysicalDisk -Usage AutoSelect
#把硬盘变成维护状态:
Get-PhysicalDisk -FriendlyName SEAGATE_ST6000NM0034_Z4D257LP0000R543W0K3 | Set-PhysicalDisk -Usage Retired