โ† All Linux Flashcard Decks

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
  1. Which command is used to add a physical volume to an existing volume group named vg0?

    Answer: vgextend vg0 /dev/sdd

    vgextend adds one or more initialized physical volumes to an existing volume group.

  2. A mirror logical volume is created with 'lvcreate -m1'. What does the '1' specify?

    Answer: Number of additional mirror copies (1 copy = 2 total legs)

    The -m1 option creates 1 additional mirror copy, resulting in 2 total data copies (original + 1 mirror leg).

  3. What does the 'pvmove' command do in LVM?

    Answer: Moves data extents from one physical volume to another

    pvmove relocates physical extents from one PV to others in the same VG, enabling disk evacuation without downtime.

  4. Which LVM feature allows a logical volume to store data across multiple physical volumes for performance?

    Answer: Striping

    LVM striping (RAID 0) distributes data across multiple PVs in stripes, improving read/write performance.

  5. After removing a physical volume from a VG with vgreduce, what state is the PV in?

    Answer: It remains initialized as a PV but belongs to no VG

    After vgreduce, the PV retains its LVM metadata and remains a valid PV but is unassigned and can join another VG.

  6. Which command converts an existing linear logical volume to use RAID1 mirroring?

    Answer: lvconvert --type raid1 -m1 /dev/vg0/lv1

    lvconvert --type raid1 -m1 converts an existing LV to RAID1 with one additional mirror copy in-place.

  7. What is the default physical extent size when creating a new volume group?

    Answer: 4 MB

    LVM uses a default physical extent size of 4 MB, which can be changed with the -s option during vgcreate.