A Linux administrator is performing maintenance on a server and needs to temporarily make the logical volume named app_data in the data_vg volume group unavailable. The data on the volume must be preserved, and the logical volume should not be removed. Which of the following commands will accomplish this task?
The correct command is lvchange -an data_vg/app_data. The lvchange command is used to alter the attributes of a logical volume. The -a flag sets the activation state, and n (for 'no') deactivates the volume, making it unavailable to the system without deleting it. The lvremove command would permanently delete the logical volume and its data. The vgchange command operates on the entire volume group, not a specific logical volume. The lvresize command is used to change the size of a logical volume, not its activation state.
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 purpose of the `lvchange` command?
Open an interactive chat with Bash
What is the difference between `lvchange` and `vgchange`?
Open an interactive chat with Bash
What is the difference between deactivating and removing a logical volume?
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