RHCSA LVM Storage Management Flashcards
7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 RHCSA LVM Storage Management flashcards as text
A volume group 'vg0' is full. You add a new disk /dev/sdc. What is the correct sequence to add it to vg0?
Answer: pvcreate /dev/sdc, then vgextend vg0 /dev/sdc
You must first initialize the disk as a PV with pvcreate, then extend the VG with vgextend.
What does the '-s' option specify when running lvcreate for a snapshot?
Answer: That the LV is a snapshot
lvcreate -s (--snapshot) creates a snapshot logical volume of an existing LV.
Which command reduces the size of volume group vg0 by removing physical volume /dev/sdb?
Answer: vgreduce vg0 /dev/sdb
vgreduce removes a physical volume from a volume group, provided the PV has no allocated extents.
You need to move all data off /dev/sdb1 (which is in vg0) to other PVs before removal. Which command does this?
Answer: pvmove /dev/sdb1
pvmove relocates all logical extents from the specified physical volume to other PVs in the same VG.
What is the default unit for extent size when creating a volume group with vgcreate?
Answer: 4 MB
The default physical extent size in LVM is 4 MB, though it can be changed with the -s option.
Which command merges a snapshot back into its origin logical volume?
Answer: lvconvert --merge
lvconvert --merge rolls back the origin LV to the state captured in the snapshot.
How do you rename a logical volume from 'old_lv' to 'new_lv' within volume group vg0?
Answer: lvrename vg0 old_lv new_lv
lvrename takes the VG name followed by the old and new LV names to rename the logical volume.