Commands
1.Switch to Super User
Command: sudo su
2. Show list of avaiable free disk
Command: df -h
3. List of all the block devices
Command: lsblk
4. Extend the size by using the following
Command: growpart /dev/xvda 1
** Note:
1. Before using xfs_growfs, you need to ensure that the underlying disk partition has been resized. This is often done using tools like growpart or other partition resizing utilities.
5. Find the file system of the block devices with EC2
Command: lsblk -f
6.Resize if file type is ext4
Command: resize2fs /dev/xvda1
7. If XFS
Command: xfs_growfs /dev/xvda1
*** Note:
1. This command takes the device path (/dev/xvda1) as an argument and adjusts the XFS file system to use the entire available space on the resized partition.
2. The xfs_growfs command operates online, meaning it can be executed while the file system is mounted and in use. (*** Zero Down Time)
8. Now find the new effective volume
Command: df -h
#AmazonEBS
#EBSVolume
#ZeroDowntime
#AWSResizing
#ElasticBlockStore
#AWSStorage
#CloudInfrastructure
#AWSManagement
#StorageManagement
#awstutorialforbeginners #awsbangla
#awsdevops