I have a CentOS machine with 1 hard drive and partition as follow:
[root@localhost var]# fdisk -l
Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19 152586 83 Linux
/dev/sda2 20 280 2096482+ 82 Linux swap / Solaris
/dev/sda3 281 2610 18715725 8e Linux LVM
[root@localhost var]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_root 1 3 0 wz--n- 17.84G 0
[root@localhost var]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 vg_root lvm2 a-- 17.84G 0
[root@localhost var]# lvdisplay
--- Logical volume ---
LV Name /dev/vg_root/lv_root
VG Name vg_root
LV UUID YFfzh2-03mH-zrHa-INJn-iqxZ-vYpo-XDyimP
LV Write Access read/write
LV Status available
# open 1
LV Size 8.91 GB
Current LE 285
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_root/lv_var_lib_mysql
VG Name vg_root
LV UUID xdoJuc-21WP-99ZW-5aOE-bINc-fgYF-qP50vw
LV Write Access read/write
LV Status available
# open 1
LV Size 5.94 GB
Current LE 190
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/vg_root/lv_zenoss_perf
VG Name vg_root
LV UUID ByUzF7-wYab-R9q5-3h4o-S3AI-L0HH-2Kn07p
LV Write Access read/write
LV Status available
# open 1
LV Size 3.00 GB
Current LE 96
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
The /dev/sda is showing the total size of 214.7GB. How can I extend the size for each logical volume by 20GB?
Thank you,
pvcreate /dev/sda4. The machine returned this message "Device /dev/sda4 not found (or ignored by filtering)." Could you please kindly advise? Thanks.