nerdexam
Red_Hat

RH302 · Question #69

There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each…

Steps of Creating LVM: 1. pvcreate /dev/hda8 /dev/hda9 /dev/hda10 pvdisplay command is used to display the information of physical volume. 2. vgcreate test0 /dev/hda8 /dev/hda9 /dev/hda10 vgdisplay command is used to display the information of Volume Group. 3. lvcreate -L 250M…

Storage management

Question

There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.

Explanation

Steps of Creating LVM:

  1. pvcreate /dev/hda8 /dev/hda9 /dev/hda10 pvdisplay command is used to display the information of physical volume.
  2. vgcreate test0 /dev/hda8 /dev/hda9 /dev/hda10 vgdisplay command is used to display the information of Volume Group.
  3. lvcreate -L 250M -n testvolume1 test0 lvdisplay command is used to display the information of Logical Volume.
  4. lvcreate -L 250M -n testvolume2 test0
  5. mkfs -t ext3 /dev/test0/testvolume1
  6. mkfs -t ext3 /dev/test0/testvolume2
  7. mkdir /lvmtest1
  8. mkdir /lvmtest2
  9. mount /dev/test0/testvolume1 /lvmtest1
  10. mount /dev/test0/testvolume2 /lvmtest2
  11. vi /etc/fstab /dev/test0/testvolume2 /lvmtest2 ext3 defaults 0 0 /dev/test0/testvolume1 /lvmtest1 ext3 defaults 0 0

Topics

#LVM#pvcreate/vgcreate#lvcreate#filesystem mounting

Community Discussion

No community discussion yet for this question.

Full RH302 Practice