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

Answer Posted / karan

First create 2 partition by using
fdisk /dev/hda
and give id =8e
now "w" to write partition and "partprobe" for update the
kernel for new partition

now
#pvcreate /dev/hda{7,8}
#vgcreate vg0 /dev/hda{7,8}
#lvcreate --name HR --size +3000M /dev/vg0

now make a directory named "HR"
#mkdir /HR
#mkfs.ext3 /dev/vg0/HR
now make entry in /etc/fstab, like
# vi /etc/fstab

/dev/vg0/HR /HR ext3 defaults 1 2
now save and exit
and
#mount /dev/vg0/HR /HR
#mount -a
now you can check all by these commands
#pvdisplay
#vgdisplay
you scan also like these command
#pvscan
#vgscan


karan_pratapsingh@yahoo.co.in

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you copy in linux terminal?

532


How do I change directories in linux command line?

485


What is pwd in linux command?

711


Is llvm a compiler?

561


What command do you type to find help about the command who?

550






What is the command to check cpu speed in linux?

535


Why bash is used in linux?

550


How does case sensitivity affect the way you use commands?

672


What does mkdir mean?

648


What command can you use to make a tape archive file of a /home directory and send it to the /dev/tape device?

566


What does wc command do in unix?

538


Which commands are used to set a processor-intensive job to use less cpu time?

570


How do you do nslookup?

542


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

539


How do I list all processes in linux?

528