~$ ./expand_ebs-volume.py vol-03d66355a405a1549
 
{'VolumeModification': {'VolumeId': 'vol-03d66355a405a1549',  
'ModificationState': 'modifying', 'TargetSize': 60, 'TargetIops': 100,  
'TargetVolumeType': 'gp2', 'TargetMultiAttachEnabled': False, 
'OriginalSize': 40, 'OriginalIops': 100, 'OriginalVolumeType': 'gp2',  
'OriginalMultiAttachEnabled': False, 'Progress': 0, 'StartTime':  
datetime.datetime(2024, 9, 17, 21, 28, 53, tzinfo=tzutc())},  
'ResponseMetadata': {'RequestId': 'f87ba48a-f95f-4d15-9492-55a671b726e8',  
'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid':  
'f87ba48a-f95f-4d15-9492-55a671b726e8', 'cache-control': 'no-cache,  
no-store', 'strict-transport-security': 'max-age=31536000;  
includeSubDomains', 'vary': 'accept-encoding', 'content-type':  
'text/xml;charset=UTF-8', 'transfer-encoding': 'chunked', 'date': 'Tue,  
17 Sep 2024 21:28:52 GMT', 'server': 'AmazonEC2'}, 'RetryAttempts': 0}}
 
[]
['CHANGED: partition=1 start=2048 old: size=83883999 end=83886047 new: size=125827039,end=125829087\n']
 
['e2fsck 1.44.1 (24-Mar-2018)\n']
['cloudimg-rootfs: recovering journal\n',  
'Pass 1: Checking inodes, blocks, and sizes\n',  
'Pass 2: Checking directory structure\n',  
'Pass 3: Checking directory connectivity\n',  
'Pass 4: Checking reference counts\n',  
'Pass 5: Checking group summary information\n',  
'Free blocks count wrong (9878638, counted=9875702).\n', 'Fix? yes\n', '\n',  
'Free inodes count wrong (5056058, counted=5055791).\n', 'Fix? yes\n', '\n',  
'\n', 'cloudimg-rootfs: ***** FILE SYSTEM WAS MODIFIED *****\n', 'cloudimg-rootfs: 64209/5120000 files (0.1% non-contiguous), 609797/10485499 blocks\n']
 
['resize2fs 1.44.1 (24-Mar-2018)\n']
['Resizing the filesystem on /dev/xvdd1 to 15728379 (4k) blocks.\n',  
'The filesystem on /dev/xvdd1 is now 15728379 (4k) blocks long.\n', '\n']
 
Have a nice day!
