Configuring directories and file systems for application WPARs

Application WPARs share file systems with the global environment. You can use the -M flag for the wparexec command to configure directories and file systems.

Unlike system WPARs, application WPARs do not have a base directory. You cannot override the default settings for the local file system dependencies, but you can use the -M flag for the wparexec command to specify additional file system dependencies, such as a remote NFS mount. The directory attribute represents the mount point and this attribute is required for all instances created with the -M flag. The directory mount point will appear both in the WPAR and in the global environment.

Application WPARs do not create new file systems. Therefore, the local JFS and JFS2 file system types cannot be specified. A local file system dependency can be specified, but it must already exist in the /etc/filesystems directory.

To mount the remote /export/shared directory over the /shared directory in the global environment, run the following wparexec command with the -M flag, using the appropriate values for your environment:
wparexec -M directory=/shared vfs=nfs host=homeserver.customer.com dev=/export/shared \
-- /path/to/application arg1 arg2 ... argN 
To specify a local file system dependency, specify only the directory attribute for that mount stanza, as follows, using the appropriate values for your environment:
wparexec -M directory=/mylocalshare -- /path/to/application arg1 arg2 ... argN