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

Why is unix used?

742


How will you suspend a running process and put it in the background?

1230


Find command can search for files by

737


How many commands are there in linux?

767


you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.

759


Explain the linux directory commands along with the description?

682


What is the export command used for?

714


How do I move to root in linux?

708


What does ls mean in linux?

785


What does f mean linux?

708


How do I check my cpu cores?

724


Explain about system and user utilities?

735


What is FC command?

644


How do I find cpu in linux?

712


Explain about lprm job number?

823