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
Brief about the command kill PID?
Is makefile a shell script?
If the programmer wishes to execute an instruction at the specified time. Which command is used?
What is shell scripting commands?
How do I find the linux version?
Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?
Who unix commands?
What does && mean in bash?
What is the default number of shell commands saved in the history list of .cshrc file?
What is ls command and what it does?
How many interfaces(ethernet cards) are working using single command?
Explain difference between swap partition and swap file?
How do I check if my cpu is overclocked?
You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?
How do I stress test my cpu?