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...
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 .