Creating an application WPAR

You can create an application WPAR using the wparexec command.

You must supply the path to the application or command that you want to create an application WPAR for, and you must supply any command line arguments when you run the wparexec command. The application can either come from a specification file, or be specified on the command line. Unlike system WPARs, it is not necessary to assign an explicit name to an application WPAR. Although both WPAR types require a name, the names for application WPARs are generated based on the name of the application running in the WPAR.

Complete the following steps to create an application WPAR:

  1. Log in as the root user to the system where you want to create and configure the workload partition.
    This login places you into the global environment.
  2. To create and configure the workload partition, run the following command:
    wparexec -n wparname -- /usr/bin/ps -ef > /ps.out
    The output should look similar to the following:
    wparexec: Verifying filesystems...
    wparexec: Workload partition wparname created successfully.
    startwpar: COMMAND START, ARGS: wparname
    startwpar: Starting workload partition 'wparname'
    startwpar: Mounting all workload partition file systems
    startwpar: Loading workload partition
    startwpar: Shutting down all workload partition processes
    rmwpar: Removing workload partition firstapp
    rmwpar: Return Status = SUCCESS
    startwpar: Return Status = SUCCESS

You have now successfully created an application WPAR.

Application WPARs start as soon as the wparexec command is issued, and stop as soon as the application completes its operation. When the operation is complete, the configuration for the application WPAR is destroyed.