Moka5
Moka5


Managing Disk Space on Hosts with Moka5 LivePCs   « Go Back

Updated on: January 20, 2015
We have added information on running on-demand compaction on Mac hosts.


Summary

This article explains how to use on-demand compaction to reduce the space Moka5 LivePCs occupy on host machines.

Applies To

Moka5 4.1.3

Running on-demand compaction

In Moka5 4.1.3, you can compact LivePCs on demand using the command line. This command-line method will be replaced in an upcoming release by an option exposed in Player.

Compaction usually takes between 15 and 30 minutes to complete.

On-demand compaction always optimizes for file size, regardless of how much disk space is available on the host.

Note: You can only run this type of compaction on shut-down LivePCs.
  1. If the LivePC is running, shut it down.
  2. Open the command line or Terminal.
  3. On Windows hosts: Navigate to the do_rpc file in the Moka5 installation directory's "bin" directory.

    cd "c:\Program Files (x86)\mokafive\Engine\bin"

    Enter the following command to list your LivePC IDs:

    do_rpc localhost 29524 op list_apps

    Enter the following command to compact the LivePC you specify:

    do_rpc localhost 29524 op compact_app id [Your LivePC ID]



    On Mac hosts: Navigate to the Moka5 Player.app directory:

    cd "/Applications/Moka5 Player.app/Contents/MacOS"

    Enter the following command to list your LivePC IDs:

    ./do_rpc localhost 29524 op list_apps

    Enter the following command to compact the LivePC you specify:

    ./do_rpc localhost 29524 op compact_app id [Your LivePC ID]

  4. While compaction runs, the shut-down LivePC will be unavailable. You can monitor compaction status on Player. When the LivePC state changes back to “Ready,” compaction has completed.

Note: On-demand compaction will fail to compact files within the LivePC that are 6 GB or larger. Compaction will run on all other files.