so - space getting a little tight on box, cant archive or delete anything - lets grow it. another inherited box - i would really have preferred app dir to be on a separate partition to root, but moving this one required downtime so lets do it whilst our devs are still using it!
prior to growing: # df -hl /dev/xvda1 36G 32G 4.1G 89% /
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 32G 0 disk └─xvda1 202:1 0 36G 0 part /
we then go into aws console, look at instance under ec2 instances, click on actions -> modify volume and then increase size to 100G. alternatively (ideally!) use terraform to increase volume size, or cloudformation or: aws ec2 modify-volume --size 100 --volume-id vol-yourvolidhere
df remains the same but lsblk now shows: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 100G 0 disk └─xvda1 202:1 0 36G 0 part / we can extend the space onto partion 1 by: # growpar…