Linux LVM – Logical Volume Manager Questions & Answers

Linux LVM – Logical Volume Manager Questions & Answers




Linux LVM – Logical Volume Manager Questions & Answers contain set of 10 Linux LVM MCQ questions with answers which will help you to clear beginner level quiz.



1. What is the command to create physical volumes on /dev/sda ?

  1. createpv /dev/sda
  2. pvcreate /dev/sda
  3. pvc /dev/sda
  4. newpv /dev/sda

 
2. What is the command to scan available volume groups in a system?

  1. scanvg
  2. scan_vg
  3. vgscan
  4. vg2scan

 
3. How to create a 2GB Logical volume in a volume group vg0 with a size of 5GB?

  1. lvcreate -L 2GB /dev/mapper/vg0-lvol1 vg0
  2. lvcreate -l 2GB /dev/mapper/vg0lvol1 vg0
  3. lvnew -l 2GB vg0 /dev/mapper/vg0-lvol1
  4. lvcreate -L 2 /dev/mapper/vg0lvol1 vg0

 
4. How to de-activate/disable volume group vg0?

  1. vgdisable vg0
  2. vgchange -a n vg0
  3. vgdeactivate vg0
  4. vgchange –disable vg0

 
5. How to see the list of available physical volumes in a system?

  1. pvs
  2. pvlist
  3. listpv
  4. pv

6. Is it possible to extend the Logical volumes without losing the data?

  1. Yes
  2. No

 
7. Is it possible to reduce the logical volumes without disturbing the data?

  1. Yes
  2. No

 
8. How to activate/enable volume group vg0?

  1. vgenable vg0
  2. vgchange -a y vg0
  3. vgactivate vg0
  4. vgchange –enable vg0

 
9. What is the command to resize the underlying filesystem after extending the logical volume?

  1. resize2fs
  2. extend2fs
  3. resize3fs
  4. ext5online

 
10.   What is the main difference between LVM1 and LVM2?

  1. By default, LVM1 snapshots are read only and LVM2 are R/W
  2. LVM1 snapshots are R/W and LVM2 are read-only by default