Posted by cpelham on February 3, 2010 at 5:17am
Are there detailed instructions anywhere on how to set up the EC2 instance to work with an EBS volume? I've got Mercury going on an EC2 instance, and I've created and connected an EBS volume but now I'm lost. How do I move the Pressflow directory to the EBS volume? How do I upload my sites/all folder from local up to the EBS? How do I move the mysql databse? And how do I make sure the EC2 instance points to the files on the EBS?

Comments
There is a readme.txt in
There is a readme.txt in /var/www
Look at Step 5
You will need to change your apache site file located at
/etc/apache2/sites-available/default
change your document root to be inside your ebs volume, those readme instructions are for just changing the dir.. but hey thats all your doing anyway.
As far as moving your site, its pretty much the same standard method. Just move it in with sftp etc. The database is standard too, any mysql database migration methods will work. For your last question the answer is the same as my first answer above... The default apache file will sort out where the webserver looks for the default site and all its files.
Cheers!
is there a performance hit in running from EBS?
Is there a performance penalty in running from EBS instead of /var? Or some other considerations?
I dont think there is a
I dont think there is a penalty, in fact I am using a 4 drive raid0 which makes things faster. Its also a lot safer to have your data on ebs since its easily backed up and persists even at server termination. The storage included with the instance is not persistent if the instance goes down so its only worth running tmp directories and such there. AFAICT its much better having your important stuff on ebs for most use cases.
thanks
OK, thanks. I was hoping that was the case, as I agree that it's much safer and easier to snapshot on the EBS.
Eric Hammond leads the way
In terms of getting the EB created and attached, this guide on the AWS developers site is the most comprehensive I've found. You can do a lot of what he does with the command-line tools via the control panel (e.g. creating and attaching the EBS) but it's a good guide of how to make, mount and utilize the EB volume, and then how to set up a solid backup policy.
https://pantheon.io | http://www.chapterthree.com | https://www.outlandishjosh.com
EBS snapshot of Pantheon not serving http
I've modified Pantheon's ami-11b79c65 and used dd as described in the excellent guide http://aws-musings.com/how-to-create-an-ebs-image-from-an-existing-ec2-i... to create its EBS image, then made a snapshot and launched it. It is running, I can SSH to it, everything seems OK... except that the site (which worked in the original AMI) is not accessible. Even wget http://localhost/ gets me "connection refused" ("Connecting to localhost|127.0.0.1|:80... failed: Connection refused.")
Apache is running ("sudo /etc/init.d/apache2 start" returns "httpd (pid xxxx) already running").
"netstat -nltp" returns "tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1673/apache2"
Everything is just as in the source AMI, so I am really not understanding why it would not work. Any ideas? Maybe there is something particular in Pantheon that needs adjusting?
---
Tomáš J. Fülöpp
http://twitter.com/vacilandois
re: EBS snapshot of Pantheon not serving http
the most common cause of this issue is that port 80 is not open in the Security Group in the AWS console.
Hope this helps,
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
Better late than never...
But Doug (nullvariable) has written up what I think is the best article on moving mysql and webroot of mercury on to EBS:
http://groups.drupal.org/node/33092