I've been trying to follow several of the guides and articles on this forum and others on how to extend my current Linux LVM partition.
Here are the current partitions I have. I don't understand how both sda2 and sda5 are the same blocks is my first issue. And my second is that I don't know which to select to extend?
:/var$ sudo fdisk -l
Disk /dev/sda: 2199.0 GB, 2199023255552 bytes
255 heads, 63 sectors/track, 267349 cylinders, total 4294967296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005011b
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 1782577151 891037697 5 Extended
/dev/sda5 501760 1782577151 891037696 8e Linux LVM
Disk /dev/mapper/webserver--vg-root: 908.1 GB, 908129730560 bytes
255 heads, 63 sectors/track, 110407 cylinders, total 1773690880 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/webserver--vg-root doesn't contain a valid partition table
Disk /dev/mapper/webserver--vg-swap_1: 4290 MB, 4290772992 bytes
255 heads, 63 sectors/track, 521 cylinders, total 8380416 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/webserver--vg-swap_1 doesn't contain a valid partition table
How do I extend these properly without risking losing data? I am concerned I am going to mess up this server and its contents.
Thank you
Adding the output for lvdisplay:
--- Logical volume ---
LV Path /dev/webserver-vg/root
LV Name root
VG Name webserver-vg
LV UUID UfPECP-g3Ed-BYTv-GV1x-mkMk-Of1e-ujcM1t
LV Write Access read/write
LV Creation host, time webserver, 2015-02-10 10:09:20 -0500
LV Status available
open 1
LV Size 845.76 GiB
Current LE 216515
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/webserver-vg/swap_1
LV Name swap_1
VG Name webserver-vg
LV UUID Hi6pMH-wrXI-H1MC-91Iu-V2ev-xven-Cna9Hc
LV Write Access read/write
LV Creation host, time webserver, 2015-02-10 10:09:20 -0500
LV Status available
open 2
LV Size 4.00 GiB
Current LE 1023
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1