can some one tell me the steps(with commands) to create LVM
in RHEL 5????

Answer Posted / yogendra kiran kumar

1) Create 2 LVM partitions using
# fdisk /dev/sda
id for lvm --> 8e

2) # partprobe [ to update kernal ]

3) # pvcreate pv1 /dev/sda{6,7}
[ pv1 is physical volume label and 6,7 are the partition
no's it may differ in ur system ]

4) # pvdisplay
[ to display the physical volume info ]

5) # vgcreate vg1 /dev/sda{6,7}
[ to create logical volume group ]

6) # lvcreate -L 700M -n lv1 vg1
[ to create ur required size partition of lvm ]
[ lv1 is lvm label]

7) # lvdisplay
[ to know about the logical volume ]

8) # mkfs.ext3 /dev/vg1/lv1
[ to give file system ]

9) # mkdir /lv1
# mount /dev/vg1/lv1 /lv1
[ to mount the lv1 to as a seperate disk ]

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does chmod 777 do?

590


How do you create a text file in linux terminal?

522


How many interfaces(ethernet cards) are working using single command?

532


Which command is used to uncompress gzip files?

593


What does uname do in linux?

542






How do I list directories in linux?

560


What is the symbol of linux?

552


How do you limit memory usage for commands?

571


What is know about grep commands?

549


What is an os command?

565


What is command example?

563


What is the command can be used to check for file corruption?

560


What is the difference between kill and kill in linux?

768


Explain about document formatting?

587


What is linux load average?

595