Skip to content

Instantly share code, notes, and snippets.

@waltercool
Last active January 8, 2023 07:01
Show Gist options
  • Select an option

  • Save waltercool/56baf7a82ec48ac9ebaa3bf37a2a2bdb to your computer and use it in GitHub Desktop.

Select an option

Save waltercool/56baf7a82ec48ac9ebaa3bf37a2a2bdb to your computer and use it in GitHub Desktop.
AWS Useful Tips
  1. Stopping a zombie machine: aws opsworks stop-instance --instance-id <opsworks ID>

  2. Resize root disk on AWS:
    z) partprobe /dev/xvdX
    a) parted /dev/xvdX print
    b) parted /dev/xvdX resizepart Y && resize2fs /dev/xvdXY # resize2fs needed to update the partition table

Update for xfs partitions:

a) growpart /dev/xvda 1
b) xfs_growfs /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment