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

What is SFC command?

485


What is umask 000?

549


Which command is used to terminate a process?

501


Explain the linux ‘cd’ command options along with the description?

486


What is a make target?

594






What language is clang written in?

491


What is the use of finger command in linux?

519


How do I check disk space in bash?

496


Which command is used to compare the files?

496


How do I clear bash history in linux?

535


What are the mv command options?

468


What does r mean linux?

600


can any one send me one project on linux ...?

2358


What is the command can be run to remove all the rules in an iptable table?

581


How commands work in linux?

520