Closed dewildep closed 3 years ago
If you mount the disk in disk manager what is the minimum size shown?
On Fri, 2 Jul 2021 at 11:18, dewildep @.***> wrote:
[image: image] https://user-images.githubusercontent.com/60405942/124260131-9aae6b80-db2f-11eb-9328-a2bfc779d454.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FSLogix/Invoke-FslShrinkDisk/issues/42#issuecomment-872888896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE365O3RGIP5WDK3YEYS3L3TVWHAVANCNFSM47WNFZMQ .
Hello @JimMoyle ,
when i mout it it shows this:
In Explorer:
Can you show me this screen? [image: image.png]
On Fri, 2 Jul 2021 at 11:35, dewildep @.***> wrote:
Hello @JimMoyle https://github.com/JimMoyle ,
when i mout it it shows this: [image: image] https://user-images.githubusercontent.com/60405942/124262153-fa0d7b00-db31-11eb-97af-d566f1ba2978.png
[image: image] https://user-images.githubusercontent.com/60405942/124262123-f0841300-db31-11eb-8c93-3bf8affe9b3b.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FSLogix/Invoke-FslShrinkDisk/issues/42#issuecomment-872899069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE365O4WCT5RM6JOBQVFOYTTVWI7XANCNFSM47WNFZMQ .
Sorry @JimMoyle i cannot see your screenshot, i see "Can you show me this screen? [image: image.png]"
Can you give me a link to download the VHD in question, and I'll try and figure out what's wrong. You can email me the link to the address associated with my github account
So I get the following when I try against your disk:
DiskState : Success OriginalSizeGB : 13.31 FinalSizeGB : 1.85 SpaceSavedGB : 11.46 FullName : D:\TestVHD\ODFC_bepdi.vhd
Hi @JimMoyle and thank you for testing. That is very strange! i am running the command on a Windows Server 2019. Are there any requirements for it to complete successfully ? The server is a VM running in AZURE. i'll download the file myself and test it on my machine, i'll let you know the results.
No special requirements at all, it should just work as it did for me, please let me know if you retest and still have problems
I've downloaded the file to my machine and i was able to shrink it: DiskState : Success OriginalSizeGB : 13.31 FinalSizeGB : 1.85 SpaceSavedGB : 11.46 FullName : C:\Temp\ODFC_bepdi.vhd
Also rebooted the server where the script is running, no solution there. the powershell version here is: Major Minor Build Revision 5 1 17763 1971
on my machine: Major Minor Build Revision 5 1 19041 1023
Given the script is meant to be run remotely (though it does work locally) what happens when you run the script on your local machine against the remote disk? Just pass the UNC path.
OK, i just ran it on different servers in the Azure network segment using the UNC path. Same issue. i'll try to connect directly to the network with my local machine via VPN and test again, i'll let you know te results.
Now i'm speechless! i connected my local machine (where the test was ok) to the Azure VNet and ran the powershell command against the UNC path. it took a long time to process the command on a single vhd file but now it is compressed like on my local machine. This is strange! why is this happening? My local machine is Windows 10 and the Servers are all Server 2019.
@JimMoyle is it OK to run the script over a VPN connection, executed on a client connected over VPN to the share where the profiles reside? Or will it download a lot of temp files or information?
It won't download anything.
On Thu, 8 Jul 2021, 14:32 dewildep, @.***> wrote:
@JimMoyle https://github.com/JimMoyle is it OK to run the script over a VPN connection, executed on a client connected over VPN to the share where the profiles reside? Or will it download a lot of temp files or information?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FSLogix/Invoke-FslShrinkDisk/issues/42#issuecomment-876442854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE365O4SOTHHTIBKT7IWJT3TWWSHTANCNFSM47WNFZMQ .
I get exactly the same, I've tried running it locally on the server that hosts the VHDX's and also remotely using UNC, the VHDX gets mounted and then the exact same error as the OP
@simonhuttonOB is your smphost service running?
@simonhuttonOB is your smphost service running?
It is yes,
I've ran the script on a 2012R2 server and a 2016 server and it runs OK on those just not the 2019 servers which are most of my server estate.
Send me a message to the email associated with this acct and I'll take a look.
Thank you for the assistance Jim, after the troubleshooting we determined that the VHDX is corrupt in some way as we were unable to run the Optimize even with the VHDX mounted in Windows. Thank you again for your assistance
Hi, i have an issue with the script. The Office conainer VHD files are not shrinked. In Explorer, they show 13GB. When i run the following command:
It processes the file but nothing happens with the file size, the log shows:
When i mount the VHD file and use TreeSize or another tool, it shows only 1.8 GB total file and folder size.
Am i doing something wrong or can the log be extended to see why he does not shrink? I tested several VHD files from different users, none want to shrink.