Skip to content

Instantly share code, notes, and snippets.

@iketiunn
Last active September 21, 2017 10:00
Show Gist options
  • Save iketiunn/55c569792587bb51f3c77231fa182068 to your computer and use it in GitHub Desktop.
Save iketiunn/55c569792587bb51f3c77231fa182068 to your computer and use it in GitHub Desktop.
Some amazon compute cloud tips

Increase volumes in amazon console

EC2 service -> ELASTIC BLOCK STORE -> Chose your volume -> Actions -> Modify Volume

Then wait the process compelete.

Resize file system on instance

ubuntu@ip-172-31-26-7:~$ lsblk
NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  20G  0 disk
└─xvda1 202:1    0  8G  0 part /

ubuntu@ip-172-31-26-7:~$ sudo growpart /dev/xvda 1
CHANGED: partition=1 start=16065 old: size=16761118 end=16777183 new: size=41926942,end=41943007

ubuntu@ip-172-31-26-7:~$ sudo resize2fs /dev/xvda1
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/xvda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/xvda1 is now 5240867 (4k) blocks long.

ubuntu@ip-172-31-26-7:~$ lsblk
NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  20G  0 disk
└─xvda1 202:1    0  20G  0 part /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment