Home
%3CLINGO-SUB%20id%3D%22lingo-sub-425486%22%20slang%3D%22en-US%22%3ECluster%20aggregated%20view%20in%20Windows%20Server%202012%20R2%20Storage%20Provider%20for%20an%20asymmetric%20storage%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-425486%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Nov%2017%2C%202014%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EBlog%20written%20by%20Sripresanna%20in%20the%20Storage%2C%20Network%20%26amp%3B%20Print%20Team.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Cluster%20aggregated%20view%20for%20Windows%20Storage%20Provider%20(Asymmetric%20storage%20configuration)%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThis%20is%20a%20continuation%20of%20previous%20blog%2C%20where%20I%20explained%20cluster%20aggregated%20view%20for%20Windows%20Storage%20Provider%20for%20symmetric%20storage%20configuration.%20We%20strongly%20encourage%20to%20use%20Symmetric%20storage%20configuration%20and%20this%20blog%20is%20just%20to%20illustrate%20how%20cluster%20aggregate%20feature%20(in%20Windows%20Server%202012%20R2)%20will%20work%20for%20an%20Asymmetric%20storage%20configuration.%20%3CB%3E%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EConsider%20the%20asymmetric%20storage%20configuration%20in%20the%20below%20cluster%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107322iA32C5994702BE3E7%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20cluster%20aggregated%20view%20for%20storage%20objects%20works%20the%20same%20way%20for%20symmetric%20and%20asymmetric%20storage%20(not%20fully%20shared%20storage%20across%20all%20cluster%20nodes)%20configurations.%20The%20two%20differences%20for%20asymmetric%20storage%20is%20that%3A%3C%2FP%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EAll%20SAS%20based%20physical%20disks%20are%20shown%20in%20the%20cluster%20aggregated%20view%20though%20not%20all%20of%20them%20can%20be%20part%20of%20the%20same%20concrete%20storage%20pool%2C%20since%20there%20isn%E2%80%99t%20a%20common%20node%20where%20all%20are%20connected.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EFor%20example%2C%20if%20a%20SAS%20physical%20disk%20PD4%20is%20connected%20only%20to%20cluster%20node%20N3%2C%20is%20not%20an%20OS%20disk%2C%20(what%20other%20criteria%20%E2%80%93%20size%2C%20no%20partitions)%20cluster%20UI%20will%20not%20show%20this%20disk%20as%20it%20cannot%20be%20added%20to%20the%20cluster%20(since%20it%20is%20not%20shared%20with%20any%20of%20the%20other%20cluster%20nodes).%20But%20the%20aggregated%20view%20(Get-PhysicalDisk)%20will%20show%20this%20disk.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EThis%20is%20because%20we%20cannot%20detect%20if%20the%20drive%20is%20truly%20intended%20to%20be%20connected%20just%20to%20that%20node%20or%20if%20the%20link%20from%20the%20drive%20to%20another%20cluster%20node%20is%20intermittently%20down.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EThe%20primordial%20pool%20of%20the%20cluster%20subsystem%20contains%20the%20aggregated%20set%20of%20drives%20with%20%E2%80%9CCanPool%E2%80%9D%20equals%20%E2%80%9Ctrue%E2%80%9D.%20But%20creating%20a%20concrete%20pool%20from%20this%20may%20fail%20if%20just%20this%20criteria%20was%20used%20to%20pick%20the%20drives.%20Note%20that%20concrete%20pools%20can%20be%20formed%20only%20with%20drives%20that%20are%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EPhysically%20connected%20to%20a%20given%20set%20of%20nodes.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EAll%20within%20the%20same%20storage%20subsystem%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%3EThe%20cluster%20primordial%20pool%20will%20contain%20these%20Physical%20disks%20%E2%80%93%20%7BP1%2C%20P2%2C%20P3%2C%20P4%7D.%20To%20create%20a%20concrete%20pool%20on%20the%20cluster%2C%20the%20StorageNode%20%EF%83%A0%20PhysicalDisk%20association%20should%20be%20used%20to%20determine%20the%20set%20of%20disks%20that%20are%20physically%20attached%20to%20a%20set%20of%20nodes%20(and%20CanPool%20%3D%20true)%20and%20then%20form%20the%20concrete%20pool%20with%20those%20Physical%20Disks.%20In%20this%20case%20such%20valid%20sets%20would%20be%20(Sample%20script%20in%20the%20last%20section%20)%3C%2FP%3E%3CBR%20%2F%3E%3CBLOCKQUOTE%3E%3CBR%20%2F%3E%3CP%3EN1-N2-N3%2FN1-N2%2FN2-N3%2FN1-N3%2FN1%3A%20%7BPD1%2C%20PD3%7D%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EN2%3A%20%7BPD1%2C%20PD2%2C%20PD3%7D%2C%20%7BPD1%2C%20PD2%7D%2C%20%7BPD2%2C%20PD3%7D%2C%20%7BPD1%2C%20PD3%7D%2C%20%7BPD1%7D%2C%20%7BPD2%7D%2C%20%7BPD3%7D%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EN3%3A%20%7BPD1%2C%20PD3%2C%20PD4%7D%2C%20%7BPD1%2C%20PD3%7D%2C%20%7BPD3%2C%20PD4%7D%2C%20%7BPD1%2C%20PD4%7D%2C%20%7BPD1%7D%2C%20%7BPD3%7D%2C%20%7BPD4%7D%3C%2FP%3E%3CBR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CBR%20%2F%3E%3CP%3EHere%E2%80%99s%20the%20asymmetric%20storage%20cluster%20which%20will%20be%20used%20to%20walkthrough%20the%20below%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107323iD565347E2AF99516%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Two%20Storage%20Subsystems%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3E%20%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThis%20also%20has%20the%20local%20and%20cluster%20storage%20subsystems%3C%2FP%3E%3CBR%20%2F%3E%3CTABLE%3E%0A%20%20%20%3CTBODY%3E%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107324i738C2DE4102B9806%22%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%3C%2FTBODY%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107325i55B35FD710DB323B%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20to%20show%20the%202%20Storage%20subsystem%20on%20each%20node%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ea.%20Enumerate%20physical%20disks%20in%20each%20subsystem%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107326i6BC19B791B22B02F%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20showing%20the%20Physical%20Disk%20in%20each%20Storage%20subsystem%20on%20node%201%2C%202%2C%203%20and%204%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eb.%20Creating%20a%20Storage%20pool%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20below%20two%20PowerShell%20snippet%20enumerates%20primordial%20pools%20in%20local%20and%20cluster%20Storage%20System.%20You%20will%20notice%20that%20primordial%20pool%20in%20cluster%20Storage%20System%20from%20all%20nodes%20show%20same%20output.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107327i718AD1661EADB07D%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107328i260DE02020F81F4D%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CTABLE%3E%0A%20%20%20%3CTBODY%3E%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107329iCAB6F92DADFDFF47%22%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%3C%2FTBODY%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20to%20create%20a%20pool%20on%20local%20storage%20system%20of%20node1%20%26amp%3B%20enumerate%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107330i9FB09400D7275840%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20to%20create%20a%20pool%20on%20cluster%20subsystem%20from%20node1%20%26amp%3B%20enumerate%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EFew%20things%20to%20note%3A%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EA%20pool%20can%20be%20created%20only%20using%20drives%20that%20belong%20to%20the%20same%20subsystem%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EA%20pool%20can%20be%20created%20using%20drives%20that%20are%20physically%20connected%20to%20a%20given%20set%20of%20nodes.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EA%20pool%20created%20on%20a%20cluster%20subsystem%20is%20by%20default%20clustered%20(added%20to%20the%20cluster).%20To%20disable%20auto-clustering%20of%20a%20pool%2C%20the%20%E2%80%9CEnableAutomaticClustering%E2%80%9D%20flag%20needs%20to%20be%20set%20to%20%E2%80%9Cfalse%E2%80%9D%20on%20the%20cluster%20subsystem%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%3EThe%20below%20PowerShell%20snippet%20illustrates%20this.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107331i60266C1109B03215%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESet-StorageSubsystem%20%E2%80%93EnableAutomaticClustering%20%24false%20on%20the%20clustered%20subsystem%3C%2FP%3E%3CBR%20%2F%3E%3CTABLE%3E%0A%20%20%20%3CTBODY%3E%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107332iFCBB63F8E55CA25B%22%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%3C%2FTBODY%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%3CP%3EFrom%20then%20on%2C%20to%20add%20the%20pool%20to%20the%20cluster%2C%20the%20Add-ClusterResource%20cmdlet%20should%20be%20used.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ec.%20Creating%20virtual%20disk%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107333i8411C034FC003E17%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20to%20enumerate%20pool%20in%20local%20Storage%20System%2C%20create%20Virtual%20Disk%20and%20enumerate%20it%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107334i39BE4007F48D7594%22%20%2F%3E%20%3CB%3E%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CI%3E%20PowerShell%20snippet%20to%20enumerate%20pool%20in%20local%20Storage%20System%2C%20create%20Virtual%20Disk%20and%20enumerate%20it%20%3CB%3E%20%3C%2FB%3E%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F107335i7CBF89360C797423%22%20%2F%3E%20%3CB%3E%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EScript%20to%20generate%20sets%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBLOCKQUOTE%3E%3CBR%20%2F%3E%3CP%3E%24count%20%3D%20Read-Host%20-Prompt%20%22Enter%20number%20of%20nodes%22%20%3CBR%20%2F%3E%20%5BString%5B%5D%5D%20%24nodesarray%20%3D%20%40()%20%3CBR%20%2F%3E%20For%20(%24i%3D0%3B%20%24i%20-lt%20%24count%3B%20%24i%2B%2B)%20%3CBR%20%2F%3E%20%7B%20%3CBR%20%2F%3E%20%24nodesarray%20%2B%3D%20Read-Host%20-Prompt%20%22Enter%20node%22%20%3CBR%20%2F%3E%20%7D%20%3CBR%20%2F%3E%20%24temp%20%3D%20Get-StorageNode%20-name%20%24nodesarray%5B0%5D%20%7C%20Get-PhysicalDisk%20%7C%20select%20UniqueId%20%3CBR%20%2F%3E%20%24PD%20%3D%20%24temp%20%7C%20select%20-expand%20UniqueId%20%E2%80%93Unique%20%3CBR%20%2F%3E%20%24NPD%20%3D%20%24PD%20%3CBR%20%2F%3E%20foreach%20(%24element%20in%20%24nodesarray)%20%3CBR%20%2F%3E%20%7B%20%3CBR%20%2F%3E%20%24temp%20%3D%20Get-StorageNode%20-name%20%24element%20%7C%20Get-PhysicalDisk%20%7C%20select%20UniqueId%20%3CBR%20%2F%3E%20%24PD%20%3D%20%24temp%20%7C%20select%20-expand%20UniqueId%20%E2%80%93Unique%20%3CBR%20%2F%3E%20%24NPD%20%3D%20%24NPD%20%7C%20%3F%7B%24PD%20-contains%20%24_%7D%20%3CBR%20%2F%3E%20%7D%20%3CBR%20%2F%3E%20%24PD%20%3D%20%40()%20%3CBR%20%2F%3E%20foreach%20(%24element%20in%20%24NPD)%20%3CBR%20%2F%3E%20%7B%20%3CBR%20%2F%3E%20Write-Host%20%24element%20%3CBR%20%2F%3E%20%24PD%20%2B%3D%20Get-PhysicalDisk%20-UniqueId%20%24element%20%3CBR%20%2F%3E%20%7D%20%3CBR%20%2F%3E%20%24PD%20%3CBR%20%2F%3E%20Get-StorageSubSystem%20-FriendlyName%20%22clu*%22%20%7C%20New-StoragePool%20-FriendlyName%20%22testpool%22%20-PhysicalDisks%20%24PD%3C%2FP%3E%3CBR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-425486%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20Nov%2017%2C%202014%20Blog%20written%20by%20Sripresanna%20in%20the%20Storage%2C%20Network%20%26amp%3B%20Print%20Team.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-425486%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Estorage%20management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Estorage%20spaces%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindows%20server%202012%20r2%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TECHNET on Nov 17, 2014

Blog written by Sripresanna in the Storage, Network & Print Team.




Cluster aggregated view for Windows Storage Provider (Asymmetric storage configuration)



This is a continuation of previous blog, where I explained cluster aggregated view for Windows Storage Provider for symmetric storage configuration. We strongly encourage to use Symmetric storage configuration and this blog is just to illustrate how cluster aggregate feature (in Windows Server 2012 R2) will work for an Asymmetric storage configuration.


Consider the asymmetric storage configuration in the below cluster:




The cluster aggregated view for storage objects works the same way for symmetric and asymmetric storage (not fully shared storage across all cluster nodes) configurations. The two differences for asymmetric storage is that:



  1. All SAS based physical disks are shown in the cluster aggregated view though not all of them can be part of the same concrete storage pool, since there isn’t a common node where all are connected.



  • For example, if a SAS physical disk PD4 is connected only to cluster node N3, is not an OS disk, (what other criteria – size, no partitions) cluster UI will not show this disk as it cannot be added to the cluster (since it is not shared with any of the other cluster nodes). But the aggregated view (Get-PhysicalDisk) will show this disk.

  • This is because we cannot detect if the drive is truly intended to be connected just to that node or if the link from the drive to another cluster node is intermittently down.



  • The primordial pool of the cluster subsystem contains the aggregated set of drives with “CanPool” equals “true”. But creating a concrete pool from this may fail if just this criteria was used to pick the drives. Note that concrete pools can be formed only with drives that are



  • Physically connected to a given set of nodes.

  • All within the same storage subsystem


