-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk : Test-TargetResource does not fail when Allocation Unit size changes #157
Comments
This sounds like a bug. Labeling it as such and help wanted so that anyone in the community can run with it. |
Hi @bbollard - you are correct, however it is by design, although it could be in need of improved design. If you set the It could be argued however that @johlju - any thoughts on the best behavior here? It does mean that the @bbollard - in the mean time, does setting the |
Oh, I see now, thanks for commenting on this @PlagueHO! @PlagueHO we could either document what functionality is "skipped" when |
I believe this particular case is a classic situation where 'one size does not fit all', since we are dealing with File Systems and where one person may want the volume re-formatted while someone else may not. In my case, I would not want the volume re-formatted, however, given this is a compliance toolset, I would want to know that the volume is out of compliance so that the reason why could be investigated. So @PlagueHO, I am just concerned with the Either way, the warning message did not display the current Allocation Unit Size correctly so perhaps if the behavior isn't changed, the message is fixed. Thanks for discussing. |
If we would leave it at the current behavior, could we add a new property that would make the Just thinking if we can cover more scenarios with a new property. 🤔 |
Details of the scenario you tried and the problem that is occurring:
When using the Disk resource to set a non-default AllocationUnitSize such as:
The Allocation Unit Size is set properly. However, if the volume is re-formatted to a different allocation unit size, the Test-TargetResource operation notes the issue (somewhat incorrectly) but does not mark the resource as not in desired state:
"VERBOSE: [XXXXX]: [[Disk]ZVolume] Test-TargetResource: Volume assigned to drive Z has allocation unit size 0 KB does not match expected
allocation unit size 64 KB."
Version of the Operating System and PowerShell the DSC Target Node is running:
Windows Server 2016
PSVersion 5.1.14393.2312
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2312
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
4.0.0.0
The text was updated successfully, but these errors were encountered: