-
Notifications
You must be signed in to change notification settings - Fork 53
DiskShrinkFailed #32
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
Comments
Hi, Great script. I experienced "DiskShrinkFailed" in the logs as well. In my case, the most of VHDX. But, actually, the script is working well reducing these disks, even if the log is saying "DiskShrinkFailed". Any idea? Thanks! |
Hi what language is your server in?
Thanks
Jim
…On Thu, 4 Mar 2021 at 07:58, mmueller-itsure ***@***.***> wrote:
Hi,
Great script. I experienced "DiskShrinkFailed" in the logs as well. In my
case, the most of VHDX. But, actually, the script is working well reducing
these disks, even if the log is saying "DiskShrinkFailed".
Any idea?
Thanks!
Hi,
I am experiencing the same issue. The Shrink works but the log states that
it failed.
It may be due to the language setting of the server. The script checks the
diskpart output against a static string. I was not yet able to verify the
behaviour, but it seems plausible to me.
if ($diskPartResult -contains 'DiskPart successfully compacted the virtual
disk file.') {...
It may be another issue than JungleJackNL described though.
Greetings
Matthias
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE365O5LXF455YVERW6473DTB44S7ANCNFSM4WCGR73Q>
.
|
Hi Jim, in my case the server is set to german language. I removed my reply and wanted to test the suggested fix from Issue #15 . I have already worked around the issue. For now the following crude lines of code give me the correct string i guess:
Greetings |
Hi Jim, In my case the server ISO is spanish. Thanks! |
our solution for german language
for solutions in other language I would compact vdisk manualy greetings |
Hi, I have same issue. Result is DiskShrinkFailed but diskpart make his work. The test disk shrank from 1.6Gb to around 500Mb. In temp drive i have FslDiskPartProfile_"user".VHDX.txt and 30 FslDiskPartErrorProfile_"user".VHDX-"number".log. I have also modified around line 1300 to match my locale (i have tested multiples things) ("DiskPart a correctement compact", "correctement compact", "DiskPart", "Correctement") . But it looks like the program didnt read the log files and continue to try to shrink the file until reach the max loop number (and shrink 30 time the file). I hope i m clear Best regards FslDiskPartProfile_user.VHDX.txt |
Try changing it to: DiskPart a correctement compacté le fichier de disque virtuel. Jim |
Ok this solution is working well. i was fearing that the "é" would cause problem so i didnt put the whole "DiskPart a correctement compacté le fichier de disque virtuel." in the program. Thx a lot |
Hiya,
we have been using the script for a couple of months now and it really does it job well and fast. We do however sometimes get a DiskShrinkFailed in the logs. When this happens, the vhdx is still mounted on the server and even has a drive letter. When we unmount the disk everything works as normal and the next day the disc is picked up by the script again and the status is succesfull.
The strange part is, when it stays mounted, a drive letter is also assigned. Any idea how this happens? Or what might be the cause of the driveletter getting assinged, or maybe why the disc does not get unmounted if the diskshrink fails?
Thanks in advance.
The text was updated successfully, but these errors were encountered: