I have an AWS EC2 instance running on Ubuntu 16.04.
It has a 2TB ext4 partition which I am trying to resize to 6TB. I have updated the AWS volume to 6TB without difficulties.
On the instance I used resize2fs
to resize the partition and it does not work (even after rebooting). Using lsblk
I can correctly see the total disk space of 5.9T.
gab@someserver:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
udev 481G 0 481G 0% /dev
tmpfs 97G 8.6M 97G 1% /run
/dev/xvda1 2.0T 1.7T 309G 85% /
tmpfs 481G 8.0K 481G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 481G 0 481G 0% /sys/fs/cgroup
tmpfs 97G 0 97G 0% /run/user/1001
gab@someserver:~$ sudo blkid
/dev/xvda1: LABEL="cloudimg-rootfs" UUID="*****" TYPE="ext4" PARTUUID="***"
gab@someserver:~$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 5.9T 0 disk
└─xvda1 202:1 0 2T 0 part /
xvdb 202:16 0 1.8T 0 disk
gab@someserver:~$ sudo resize2fs /dev/xvda1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 536870655 (4k) blocks long. Nothing to do!
gab@someserver:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
udev 481G 0 481G 0% /dev
tmpfs 97G 8.6M 97G 1% /run
/dev/xvda1 2.0T 1.7T 309G 85% /
tmpfs 481G 8.0K 481G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 481G 0 481G 0% /sys/fs/cgroup
tmpfs 97G 0 97G 0% /run/user/1001
gab@someserver:~$
Does anyone have any experience with this issue?