A Linux administrator is preparing to decommission a physical volume that is part of a volume group. Before migrating the data, the administrator must ensure that one of the logical volumes in the group, lv_data, is taken offline to prevent any I/O operations and accidental modifications. Which of the following commands will make the lv_data logical volume in the vg_corp volume group unavailable?
To deactivate a logical volume and make it unavailable to the system, the lvchange -an (or lvchange --activate n) command is used. This prevents the kernel from recognizing the logical volume by removing its device mapper target, which stops all I/O. Making the volume read-only with the -pr option would prevent writes but would not take it offline. The --alloc lock option is not a valid parameter for the lvchange command, as 'lock' is not a defined allocation policy. The lvextend command is used for resizing logical volumes, not for changing their 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 a logical volume in Linux?
Open an interactive chat with Bash
How does the '--alloc none' option specifically prevent changes to a logical volume?