AWS EC2 Disk Problem

2

I use Amazon and I have an EC2 instance running CentOS 6.5.

I recently moved the disk from the machine. I did the procedure to shut down the machine to take a snapshot of the old disk and climb in a new one with the bigger space.

When I reconnected the machine it shows me that the partition bar is 7.8GB. When in fact the new disk is 20GB.

Command df -h:

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde       7,8G  7,3G   90M  99% /
tmpfs           828M     0  828M   0% /dev/shm

lsblk command:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvde 202:64   0  20G  0 disk /
xvdj 202:144  0   8G  0 disk

asked by anonymous 26.10.2015 / 21:09

1 answer

1

In addition to increasing volume, you need to resize the file system with resize2fs or similar. As described in this part of the documentation .

    
27.10.2015 / 15:42