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 ?
- createpv /dev/sda
- pvcreate /dev/sda
- pvc /dev/sda
- newpv /dev/sda
2. What is the command to scan available volume groups in a system?
- scanvg
- scan_vg
- vgscan
- vg2scan
3. How to create a 2GB Logical volume in a volume group vg0 with a size of 5GB?
- lvcreate -L 2GB /dev/mapper/vg0-lvol1 vg0
- lvcreate -l 2GB /dev/mapper/vg0lvol1 vg0
- lvnew -l 2GB vg0 /dev/mapper/vg0-lvol1
- lvcreate -L 2 /dev/mapper/vg0lvol1 vg0
4. How to de-activate/disable volume group vg0?
- vgdisable vg0
- vgchange -a n vg0
- vgdeactivate vg0
- vgchange –disable vg0
5. How to see the list of available physical volumes in a system?
- pvs
- pvlist
- listpv
- pv
6. Is it possible to extend the Logical volumes without losing the data?
- Yes
- No
7. Is it possible to reduce the logical volumes without disturbing the data?
- Yes
- No
8. How to activate/enable volume group vg0?
- vgenable vg0
- vgchange -a y vg0
- vgactivate vg0
- vgchange –enable vg0
9. What is the command to resize the underlying filesystem after extending the logical volume?
- resize2fs
- extend2fs
- resize3fs
- ext5online
10. What is the main difference between LVM1 and LVM2?
- By default, LVM1 snapshots are read only and LVM2 are R/W
- LVM1 snapshots are R/W and LVM2 are read-only by default