LVM – Volume Group Management on CentOS 6
In computer storage, logical volume management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.
In particular, a volume manager can concatenate, stripe together or otherwise combine partitions into larger virtual ones that administrators can re-size or move, potentially without interrupting system use.
Here is the basic design scheme:
Quand nous formatons un LV, nous créons en fait un système de fichier (fs) : c’est cette couche que vous utilisez lorsque vous effectuez l’opération de montage.Un petit schéma :
Partition(s) de disque |----> Volume Group |----> Logicals Volumes |----> système de fichiers |
Une partition de disque |---->un système de fichier |
Exemple de partitionnement Centos pendant l’ installation :
For a New 1 TB Drive that is unformatted
Check Custom Setup
#
# Create Physical Partion For Boot
#
select Standard Partition
select /boot for mount point
Size 200mb
Fixed size
select force to be primary partition
#
# Create Logical Physical Volume
#
Click Create
Check LVM Physical Volume
Size 950000 MB
Fill to Maximium Size
Force To BE PRimary Partition
Volume Group Name vg_delldesktop
Click Create
Select LVM Volume Group
Physical Extent 4MB
Click Add Under Logical Volume / vg_delldesktop
lv_root 20480 / ext4 Boot and OS files
lv_swap 20480 (20GB) swap swap swap File
lv_home 20480 (20GB) /home ext4 User Directories
lv_var 20480 (20GB) /var ext4 OS Logs
lv_tmp 10240 (10GB) /tmp ext4 Temporary Files
lv_u01 256000 (250GB) /u01 ext4 Oracle Binaries and Logs
lv_u02 256000 (250GB) /u02 ext4 Oracle/Mysql Data Base Files
lv_flashback 102400 (100GB) /u01/app/oracle/flashback ext4 Oracle Flash Back Area
Total 686080
Disk Capacity 953664
Free Space 247104
**Boot Device
Relocate to First sector of SDA2
You can see also a video tutorial for an install of centos with LVM partitions for oracle :

