viernes, 6 de junio de 2014

AWS: Convert root volume to XFS

By default, root volume in Amazon Linux instances uses EXT4 filesystem. But maybe you want to use another one, for example XFS. With next procedure you'll be able to convert default root volume filesystem of an existing instance to XFS. For our example, we've an instance named MyInstance using default Amazon Linux distribution:


After login, as you can see default root filesystem device (/dev/sda1 | /dev/xvda1) is EXT4:


Here is suggested steps to successfully achieve the filesystem conversion:
  • Login to the instance and become root
  • Install XFS utils: yum install xfsprogs xfsprogs-devel xfsdump
  • Stop the instance
  • Create a snapshot of root volume

  • Create a new volume from the snapshot. Make sure you don´t modify size and select same availability zone where original root volume of instance is hosted


  • Start the instance and wait until become available. After that, login to the instance and become root
  • Attach new volume as a secondary volume. By default, /dev/sdf device will be selected. This device is mapped as /dev/xvdf in modern kernels. Run dmesg command to review your kernel successfully detect the new attached volume

  • Install Development Tools: yum groupinstall 'Development Tools'
  • Download Fstransform toolkit from here
  • Uncompress, configure, compile and install Fstransform toolkit

  • Now, run: fstransform /dev/xvdf xfs
  • Previous command will convert /dev/xvdf from original EXT4 filesystem to XFS. Process will take time, depends on volume size. Be patient and make sure everything is correctly done. fstransform will provide detailed information about the process. Make sure everything is correctly done. 

  • Label /dev/xvdf device as '/'. Just run: xfs_admin -L \/ /dev/xvdf
  • Create a mountpoint directory, for example /xfs, and mount /dev/xvdf in /xfs directory. Edit fstab file associated to the new XFS volume (/xfs/etc/fstab) and make sure / is associated to volume labeled / and xfs filesystem is configured for root mountpoint

  • Stop the instance
  • Detach original root volume
  • Detach XFS volume
  • Attach XFS volume as root volume. Make sure you specify same device associated to the original root volume (for Amazon Linux instances usually is /dev/sda1
  • Start the instance
Now, your instance should start. Login and verify root volume now is XFS


If there is any issue during instance startup, review System Log in AWS EC2 web console. Useful information for troubleshooting will be provided (if required).

22 comentarios:

Unknown dijo...
Este comentario ha sido eliminado por el autor.
Unknown dijo...


I am a regular reader of your blog. the blog is very interesting and will be much useful for us.
Salesforce training in chennai

Unknown dijo...

This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority.
Cloud Computing Training in Chennai

Unknown dijo...

Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

digital marketing course in chennai
software testing training in chennai

Unknown dijo...

I have also gone through your other posts too and they are also very much appreciate able and I'm just waiting for your next update to come as I like all your posts...
SAP MM Training in Chennai

Unknown dijo...

Thanks for the informative article.This is one of the best resources I have found in quite some time.Nicely written and great info.I really cannot thank you enough for sharing.

Herbalife in Chennai
Wellnesscentres in Chennai
Weight Loss in Chennai
Weight Gain in Chennai

saimouni dijo...

The knowledge of technology you have been sharing through this post is very much helpful to develop a new idea. hereby I also want to share this.
Python training in bangalore
Python course in pune
Python training in bangalore

afiah b dijo...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Oracle training in Chennai

Java training in Chennai | Java training in Annanagar

Java training in Chennai | Java training institute in Chennai | Java course in Chennai

Java training in Chennai | Java training institute in Chennai | Java course in Chennai

jeyanthi dijo...

Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
Data Science course in Indira nagar
Data Science course in marathahalli
Data Science Interview questions and answers
Data science training in tambaram | Data Science Course in Chennai
Data Science course in btm layout | Data Science training in Bangalore
Data science course in kalyan nagar | Data Science Course in Bangalore

Unknown dijo...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
angularjs online Training

angularjs Training in marathahalli

angularjs interview questions and answers

angularjs Training in bangalore

angularjs Training in bangalore

angularjs interview questions and answers

sasitamil dijo...

I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing..
Believe me I did wrote an post about tutorials for beginners with reference of your blog. 




Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training

liza dijo...


Thanks for sharing the information. It is very useful for my future. keep sharingDeer Hunting Tips Camping Trips Guide DEER HUNTING TIPS travel touring tips

liza dijo...


Very enjoyable to visit this blog and find something exciting and amazing. Still Hunting Method
Hunting psych tips Survival Tips Travel Touring Tips

liza dijo...


NICE for giving a chance to share ideas for your community I really thanks for that great post.travel trekking tips
see the link Tent Camping 101 Exploring Smithriver

liza dijo...


Thank you for such a sweet tutorial - all this time later, I've found it and love the end result. I appreciate the time you spent sharing your skills.
travel trekking tips
see the link Tent Camping 101 Exploring Smithriver

Softgen Infotech dijo...

I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.

Looking for Software Training in Bangalore , learn from Softgen Infotech Software Courses on online training and classroom training. Join today!

eTechno Soft Solutions dijo...

I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.

Start your journey with In Software Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @eTechno Soft Solutions Located in BTM Layout Bangalore.

Realtime Experts dijo...

I have read your blog its very attractive and impressive. I like it your blog.Microsoft Training in Bangalore

Realtime Experts dijo...

Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts. sap training in bangalore


Realtime Experts dijo...

Great post!I am actually getting ready to across this information,i am very happy to this commands.Also great blog here with all of the valuable information you have.Well done,its a great knowledgez. ORACLE APPS training in bangalore

Jenifer dijo...

Pretty! This was a really wonderful post. Thank you for providing these details.

microsoft training in bangalore

microsoft training institutes in bangalore

microsoft course content

microsoft training centres in bangalore

microsoft course syllabus

microsoft training

Jenifer dijo...

Excellent blog, I wish to share your post with my folks circle. It’s really helped me a lot, so keep sharing post like this.

microsoft training and placement support in bangalore

microsoft training free demo class

microsoft placement bangalore

microsoft online training

microsoft classroom training

microsoft training with lab facilities

microsoft training with certified and experienced trainers