SOLVED

S2D Identify PCIe NVMe in SOFS Cluster

%3CLINGO-SUB%20id%3D%22lingo-sub-85412%22%20slang%3D%22en-US%22%3ES2D%20Identify%20PCIe%20NVMe%20in%20SOFS%20Cluster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-85412%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%204%20nodes%20in%20a%20SOFS%20cluster%20with%20S2D%2C%20each%20node%20has%202%20NVMe%20PCIe%20cards.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20is%20retired%2C%20but%20in%20which%20node%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20look%20in%20de%20Server%20Manager%20GUI%20the%20disk%20have%20all%20one%20node%20between%20the%20(%20)%20so%20can%20identify%20which%20node%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-85412%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EClustering%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-86690%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20S2D%20Identify%20PCIe%20NVMe%20in%20SOFS%20Cluster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-86690%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20was%20the%20formatting%20on%20the%20post%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%24clusterName%3D%22fill%20in%20clustername%22%3CBR%20%2F%3E%24nodes%3DGet-StorageSubSystem%20-CimSession%20%24clusterName%20-FriendlyName%20Clus*%20%7C%20Get-StorageNode%3CBR%20%2F%3E%24disks%3D%40()%3CBR%20%2F%3Eforeach%20(%24node%20in%20%24nodes)%20%7B%20%24disks%2B%3DInvoke-Command%20-ComputerName%20%24node.Name%20-ArgumentList%20%24node%20-ScriptBlock%20%7B%20param(%24node)%3B%20%24node%20%7C%20Get-PhysicalDisk%20-PhysicallyConnected%20%7D%20%7D%3CBR%20%2F%3E%24disks%20%7C%20select%20PSComputerName%2Cfriendlyname%2CSerialNumber%2Chealthstatus%2COperationalStatus%2CCanPool%2Cphysicallocation%2Cslotnumber%20%7C%20Out-GridView%20%23or%20all%20%24disks%20%7C%20select%20*%20%7C%20ogv%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-86687%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20S2D%20Identify%20PCIe%20NVMe%20in%20SOFS%20Cluster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-86687%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20command%20is%20not%20working%20some%20syntax%20errors.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-86296%22%20slang%3D%22en-US%22%3ERE%3A%20S2D%20Identify%20PCIe%20NVMe%20in%20SOFS%20Cluster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-86296%22%20slang%3D%22en-US%22%3EHow%20about%20this%3F%20Just%20replace%20cluster%20name%20with%20yours.%20%24clusterName%3D%22S2D-Cluster%22%20%24nodes%3DGet-StorageSubSystem%20-CimSession%20%24clusterName%20-FriendlyName%20Clus*%20%7C%20Get-StorageNode%20%24disks%3D%40()%20foreach%20(%24node%20in%20%24nodes)%20%7B%20%24disks%2B%3DInvoke-Command%20-ComputerName%20%24node.Name%20-ArgumentList%20%24node%20-ScriptBlock%20%7B%20param(%24node)%3B%20%24node%20%7C%20Get-PhysicalDisk%20-PhysicallyConnected%20%7D%20%7D%20%24disks%20%7C%20select%20PSComputerName%2Cfriendlyname%2CSerialNumber%2Chealthstatus%2COperationalStatus%2CCanPool%2Cphysicallocation%2Cslotnumber%20%7C%20Out-GridView%20%23or%20all%20%24disks%20%7C%20select%20*%20%7C%20ogv%3C%2FLINGO-BODY%3E
Occasional Contributor

We have 4 nodes in a SOFS cluster with S2D, each node has 2 NVMe PCIe cards.

 

One is retired, but in which node?

 

When you look in de Server Manager GUI the disk have all one node between the ( ) so can identify which node?

3 Replies
best response confirmed by Andre van den Berg (Occasional Contributor)
Solution
How about this? Just replace cluster name with yours. $clusterName="S2D-Cluster" $nodes=Get-StorageSubSystem -CimSession $clusterName -FriendlyName Clus* | Get-StorageNode $disks=@() foreach ($node in $nodes) { $disks+=Invoke-Command -ComputerName $node.Name -ArgumentList $node -ScriptBlock { param($node); $node | Get-PhysicalDisk -PhysicallyConnected } } $disks | select PSComputerName,friendlyname,SerialNumber,healthstatus,OperationalStatus,CanPool,physicallocation,slotnumber | Out-GridView #or all $disks | select * | ogv

The command is not working some syntax errors.

It was the formatting on the post

 

$clusterName="fill in clustername"
$nodes=Get-StorageSubSystem -CimSession $clusterName -FriendlyName Clus* | Get-StorageNode
$disks=@()
foreach ($node in $nodes) { $disks+=Invoke-Command -ComputerName $node.Name -ArgumentList $node -ScriptBlock { param($node); $node | Get-PhysicalDisk -PhysicallyConnected } }
$disks | select PSComputerName,friendlyname,SerialNumber,healthstatus,OperationalStatus,CanPool,physicallocation,slotnumber | Out-GridView #or all $disks | select * | ogv

 

Thank you very much.