Hi!
My smeserver main storage running on ESXI is now at around 90% full so I've decided to increase the virtual disk size to 700G.
My question is, how can I safely resize the LVM partition to fully use the available disk space in smeserver 9?
[root@sme1 ~]# fdisk -l
Disk /dev/sda: 834.3 GB, 834297397248 bytes
255 heads, 63 sectors/track, 101430 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00058d80
Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 27414 219943936 8e Linux LVM
Disk /dev/mapper/main-root: 221.1 GB, 221060792320 bytes
255 heads, 63 sectors/track, 26875 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/main-swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md0: 262 MB, 262127616 bytes
2 heads, 4 sectors/track, 63996 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@sme1 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/main-root
212359480 179197592 22367904 89% /
tmpfs 16439996 0 16439996 0% /dev/shm
/dev/md0 243759 78959 152004 35% /boot
[root@sme1 ~]# lvdisplay
--- Logical volume ---
LV Path /dev/main/root
LV Name root
VG Name main
LV UUID gq2kwk-uImZ-q2y3-Qfcb-8Y5f-K6WI-Rdsc3H
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-12-17 15:10:27 +0700
LV Status available
# open 1
LV Size 205.88 GiB
Current LE 52705
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/main/swap
LV Name swap
VG Name main
LV UUID jozvKK-HOpP-OUzz-a3Vn-6Vax-khYC-VbRGBw
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-12-17 15:11:19 +0700
LV Status available
# open 1
LV Size 3.88 GiB
Current LE 992
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[root@sme1 ~]# vgdisplay
--- Volume group ---
VG Name main
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 209.75 GiB
PE Size 4.00 MiB
Total PE 53697
Alloc PE / Size 53697 / 209.75 GiB
Free PE / Size 0 / 0
VG UUID lSFJF6-9BzE-aB8a-50yM-Jnux-0Uaj-ufIbf0
Thank you in advance for your help!