How to move VAR folder to a different partition on Amazon AMI
On Amazon AMI it's difficult to recover if the instance fails to allow connection.
The root volume cannot be attached to another instance if the image is from AMI marketplace.
If you wish to move the /VAR partition to a different partition, please ensure that SELINUX is disabled.
Enter the following command:
The output should 'disabled', if not, change the config file
Change the line:
Reboot the box and follow the process outlined in the link below:
This will also work for issues when you modify the fstab and cannot connect to the AMI, assuming the fstab entry is correct.