CompTIA Linux+ XK0-006 (V8) Practice Question

You have a CentOS Stream 9 workstation whose /home directory sits on the logical volume /dev/data_vg/home_lv. The file system is ext4 and is currently mounted. After installing a new 1 TB SSD, the device appears as /dev/sdc. You want to give the /home file system all of the space on the new drive with the fewest possible commands and without unmounting the file system. Which ordered set of commands will safely accomplish this task?

  • pvcreate /dev/sdc; vgextend data_vg /dev/sdc; lvextend -l +100%FREE /dev/data_vg/home_lv; xfs_growfs /home

  • vgcreate data_vg /dev/sdc; lvextend -L +1T /dev/data_vg/home_lv; resize2fs /dev/data_vg/home_lv

  • parted /dev/sdc mklabel gpt mkpart primary 0% 100%; pvcreate /dev/sdc1; vgextend data_vg /dev/sdc1; lvcreate -l +100%FREE -n new_home data_vg; resize2fs /dev/data_vg/home_lv

  • pvcreate /dev/sdc; vgextend data_vg /dev/sdc; lvextend -l +100%FREE -r /dev/data_vg/home_lv

CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot