A system administrator needs to create a new 10-gigabyte logical volume named lv_logs from the existing volume group vg_data. Which of the following commands correctly performs this action?
The correct command is lvcreate -L 10G -n lv_logs vg_data. The lvcreate command is used to create a new logical volume. The -L option specifies the size of the new volume in standard units (G for gigabytes), the -n option specifies the name, and the final argument is the name of the volume group from which to allocate the space.
The lvextend command is incorrect because it is used to increase the size of an existing logical volume, not to create a new one.
The vgcreate command is incorrect because it is used to create a new volume group from physical volumes, not to create a logical volume within a volume group.
The command using lvcreate -l 10240 is incorrect because the -l (lowercase L) option specifies the size in logical extents, not gigabytes. While this could potentially result in a 10GB volume if the physical extent size was exactly 1MB, the -L option is the direct and correct method for specifying size in gigabytes as requested.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between a volume group and a logical volume?
Open an interactive chat with Bash
What are logical extents in LVM?
Open an interactive chat with Bash
Can you explain the difference between the -L and -l options in the lvcreate command?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access