A system administrator needs to provision storage for a new application. The requirement is to create a new logical volume with a size of 20 gigabytes, named app_data, from the vg_database volume group. Which of the following commands correctly accomplishes this task?
The correct command is lvcreate -L 20G -n app_data vg_database. The lvcreate command is used to create a logical volume. The -L option specifies the logical volume's size, and the -n option specifies its name. The final argument, vg_database, is the name of the volume group from which the storage is allocated. The other options are incorrect. vgcreate is used for creating volume groups, not logical volumes. The -s option for lvcreate is used to create a snapshot, not to define size, and -V is for creating a virtual (thinly-provisioned) size.
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 a volume group (VG) in Logical Volume Management (LVM)?
Open an interactive chat with Bash
What is the difference between a logical volume (LV) and a physical volume (PV)?
Open an interactive chat with Bash
What is the purpose of the `-L` and `-n` 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