Linux+ Logical Volume Management (LVM) Flashcards
7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Linux+ Logical Volume Management (LVM) flashcards as text
Which lvcreate option specifies the number of stripes when creating a striped logical volume?
Answer: -i
The -i (or --stripes) option in lvcreate defines how many physical volumes the striped LV will spread data across.
After extending a logical volume with lvextend, what additional step is required for an XFS filesystem?
Answer: Run 'xfs_growfs /mountpoint' while mounted
xfs_growfs must be run on the mounted XFS filesystem path to expand the filesystem to fill the enlarged LV.
What does the '--merge' option do in the 'lvconvert' command?
Answer: Merges a snapshot back into its origin volume
lvconvert --merge schedules a snapshot to be merged back into its origin LV on the next activation or reboot.
Which command renames a volume group from 'vg_old' to 'vg_new'?
Answer: vgrename vg_old vg_new
vgrename takes the old VG name (or UUID) and the new name as arguments to rename a volume group.
A thin pool has data_percent at 95% and metadata_percent at 10%. Which threshold requires immediate action?
Answer: data_percent at 95% requires immediate expansion
Data pool exhaustion at 95% is critical and requires immediate expansion since writes will fail when it reaches 100%.
Which command exports a volume group so it can be imported on a different system?
Answer: vgexport vg0
vgexport marks a VG as exported and deactivates it, making it safe to move disks to another system for vgimport.
What is the effect of setting the 'skip_activation' flag on a logical volume?
Answer: The LV will not be activated automatically during system boot
The skip_activation flag prevents a logical volume from being automatically activated when the volume group is activated.