How to extend EBS volume which is part of LVM:
And
How to increase FS which is in LVM in AWS :
In this example, we are going to extend the existing volume
/dev/xvdm (current size: 700GB) by 300GB which is part of LVM or belongs to
volume group “VolGroup02”. Mount point name is /application.
- Login
to AWS console and search our instance with instance ID or instance name.
- Check devices attached to respective instance. Check for /dev/sdm (On server, we will see it as /dev/xvdm) volume which we are going to increase by 300GB
- Click on volume /dev/sdm and choose modify volume option and increase it by 300GB. New size will be 1000GB.
After modifying the volume from AWS end we have to check
on server whether it is modified or not.
1. Check
size of our volume on server.
#pvs |grep -i xvdm
It will not show the new size.
2. Resize
the PV so the total size of the volume will be visible
#pvresize /dev/xvdm
Now we want to extend the mountpoint /application
4. Extend
the logical volume by lvextend
+100%FREE - It will use 100%
of the free space to extend the volume.
5. Resize
the filesystem.
6. Check
new size of filesystem.
[root@mycloud ~]# df -h
/applicaiton
Regards,
Kiran Jadhaw
No comments:
Post a Comment