dsccommunity / StorageDsc

DSC resource module is used to manage storage on Windows Servers.
https://dsccommunity.org
MIT License
66 stars 51 forks source link

Get-DiskByIdentifier: Allow selection based on Serial Number #259

Closed jambar42 closed 1 year ago

jambar42 commented 2 years ago

https://github.com/dsccommunity/StorageDsc/blob/7aa733b8bd476d90dd51646211c59ba3bbd11c6f/source/Modules/StorageDsc.Common/StorageDsc.Common.psm1#L163

By querying disk based on serial number, this makes it possible to associate specific shared disks provided by a SAN. Even if the disk ordering is different between 2 cluster nodes, the disk serial number will remain constant.