Resize Drive Problem in Centos6 on AWS EC2

To Resize the root partition in Centos 6 machine run the below mentioned Commands:



1. Install EPEL6 Repo
~]# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    or 
~]# wget  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
~]# rpm -ivh epel-release-6-8.noarch.rpm

2. Install the dracut & cloud-utils growpart modules-growroot
~]# yum install -y dracut-modules-growroot cloud-utils-growpart
  or 
~]# yum -y --quiet install dracut-modules-growroot
~]# dracut -v --force --add growroot /boot/initramfs-$(uname -r).img
~]# reboot
3. The initrd needs to be rebuilt after installing the dracut-modules-growroot. Create a backup copy of the current initramfs:
~]# cp -p /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

4. Create the initramfs for the current kernel:
~]# dracut -f

5. Result after reboot
~]# reboot




Comments

Popular posts from this blog

Default ssh Usernames For Connecting To EC2 Instances

Deleting a Route 53 Hosted Zone And All DNS Records Using aws-cli

JAWS: THE JAVASCRIPT + AWS STACK.