I'm creating several LAMP servers on Amazon EC2. I'd like to put Apache and MySQL on separate EBS (attached) volumes for persistent storage.
From what I've read, people do one of the following:
(a) physically move the core files for Apache/MySQL to an XFS-formatted EBS volume (e.g. sudo mv /etc/mysql /vol/etc/, etc.).
(b) symbolically link their core files to the EBS volume (e.g. mkdir -p /ebs/var/lib/mysql and then ln -s /ebs/var/lib/mysql /var/lib)
Can you explain why someone would choose option B? Isn't it a better idea to have your data off the EC2 instance and onto EBS from the get-go?