question

BrandonPeters-6835 avatar image
0 Votes"
BrandonPeters-6835 asked FabianSchmidt-2246 answered

Inrecase FSLogix VHDX containers

Hello,

I recently increased the size of our Office VHDX container limit, and I was hoping someone might have a recommendation for how to increase the VHDX size of the existing containers with no or little impact to the users. I would like our environment to be consistent, so all the users have the same VHDX limit. It would be nice if there was a real time "Expander/Resizer" for the VHDX.

Does anyone have a recommendation for a script that could do this, or is there an FSLogix utility that can already handles this?

I appreciate any assistance.

windows-server-powershellwindows-server-fslogix
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KasperJohansen-7575 avatar image
0 Votes"
KasperJohansen-7575 answered KasperJohansen-7575 commented

I have a script which can expand both profile containers and ODFC containers, and probably any other container types as well. You will of course have to execute the script as an administrative user and specify either each individual container or a share with multiple containers.

https://github.com/kaspersmjohansen/FSLogix/tree/master/Expand-Container

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No problem at all. Let me know if you run into any issues or have any kind of feedback :)

0 Votes 0 ·
FredrikEndresen-9130 avatar image
0 Votes"
FredrikEndresen-9130 answered

Hi,

FSLogix has no tools for expanding existing disks.
It`s always recommended to size the disks large to avoid this problem. You can then either limit the size of data that grows inside the disk doing other things. Set max .OST size, clear cache etc.

Change your GPO and set a large max size, so at least new users will get big enough disks.


For the disks already created, you have to to something like mentioned her: (take backup before testing..)

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f0ecc72e-78e8-48a9-99e6-e159f87f2cef/how-to-resize-the-current-vhdx-in-fslogix?forum=FSLogix


I would also recommend running this shrink script from Jim Moyle. It removes whitespace inside the disks and will often shrink the disk by 50% !

https://github.com/FSLogix/Invoke-FslShrinkDisk

Regards
Fredrik

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FabianSchmidt-2246 avatar image
0 Votes"
FabianSchmidt-2246 answered

Hi, I have a similar question:

I tried resizing a test container with frx.exe and it worked.

But I have a real user who hit the hard limit size. And as far as I can tell the RW.vhdx cannot be merged into the parent disk, because it's full.
The user gets a temp logon, I assume because the merge doesn't work.

So now I'm stuck with a profile container I cannot use, cannot resize and cannot mount to migrate the data because the RW disk blocks changes and mounting.
Is there anything I can do here (except move/delete the container and create a new one)?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.