A system administrator needs to perform a file system check on a mounted logical volume named data_lv in the corp_vg volume group. To prevent any data modifications during the check, the administrator must change the logical volume's permission to read-only. Which of the following commands correctly accomplishes this task?
The correct command to change a logical volume's permissions to read-only is lvchange -p r /dev/corp_vg/data_lv. The -p or --permission option is used to set the access permission for the logical volume. The argument r sets the permission to read-only, while rw would set it to read-write. The command lvchange -a n deactivates the logical volume, which is incorrect as the volume needs to remain active for a filesystem check. The vgchange command is used to modify volume group attributes, not logical volume permissions. The lvrename command is used for renaming a logical volume, not for changing its permissions.
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 in Linux?
Open an interactive chat with Bash
What is the difference between a logical volume and a volume group?
Open an interactive chat with Bash
Why is it necessary to set a logical volume to read-only for a file system check?
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