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 can i give acl permission in numerical mode on linux
How can we increase disk read performance in single command?
You have a computer with 80 GB hard disk and Ubuntu 8.04 is installed on entire hard disk. Now you have to create a seprate partition for Windows OS and Install Win Xp as Dual boot. write down the steps involed along with the commands.
8 Answers Bhel, Indian Navy, Tata Steel Limited,
What is the role of case sensitivity in affecting the way commands are used?
What are whois tools?
how many hard disks can i able to connect to desktop pc and server (IDE & SATA) pls send this ans to my mail : ping2pavan@gmail.com
What is du command in linux?
What does the ps command do in linux?
How to hide the partition in grub booting?
What are the options of wc command?
how many limitations of under directories in ext2/3 linux file system?
My linux machine is crashed due to root file system, I need not to bother about the root file system, but i need to take care of /etc, /usr, like that.,, can i recover these file systems?