• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Extend LVM partition

NicolaA

New Pleskian
Hello everyone!
Yesterday I upgrade my Plesk Panel from version 11.0.9 to 11.5.30. After this upgrade I reached the 88% of hard disk usage and I would like to extend the partition. The server is a CentOS 6 virtual machine in vmWare environment.

Does anybody know how to correctly extend LVM partition?

Thanks in advance
Simone
 
It is common Linux question and can be easily googled...
 
Thank you, here is the output:

[root@sh1 ~]# df -h
Filesystem Size Used Avail Use% Montato su
/dev/mapper/vg_sh3-lv_root
50G 44G 3,0G 94% /
tmpfs 1000M 0 1000M 0% /dev/shm
/dev/sda1 485M 62M 398M 14% /boot
/dev/mapper/vg_sh3-lv_home
95G 443M 89G 1% /home


[root@sh1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_sh3 1 3 0 wz--n- 149,51g 0


[root@sh1 ~]# fdisk -l

Disco /dev/sda: 161.1 GB, 161061273600 byte

255 testine, 63 settori/tracce, 19581 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00043b91

Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
La partizione 1 non termina al limite del cilindro.
/dev/sda2 64 19582 156773376 8e Linux LVM

Disco /dev/dm-0: 53.7 GB, 53687091200 byte

255 testine, 63 settori/tracce, 6527 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00000000

Il disco /dev/dm-0 non contiene una tabella delle partizioni valida

Disco /dev/dm-1: 4227 MB, 4227858432 byte
255 testine, 63 settori/tracce, 514 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00000000

Il disco /dev/dm-1 non contiene una tabella delle partizioni valida

Disco /dev/dm-2: 102.6 GB, 102617841664 byte

255 testine, 63 settori/tracce, 12475 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00000000

Il disco /dev/dm-2 non contiene una tabella delle partizioni valida

Kind regards
Simone
 
[root@sh1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_sh3 1 3 0 wz--n- 149,51g 0

I can see there are now free space on your "Volume Groups " and due to that you can NOT increase /dev/mapper/vg_sh3-lv_root Logical Volume, You will have to attach one more disk to your server to increased the disk space partitions
 
Back
Top