Inrecase FSLogix VHDX containers

Brandon Peters 86 Reputation points
2020-12-15T00:07:14.253+00:00

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.

FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
475 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kasper Johansen 76 Reputation points
    2020-12-19T17:39:00.827+00:00

    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 additional answers

Sort by: Most helpful
  1. Fredrik Endresen 91 Reputation points
    2020-12-19T09:54:53.79+00:00

    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

    0 comments No comments

  2. Fabian Schmidt 1 Reputation point
    2021-04-07T12:16:44.967+00:00

    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)?

    0 comments No comments