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

Answer Posted / prabin kumar

# fidk /dev/hda or /dev/hdb
id from 8e
# partprobe
# pvcreate pv1 /dev/hda1 /dev/hda2
# pv scan
# vgcreate vg1 /dev/hda1 /dev/hdb2
# vgscan
# lvcreate -l 50 -n lv1 vg1
# lvdisplay
# mke2fs -j /dev/vg1/lv1
# mkdir /data
# mount /dev/vg1/lv1 /data
# vi /etc/fstab
/dev/vg1/lv1 /data ext3 defualt 0 0
# df -ht

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a ulimit in unix?

514


How do I create a .txt file?

544


What is git command?

526


What is ls command and what it does?

556


What is netstat command in linux?

580






How do I check my cpu cores?

530


How to root mirror in linux?

567


What is top command in linux?

511


What are the ms dos commands?

527


How do I list all processes in linux?

521


What is build process?

568


Explain the ‘ls’ command in linux

557


How do I remove a soft link in linux?

515


How remove all files in a directory linux?

522


What is Syntax of any Linux command?

587