Home » LPI » 117-201 » How would you create a 10GB logical volume called big-app?
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 /deb/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
Correct Answer: E
Explanation/Reference:
Explanation: When you create a volume group, it will have a physical extent size of 4MB by default, unless otherwise specified. When you add disks to the volume group, the disk space is divided into chunks equal to the physical extent size (4MB by default). When you create a logical volume with the lvcreate command, the -l option is used to specify the size of the logical drive in ‘logical extents’. The logical extents are the same size as the physical extents. Therefore, to create a 10GB logical drive, you would specify 2560 logical extents (2560 x 4MB = 10GB). Vg01 is the name of the volume group in which to create the logical volume. The -n option allows you to enter a name for the logical volume. In this case ‘big-app’.
Reference: http://devresource.hp.com/STKLI/man/11iv1.5/lvcreate_1m.html
Incorrect Answers
A:The vgcreate command is used to create the volume group.
B:The vgcreate command is used to create the volume group.
C:Mklvm is an invalid command.
D:-v is an incorrect option to create a logical volume.
Download Printable PDF. VALID exam to help you PASS.
|
|