The cluster primordial pool will contain these Physical disks – {P1, P2, P3, P4}. To create a concrete pool on the cluster, the StorageNode  PhysicalDisk association should be used to determine the set of disks that are physically attached to a set of nodes (and CanPool = true) and then form the concrete pool with those Physical Disks. In this case such valid sets would be (Sample script in the last section )



N1-N2-N3/N1-N2/N2-N3/N1-N3/N1: {PD1, PD3}


N2: {PD1, PD2, PD3}, {PD1, PD2}, {PD2, PD3}, {PD1, PD3}, {PD1}, {PD2}, {PD3}


N3: {PD1, PD3, PD4}, {PD1, PD3}, {PD3, PD4}, {PD1, PD4}, {PD1}, {PD3}, {PD4}



Here’s the asymmetric storage cluster which will be used to walkthrough the below workflow.




Two Storage Subsystems



This also has the local and cluster storage subsystems




PowerShell snippet to show the 2 Storage subsystem on each node



a. Enumerate physical disks in each subsystem




PowerShell snippet showing the Physical Disk in each Storage subsystem on node 1, 2, 3 and 4



b. Creating a Storage pool



The below two PowerShell snippet enumerates primordial pools in local and cluster Storage System. You will notice that primordial pool in cluster Storage System from all nodes show same output.





