Resize disk centos7

Andrea Carnevali

Active Member
Mar 8, 2017
28
0
41
47
Hello.
I tried to enlarge a disk connected to a VM centos7 where I installed a zimbra mail server.
In this I say I store all the emails and then after 3 years I want to go from 250Gb to 350 Gb.
Without turning off the machine, I used the "resize disk" command.

Now the partition is :

Disco /dev/vdb: 322.1 GB, 322122547200 byte
255 testine, 63 settori/tracce, 39162 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: 0x00081831
Dispositivo Boot Start End Blocks Id System
/dev/vdb1 1 32636 262142976 83 Linux

I have not turned off the vm centos but only restarted and the filesystem is this:

Filesystem Size Used Avail Use% Mounted on
/dev/vdb1 246G 232G 2,0G 100% /opt/zimbra

Can you give me a guide now on how to enlarge the filesystem and show it the whole disk?



Thank you

Andrea
 
I tried to enlarge a disk connected to a VM centos7 where I installed a zimbra mail server.
In this I say I store all the emails and then after 3 years I want to go from 250Gb to 350 Gb.
Without turning off the machine, I used the "resize disk" command.

Now the partition is :

Disco /dev/vdb: 322.1 GB, 322122547200 byte
255 testine, 63 settori/tracce, 39162 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: 0x00081831
Dispositivo Boot Start End Blocks Id System
/dev/vdb1 1 32636 262142976 83 Linux

I have not turned off the vm centos but only restarted and the filesystem is this:

Filesystem Size Used Avail Use% Mounted on
/dev/vdb1 246G 232G 2,0G 100% /opt/zimbra

Can you give me a guide now on how to enlarge the filesystem and show it the whole disk?

In the guest you have to
- extend the partition ( /dev/vdb1 )
- then run
Code:
resize2fs /dev/vdb1
 

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!