Last active
March 2, 2019 17:42
-
-
Save 100daysofdevops/49c118bfc2a1daeeff34fa713aa94a2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Modifying an EBS Volume | |
| $ aws ec2 modify-volume --volume-type io1 --iops 100 --size 10 --volume-id vol-Xyz123456 | |
| { | |
| "VolumeModification": { | |
| "TargetSize": 10, | |
| "TargetVolumeType": "io1", | |
| "ModificationState": "modifying", | |
| "VolumeId": "vol-Xyz123456", | |
| "TargetIops": 100, | |
| "StartTime": "2019-03-02T17:29:53.000Z", | |
| "Progress": 0, | |
| "OriginalVolumeType": "gp2", | |
| "OriginalIops": 100, | |
| "OriginalSize": 8 | |
| } | |
| } | |
| # Monitoring the Progress of a Volume Modification | |
| $ aws ec2 describe-volumes-modifications --volume-id vol-Xyz123456 | |
| { | |
| "VolumesModifications": [ | |
| { | |
| "TargetSize": 10, | |
| "TargetVolumeType": "io1", | |
| "ModificationState": "optimizing", | |
| "VolumeId": "vol-Xyz123456", | |
| "TargetIops": 100, | |
| "StartTime": "2019-03-02T17:29:53.000Z", | |
| "Progress": 7, | |
| "OriginalVolumeType": "gp2", | |
| "OriginalIops": 100, | |
| "OriginalSize": 8 | |
| } | |
| ] | |
| } | |
| # Size before extending | |
| # df -TH | |
| /dev/xvda1 xfs 8.6G 1.3G 7.4G 15% / | |
| # Extend an XFS filesystem | |
| # xfs_growfs -d / | |
| meta-data=/dev/xvda1 isize=512 agcount=4, agsize=524159 blks | |
| = sectsz=512 attr=2, projid32bit=1 | |
| = crc=1 finobt=1 spinodes=0 | |
| data = bsize=4096 blocks=2096635, imaxpct=25 | |
| = sunit=0 swidth=0 blks | |
| naming =version 2 bsize=4096 ascii-ci=0 ftype=1 | |
| log =internal bsize=4096 blocks=2560, version=2 | |
| = sectsz=512 sunit=0 blks, lazy-count=1 | |
| realtime =none extsz=4096 blocks=0, rtextents=0 | |
| # After | |
| # df -TH / | |
| Filesystem Type Size Used Avail Use% Mounted on | |
| /dev/xvda1 xfs 11G 1.3G 9.5G 12% / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment