Previous Topic: migrate (Application Control and Management)--Migrate ApplicationNext Topic: get_desc (Application Control and Management)--Display Application Package Descriptor


provision (Application Control and Management)--Provision Application

Provision, configure, and start an application. Application configuration parameters may be specified for the new application and sizes for application user and singleton class volumes.

Syntax
app provision <template-app> <target-app> [<option>]* [<prop>=<val>]* [<vol>.[parN.]size=<val>]* 
Parameters
<template-app>

Name of existing application to use as a template.

<target-app>

name of the application that is to be created - the application must not currently exist.

<prop>=<val>

Config parameter pairs as used for the 'app config' command.

<vol>.[parN.]size=<val>

Specify new size for application user or singleton class volumes. Units may be specified (for example, 128M[B], 2G[B]). If units are not provided, it is assumed that the size is in MB. 'parN' specifies the size for partition N. The value can be absolute (that is, 20G) or relative (that is, +10G). parN refers to a primary, extended or logical partition or an lvm logical volume. For primary partitions, this can be specified as parN.size, for logical partitions, the syntax is parN.parM.size (N is the number of the extended partition, M is the number of the logical partition on it starting from 1).For lvm logical volumes the syntax is parN.lv_name.size.

--skipstart

Skip starting of new application

--fscpy

Force copying of volumes using filesystem-level copy. If not specified, volumes are copied using filesystem-level copy only if they are being resized.

--prefill

Allocate ALL blocks for copied volumes. This option is only valid if --fscpy is specified; otherwise it is ignored.

Examples
app provision crm crm2 user_ip=64.4.47.21 out_ip=64.4.47.22
app provision myapp myapp-new data.size=128M mysql.data.size=256M
app provision myapp myapp-new data.size=128M mysql.boot.par1.size=256M mysql.boot.par2.root.size=1G

Notes: