Previous Topic: set (Volume Management)--Set Volume InformationNext Topic: volume create Command Output Specification


create (Volume Management)--Create a New Volume for an Application

Create a new application or global volume

Syntax
vol create <name> (mkfs=follow these steps: | fs=follow these steps:) [ <prop>=<val> ]* [ -n ] [--prefill] [ --batch ] 
Options
<name>

Name of the volume to create. The format of <name> is the following: <application>:[<class>.]<volume>, _GLOBAL:<volume>

or _GLOBAL_RO:<volume>.

follow these steps:

File system type (for example, ext3)

<prop>=<val>

Volume parameters. The following parameters may be set:

size

Volume size, units may be specified (for example, 128M[B], 2G[B]). If units are not specified, it is assumed that the value is in MB. Default is 1G

comment

Volume comment. This parameter is not supported if the 'link' parameter is specified.

fs_options

Additional file system options used to format the volume (See notes below for specifics)

mirrored

Volume is mirrored

link

Name of application user or global volume to which the volume is to be linked. The format of the link is the following:

<application>:<volume>

or _GLOBAL:<volume>.

parN.*

Partitioning parameters. (See notes below for specifics)

-n

Skip verification that volume reference is in the class descriptor if adding an application singleton class volume.

--prefill

Allocate ALL blocks of volume.

--batch

Display output in UDL format.

Notes:

Examples
vol create my-app:data fs=ext3

create 1G application user volume

vol create my-app:data fs=ext3 fs_options="-b 4096 -j -J size=180 -m 0"

create 1G application user volume specifying block size, journal size and reserved blocks.

vol create my-app:DBASE.boot fs=ext3 size=256M -n

create 256M application singleton class boot volume and don't check that volume reference exists in the class descriptor of DBASE.

vol create my-app:data fs=ext3-snapshot size=1G fs_options="vol_group_name=VGVOL data_percentage=75 -b 2048"

create 1G application user volume of type ext3-snapshot, with block size set to 2048 for the fs on the data volume.

vol create my-app:data size=5G par1.fs=ext2 par1.size=100M par2.fs=lvm par2.vg=VOLGR00 par2.root_lv.size=2GB par2.root_lv.fs=ext3 par2.home_lv.fs=ext3

Create 5GB disk with 2 primary partitions, first one is of size 100MB and ext2 formated, second one uses the rest of the disk space and has lvm on it with two volumes - one for / (using 2GB) and one for /home (using the rest of the partition space) - this is a typical setup that distro installers do by default

vol create my-app:data size=10G par1.fs=ext2 par2.fs=ext3 par3.fs=ext3 par4.fs=ext3

Create 10GB disk with 4 partitions

vol create my-app:data size=10G par1.fs=ext2 par2.fs=ext3 par3.fs=ext3 par4.fs=Extended par4.par1.fs=ext3

Same thing as above, but the last partition is logical (it will actually create 5 partitions, 3 primary, 1 extended and 1logical which resides on the extended)

This section contains the following topics:

volume create Command Output Specification