You decide to use the logical volume manager (LVM) to manage four 4GB disk drives. After creating
the volume group, how would you create a 10GB logical volume called big-app?
A.
vgcreate -p 10g -n /dev/vg01/big-app
B.
vgcreate -l 2560 /dev/vg01/big-app
C.
mklvm -v 10240 -n /dev/vg01/big-app
D.
lvcreate -v 10240 /dev/vg01/big-app
E.
lvcreate -l 2560 vg01 -n big-app
Explanation:
From the man pages:
lvcreate – create a logical volume in an existing volume group
-l, –extents LogicalExtentsNumber[%{VG|PVS|FREE}]
Gives the number of logical extents to allocate for the new logical volume. This can also be
expressed as a percentage of the total space in the Volume Group with the suffix %VG, of the
remaining free space in the Volume Group with the suffix %FREE, or of the remaining free space for
the specified PhysicalVolume(s) with the suffix %PVS
-n, –name LogicalVolumeName The name for the new logical volume. Without this option a default
names of “lvol#” will be generated where # is the LVM internal number of the logical volume.
lvcreate -l 10240 vg01 -n big-app
lvcreate -L 10G vg01 -n big-app