A Linux administrator needs to create a new 20GB logical volume named reports from an existing volume group called datavg. Which of the following commands will accomplish this task?
The correct command is lvcreate -L 20G -n reports datavg. The lvcreate command is used to create a new logical volume. The -L option specifies the size of the logical volume (in this case, 20 gigabytes). The -n option provides a name for the new logical volume. The final argument, datavg, is the name of the volume group from which the space will be allocated. The command vgcreate is incorrect because it is used to create volume groups, not logical volumes. The command lvcreate -s 20G... is incorrect because the -s option is used to create a snapshot of an existing logical volume, not to define the size of a new one. The command pvcreate is incorrect as it is used to initialize a physical disk or partition for use by LVM and does not create logical volumes or accept size and name parameters in this way.
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 in LVM?
Open an interactive chat with Bash
What is the purpose of the 'lvcreate' command in LVM?
Open an interactive chat with Bash
Why is the '-s' option in 'lvcreate' used for snapshots instead of new logical volumes?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .