-
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 resource trying to resize the partition even if it was not told to do so. #246
Comments
Suggest parameter name A notification message should be included to indicate the size test was suppressed. This should be enabled in DiskAccessPath once destructive changes are allowed - but as this feature has not been ported to that resource then we don't need to do this now. |
@jojiklmts - I'm just working on this, but can you confirm something for me: I would have expected to see:
Neither message is shown, so this makes me think something else is wrong. The reason Set is being run at all is because the Disk label mismatches - not because of the Disk size difference. |
So I removed now the "System" Label on purpose to demonstrate this.
Now I run the DSC config and I get the same as I shown before. It correctly identifies that the Label is not set correctly but before it attempts to correct it, it will stop because it is also trying to resize the volume (which it was not told to do) and it will halt because destructive change is not allowed:
Now I set the Label manually to be "System" as can be seen below:
And finally this is what DSC execution looks like when the Label is already set as "System":
|
Hi, has this - or #248 been fixed yet? we're still having this issue on VMSS and the ex-colleague of mine ianwalkeruk raised this 2 years ago. Thanks |
I have this very simple disk config. Just trying to set a label.
However when the config is executed, DSC is trying to resize the disk for some reason. I am not telling it to touch the disk size. See below WARNING line.
I talked with Daniel Scott-Raynsford and this seems to be the root cause:
"The challenge there is that the resource is designed so that if you don't specify a size for the partition it assumes you want to make the partition/volume consume all remaining space on the disk.
We could potentially implement a flag to force ignoring the size of the partition - if the partition already exists - that would resolve the problem"
The text was updated successfully, but these errors were encountered: