A Linux administrator needs to create a new 10-gigabyte logical volume named lv_logs from the vg_data volume group. Which of the following commands will accomplish this task?
The correct command is lvcreate -L 10G -n lv_logs vg_data. The lvcreate command is used to create a logical volume. The -L option specifies the logical volume's size, and the -n option assigns its name. The final argument, vg_data, is the volume group from which the logical volume is created.
The command vgcreate -L 10G -n lv_logs vg_data is incorrect because vgcreate is used to create a volume group, not a logical volume.
The command lvcreate -s 10G -n lv_logs vg_data is incorrect because the -s option is used to create a snapshot of an existing logical volume, not to define its size.
The command lvcreate -n 10G -L lv_logs vg_data is incorrect because it swaps the arguments for the name and size options; -n should be followed by the name, and -L should be followed by the 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 logical volume in Linux?
Open an interactive chat with Bash
What is the difference between a volume group and a logical volume?
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