How to enlarge Qemu linux lvm vps

yena

Renowned Member
Nov 18, 2011
373
4
83
Hello,
i have a Qemu VPS Cloudlinux 7 (centos 7) with LVM.

I'm tryng to enlarge the root partition using Gparted Live CD but i have this error when i try to enlarge SDA2:
"partition length of 4401920000 sectors exceeds the msdos-partition-table-imposed ..."

My Volumes details:

vgdisplay
--- Volume group ---
VG Name cloudlinux
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 1,95 TiB
PE Size 4,00 MiB
Total PE 511743
Alloc PE / Size 511743 / 1,95 TiB
Free PE / Size 0 / 0
VG UUID cS3axr-te0n-NtTD-PHql-RHnb-qdFP-L4JqTw

[root@node4-001 ~]# lvdisplay
--- Logical volume ---
LV Path /dev/cloudlinux/root
LV Name root
VG Name cloudlinux
LV UUID z4WPoP-Yqls-dqWc-ep8P-DKw6-xnRi-2W3fF4
LV Write Access read/write
LV Creation host, time nodo4-001.server365.it, 2017-06-30 16:59:46 +0200
LV Status available
# open 1
LV Size 50,00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/cloudlinux/home
LV Name home
VG Name cloudlinux
LV UUID bHDguY-NTi3-2her-MOoc-07Ne-20Yt-kQw5nY
LV Write Access read/write
LV Creation host, time nodo4-001.server365.it, 2017-06-30 16:59:47 +0200
LV Status available
# open 1
LV Size 1,90 TiB
Current LE 497919
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

--- Logical volume ---
LV Path /dev/cloudlinux/swap
LV Name swap
VG Name cloudlinux
LV UUID vZ16Rx-CXxe-r0g5-6Ps7-h77T-eSBa-IzKJZb
LV Write Access read/write
LV Creation host, time nodo4-001.server365.it, 2017-06-30 16:59:51 +0200
LV Status available
# open 2
LV Size 4,00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

[root@node4-001 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name cloudlinux
PV Size 1,95 TiB / not usable 3,00 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 511743
Free PE 0
Allocated PE 511743
PV UUID ZeWf35-fyUZ-WyOA-6gif-J5JR-X5eM-J9hGyR

--------------------------------------------------------------------------------------------------
df -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/mapper/cloudlinux-root 50G 41G 6,6G 86% /
devtmpfs 37G 0 37G 0% /dev
tmpfs 37G 4,0K 37G 1% /dev/shm
tmpfs 37G 321M 37G 1% /run
tmpfs 37G 0 37G 0% /sys/fs/cgroup
/dev/sda1 976M 182M 727M 20% /boot
/dev/mapper/cloudlinux-home 1,9T 282G 1,6T 16% /home
tmpfs 7,3G 0 7,3G 0% /run/user/0
---------------------------------------------------------------------------

Please How can i enlarge it ?

Thanks!

 
Hello,
msdos partition tables only support a max disk size of 2 TB. If you have a larger disk you need to convert your partition table to gpt. However I recommend doing a backup/snapshot before that as changing the partition table could break your filesystem if done wrong.
 
Hello,
msdos partition tables only support a max disk size of 2 TB. If you have a larger disk you need to convert your partition table to gpt. However I recommend doing a backup/snapshot before that as changing the partition table could break your filesystem if done wrong.

Please, can i convert partition with Gparted ? or what is the best procedure ?
If i take a snapshot of the VPS, and something go wrong.. can i revert ?
Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!