|
RHCE LVM Explanations of basic definitions and Exam question |
| Home | Peer to Peer | CompTIA N+ | CCNA | MCSE | MCITP | RHCE | Interview | Tips n Tricks |
RHCE Linux lvm partitionsForm the beginning of RHCE exam RedHat always includes a question about LVM partitions. So you must be able to create the LVM partition and mount them properly in Example of questions
Explanations of basic definitionsThe LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, here we will discuss only some basic definitions those require in rhce:
Create lvm partition and resize themRun fdisk /dev/sda to invoke fdisk.
Make sure your hard disk status via fdisk -l
command before it. If you see /dev/hda in the output of
fdisk -l command run
fdisk /dev/hda instead of fdisk /dev/sda
Now run these command in given sequence n press enter +100M n press enter +100M n press enter +100M
after creating partition define their file type and save via w command. lvm partitions are denoted as 8e. run these command exactly ( caution:- change only the partition you create ) t 7 8e t 8 8e t 9 8e w
Now tell kernel about this change run partprobe command
Create physical volume from newly created partition and then we will create a volume group to use these physical volumes.
Create 2 lvm partition from this volume group
For format you can use either mke2fs with -j switch or just single command mkfs.ext3
now we will define mount point to use this partitions
We can use these partitions until system reboot if you are asked to mount these partition permanently use these steps. Run vi /etc/fstab Make entry of newly created lvm partition /dev/vg00/lv00 /data/lv00 ext3 defaults 0 0 /dev/vg00/lv01 /data/lv01 ext3 defaults 0 0 in the end of files as shown in figure and save the file.
In this tutorial we learn how to create lvm partition and mount them permanently
|
|||||
|
|
|
|