I discovered today that CentOS 6.5 x86_64 can be installed using btrfs with very little effort!
Here’s how to do it:
- At the grub menu for the installation media (e.g. minimal install CD), press tab. Pressing tab will give take you to a prompt where you may add to the installer’s kernel options.
- Append ‘ btrfs’ to the end of the line.
- Press enter.
- Proceed as usual, until you reach the ‘type of installation’ screen. At this time, select ‘Create custom layout’.
- Many partition schemes are possible here. I chose to start with a blank ‘sda’, without LVM.
- I think a non-btrfs partition type is necessary for /boot, but I’m not sure at the moment. I’ll leave that up to you to investigate.
- The first partition I entered was ‘/boot’ with a 1024MB ext4 file system.
- For most installs, you should next consider creation of a swap partition, which is something documented in the CentOS/RHEL manuals quite well. I chose not to create a swap partition for the machines where I tested this procedure, but I highly recommend you educate yourself about swap space before proceeding if you have not done so already.
- I used the rest of sda for ‘/’ using a ‘Fill to maximum’ btrfs partition.
- Proceed as usual with the installation.
It seems previous version(s) of CentOS 6.x may or may not have this feature which prompted folks to convert their ext4 partitions to btrfs after the initial install . Lucky for us, this is no longer necessary.
Please let me know in the comments if you find this works on other CentOS 6.x versions/architectures and I’ll update this post.
Thanks for reading,
// Founder @ Wrale