PowerShell snippet to create a pool on local storage system of node1 & enumerate



PowerShell snippet to create a pool on cluster subsystem from node1 & enumerate



Few things to note:



  • A pool can be created only using drives that belong to the same subsystem

  • A pool can be created using drives that are physically connected to a given set of nodes.

  • A pool created on a cluster subsystem is by default clustered (added to the cluster). To disable auto-clustering of a pool, the “EnableAutomaticClustering” flag needs to be set to “false” on the cluster subsystem


The below PowerShell snippet illustrates this.



Set-StorageSubsystem –EnableAutomaticClustering $false on the clustered subsystem



From then on, to add the pool to the cluster, the Add-ClusterResource cmdlet should be used.



c. Creating virtual disk




PowerShell snippet to enumerate pool in local Storage System, create Virtual Disk and enumerate it



PowerShell snippet to enumerate pool in local Storage System, create Virtual Disk and enumerate it




Script to generate sets




$count = Read-Host -Prompt "Enter number of nodes"
[String[]] $nodesarray = @()
For ($i=0; $i -lt $count; $i++)
{
$nodesarray += Read-Host -Prompt "Enter node"
}
$temp = Get-StorageNode -name $nodesarray[0] | Get-PhysicalDisk | select UniqueId
$PD = $temp | select -expand UniqueId –Unique
$NPD = $PD
foreach ($element in $nodesarray)
{
$temp = Get-StorageNode -name $element | Get-PhysicalDisk | select UniqueId
$PD = $temp | select -expand UniqueId –Unique
$NPD = $NPD | ?{$PD -contains $_}
}
$PD = @()
foreach ($element in $NPD)
{
Write-Host $element
$PD += Get-PhysicalDisk -UniqueId $element
}
$PD
Get-StorageSubSystem -FriendlyName "clu*" | New-StoragePool -FriendlyName "testpool" -PhysicalDisks $PD