| **import**
| {-n *node[:secondary-node]* | --iallocator *name*}
-| [--disk *N*:size=*VAL* [,mode=*ro|rw*]...]
+| [--disk *N*:size=*VAL* [,vg=*VG*], [,mode=*ro|rw*]...]
| [--net *N* [:options...] | --no-nics]
| [-B *BEPARAMS*]
| [-H *HYPERVISOR* [: option=*value*... ]]
The ``disk`` option specifies the parameters for the disks of the
instance. The numbering of disks starts at zero. For each disk, at
least the size needs to be given, and optionally the access mode
-(read-only or the default of read-write) can also be specified. The
-size is interpreted (when no unit is given) in mebibytes. You can
-also use one of the suffixes m, g or t to specificy the exact the
-units used; these suffixes map to mebibytes, gibibytes and
-tebibytes.
+(read-only or the default of read-write) and LVM volume group can also
+be specified. The size is interpreted (when no unit is given) in
+mebibytes. You can also use one of the suffixes m, g or t to specificy
+the exact the units used; these suffixes map to mebibytes, gibibytes
+and tebibytes.
Alternatively, a single-disk instance can be created via the ``-s``
option which takes a single argument, the size of the disk. This is
| **add**
| {-t {diskless | file \| plain \| drbd}}
-| {--disk=*N*: {size=*VAL* \| adopt=*LV*},mode=*ro\|rw* \| -s *SIZE*}
+| {--disk=*N*: {size=*VAL* \| adopt=*LV*}[,vg=*VG*][,mode=*ro\|rw*]
+| \| -s *SIZE*}
| [--no-ip-check] [--no-name-check] [--no-start] [--no-install]
| [--net=*N* [:options...] \| --no-nics]
| [-B *BEPARAMS*]
instance. The numbering of disks starts at zero, and at least one disk
needs to be passed. For each disk, either the size or the adoption
source needs to be given, and optionally the access mode (read-only or
-the default of read-write) can also be specified. The size is
-interpreted (when no unit is given) in mebibytes. You can also use one
-of the suffixes *m*, *g* or *t* to specify the exact the units used;
-these suffixes map to mebibytes, gibibytes and tebibytes.
+the default of read-write) and LVM volume group can also be specified.
+The size is interpreted (when no unit is given) in mebibytes. You can
+also use one of the suffixes *m*, *g* or *t* to specify the exact the
+units used; these suffixes map to mebibytes, gibibytes and tebibytes.
When using the ``adopt`` key in the disk definition, Ganeti will
reuse those volumes (instead of creating new ones) as the
-n node1.example.com --file-storage-dir=mysubdir instance1.example.com
# gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \
-n node1.example.com instance1.example.com
+ # gnt-instance add -t plain --disk 0:size=30g --disk 1:size=100g,vg=san \
+ -B memory=512 -o debian-etch -n node1.example.com instance1.example.com
# gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \
-n node1.example.com:node2.example.com instance2.example.com
| [-H *HYPERVISOR\_PARAMETERS*]
| [-B *BACKEND\_PARAMETERS*]
| [--net add*[:options]* \| --net remove \| --net *N:options*]
-| [--disk add:size=*SIZE* \| --disk remove \| --disk *N*:mode=*MODE*]
+| [--disk add:size=*SIZE*[,vg=*VG*] \| --disk remove \|
+| --disk *N*:mode=*MODE*]
| [-t plain | -t drbd -n *new_secondary*]
| [--os-name=*OS* [--force-variant]]
| [--submit]
new secondary node must be specified via the ``-n`` option.
The ``--disk add:size=``*SIZE* option adds a disk to the instance. The
-``--disk remove`` option will remove the last disk of the
-instance. The ``--disk`` *N*``:mode=``*MODE* option will change the
-mode of the Nth disk of the instance between read-only (``ro``) and
+optional ``vg=``*VG* option specifies LVM volume group other than default
+vg to create disk on. The ``--disk remove`` option will remove the last
+disk of the instance. The ``--disk`` *N*``:mode=``*MODE* option will change
+the mode of the Nth disk of the instance between read-only (``ro``) and
read-write (``rw``).
The ``--net add:``*options* option will add a new NIC to the