can some one tell me the steps(with commands) to create LVM
in RHEL 5????
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
How does mkdir work in linux?
Explain command grouping in linux?
What is command to check ports running/used over local machine
What is #!/ Bin sh?
How do I stop a linux job?
What is kill 9 in linux?
Which command is used to check the number of files and disk space used and the each user’s defined quota?
What is c++ makefile?
What is cpu in linux?
Explain about refer?
How to schedule cron backup to run on 4th saturday of month??
How to root mirror in Linux? How to replace mirrored hdd in case of failure?