Featured Post

Links library

2018/07/04

Add / Remove Disk to Storage Pool

(Draft, work in progress)

s2d.dk is not responsible for any errors, or for the results obtained from the use of this information on s2d.dk. All information in this site is provided as "draft notes" and "as is", with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information. Always test in a lab setup, before use any of the information in production environment. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

The following are done in S2D test/demo environment with 6 Cluster Nodes. Each Node have 6 SSDs.

List disk in a specific Cluster Node
Get-StorageNode -Name S047023.contoso.com | Get-PhysicalDisk -PhysicallyConnected | sort PhysicalLocation | ft SerialNumber, PhysicalLocation, CanPool



List more information as Firmware or reason why disk cannot be add to Pool
Get-StorageNode -Name S047023.contoso.com | Get-PhysicalDisk -PhysicallyConnected | sort PhysicalLocation | ft SerialNumber, PhysicalLocation, FirmwareVersion, HealthStatus, CanPool, CannotPoolReason, MediaType




Retire Disk in Pool
Get-PhysicalDisk -SerialNumber xxxxxx27 | Set-PhysicalDisk -Usage Retired

Reset Disk
Get-PhysicalDisk -SerialNumber xxxxxx27 | Reset-PhysicalDisk

AutoSelect
Get-PhysicalDisk -SerialNumber xxxxxx27 | Set-PhysicalDisk -Usage AutoSelect

Remove Disk from Pool
$Disk = Get-PhysicalDisk |? Usage -like Retired
Get-StoragePool *S2D* | Remove-PhysicalDisk -PhysicalDisks $Disk


Add Disk to Pool
$Disk = Get-PhysicalDisk |? CanPool -like True
Get-StoragePool *S2D* | Add-PhysicalDisk -PhysicalDisks $Disk

After the Disk is add to the Pool Again the disk show 0% use

Node: S047023 listed as Node 3 with PS Show-PrettyPool.ps1 Script


Optimize Storage Pool
Get-StoragePool
Optimize-StoragePool "S2D on S2D01"

Get-StorageJob | ? JobState -Eq Running



Optimize Volume
Get-Volume
Optimize-Volume -FileSystemLabel "vDisk1"
Get-StorageJob | ? JobState -Eq Running