blob: 76f5892e31f3c7e112b51f600cd54a15d83ffd10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Step: `vgcreate`
-----------------------------------------------------------------------------
Create an LVM2 volume group (VG), and also initialise the physical
volumes for it.
Step keys:
* `vgcreate` — REQUIRED; value is the tag for the volume group.
This gets initialised with `vgcreate`.
* `physical` — REQUIRED; list of tags for block devices
(partitions) to use as physical volumes. These get initialised with
`pvcreate`.
Example (in the .vmdb file):
- vgcreate: rootvg
physical:
- my_partition
- other_partition
Step: `lvcreate`
-----------------------------------------------------------------------------
Create an LVM2 logical volume (LV) in an existing volume group.
Step keys:
* `lvcreate` — REQUIRED; value is the tag for the volume group.
* `name` — REQUIRED; tag for the new LV block device.
* `size` — REQUIRED; size of the new LV.
Example (in the .vmdb file):
- lvcreate: rootvg
name: rootfs
size: 1G
|