Decrease volume size of EC2
ubuntu@ip-172-31-22-162:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 100G 0 disk
└─xvda1 202:1 0 100G 0 part /
xvdf 202:80 0 25G 0 disk
ubuntu@ip-172-31-22-162:~$ sudo file -s /dev/xvdf
/dev/xvdf: data
ubuntu@ip-172-31-22-162:~$ sudo mkfs -t ext4 /dev/xvdf
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 6553600 4k blocks and 1638400 inodes
Filesystem UUID: 21d004ce-5bc7-426c-9a0d-ef465b97e0f7
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
ubuntu@ip-172-31-22-162:~$
Increase EC2 volume size
Last updated