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

Answers were Sorted based on User's Feedback



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

Answer / d.dileep kumar

To Create LVM in RHEL5 the following steps are to be followed
You should create a Partion in the hard disk using /dev/hda
giving LVM id as 8e.Then

step1: pvcreate /dev/hda6
step2: vgcreate /dev/vg0 /dev/hda6 /dev/hda7
step3: lvcreate -l 1000 /dev/vg0 -n lvm0
step4:lvdisplay /dev/vg0/lvm0
step5:mkfs -j /dev/vg0/lvm0
step6:mkdir /database
step7:mount /dev/vg0/lvm0 /database
step8: df -hT

Is This Answer Correct ?    12 Yes 1 No

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

Answer / ron

just making few essential additions to the above steps to
make it work.....
Create a Partition in the hard disk using fdisk /dev/hda
giving LVM id as 8e.Then save it frm ram to HDD using wq
cmd.

step0: then use "partprobe" cmd
step1: pvcreate /dev/hda10
step2: vgcreate /dev/vg0 /dev/hda10 /dev/hda6
step3: vgchange -ay (to active the volume group)
step4: lvcreate -L 1000M /dev/vg0 -n lvm0
step5: lvdisplay /dev/vg0/lvm0
step6: mke2fs -j /dev/vg0/lvm0
step7: mkdir /database
step8: mount /dev/vg0/lvm0 /database
step9: df -hT
step10: e2label /dev/vg0/lvm0 /ron
step11: to automount it..make changes/add/edit in the /etc/
fstab

Is This Answer Correct ?    11 Yes 1 No

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

Answer / yogendra kiran kumar

1) Create 2 LVM partitions using
# fdisk /dev/sda
id for lvm --> 8e

2) # partprobe [ to update kernal ]

3) # pvcreate pv1 /dev/sda{6,7}
[ pv1 is physical volume label and 6,7 are the partition
no's it may differ in ur system ]

4) # pvdisplay
[ to display the physical volume info ]

5) # vgcreate vg1 /dev/sda{6,7}
[ to create logical volume group ]

6) # lvcreate -L 700M -n lv1 vg1
[ to create ur required size partition of lvm ]
[ lv1 is lvm label]

7) # lvdisplay
[ to know about the logical volume ]

8) # mkfs.ext3 /dev/vg1/lv1
[ to give file system ]

9) # mkdir /lv1
# mount /dev/vg1/lv1 /lv1
[ to mount the lv1 to as a seperate disk ]

Is This Answer Correct ?    7 Yes 1 No

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

Answer / 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

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

Answer / 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

More Linux Commands Interview Questions

Explain about chmod options filename?

0 Answers  


Which command is used to delete a group?

0 Answers  


Brief about the command kill PID?

0 Answers  


What is help command in linux?

0 Answers  


What is top command in linux?

0 Answers  






How do I use nslookup in linux?

0 Answers  


How do you run a command for a limited time?

0 Answers  


what is the booting process of linux systen and explain it,is the first process comes under the installation process.

3 Answers   CSC, EA Electronic Arts, Mind Tree, vsworx,


What is unix finger command?

0 Answers  


Write about an internal command.

0 Answers  


How do I get to root in linux?

0 Answers  


What are the commands in linux?

0 Answers  


Categories