Thanks Lingxian, it worked fine.
I have resize the volume of mysql datastore from 17GB to 18GB. In guest agent logs it said that command has executed successfully.
2021-05-21 07:11:03.527 1062 INFO trove.guestagent.datastore.manager [-] Resizing the filesystem at /var/lib/mysql, online: True
2021-05-21 07:11:03.528 1062 DEBUG trove.guestagent.volume [-] Checking if /dev/sdb exists. _check_device_exists /home/ubuntu/trove/trove/guestagent/volume.py:217
2021-05-21 07:11:03.528 1062 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo blockdev --getsize64 /dev/sdb execute /opt/guest-agent-venv/lib/python3.6/site-packages/oslo_concurrency/processutils.py:384
2021-05-21 07:11:03.545 1062 DEBUG oslo_concurrency.processutils [-] CMD "sudo blockdev --getsize64 /dev/sdb" returned: 0 in 0.016s execute /opt/guest-agent-venv/lib/python3.6/site-packages/oslo_concurrency/processutils.py:423
2021-05-21 07:11:03.546 1062 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo resize2fs /dev/sdb execute /opt/guest-agent-venv/lib/python3.6/site-packages/oslo_concurrency/processutils.py:384
2021-05-21 07:11:03.577 1062 DEBUG oslo_concurrency.processutils [-] CMD "sudo resize2fs /dev/sdb" returned: 0 in 0.031s execute /opt/guest-agent-venv/lib/python3.6/site-packages/oslo_concurrency/processutils.py:423
But the /var/lib/mysql still shows 17GB. I have manually executed resize2fs on /dev/sdb. After manual execution, /var/lib/mysql has updated to 18GB. Not sure if I am missing something.
- Ammad