# How to setup ec2 for chef-server with the database to be saved to mounted vol using EBS?

**URL:** <https://discourse.chef.io/t/how-to-setup-ec2-for-chef-server-with-the-database-to-be-saved-to-mounted-vol-using-ebs/2363>\
**Category:** Chef Infra (archive)\
**Created:** [January 3, 2012, 8:13am UTC](https://discourse.chef.io/t/how-to-setup-ec2-for-chef-server-with-the-database-to-be-saved-to-mounted-vol-using-ebs/2363 "2012-01-03T08:13:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![millisami\_r](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/millisami_r/32/418_2.png) [@millisami\_r](https://discourse.chef.io/u/millisami_r)\
**Post date:** [January 3, 2012, 8:13am UTC](https://discourse.chef.io/t/how-to-setup-ec2-for-chef-server-with-the-database-to-be-saved-to-mounted-vol-using-ebs/2363/1 "2012-01-03T08:13:09Z")

</div>

Hi, I’ve installed chef-server on ec2 with ebs store using the pacakges  
following this  
[http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packagesarticle](http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packagesarticle).

And now its running. When I stop the node and later if I start it again,  
its up successfully but the cookbooks, roles, databags, etc… are all  
lost and I’ve to upload it again and again.

So, how can I install the chef-server with database mount on other volume  
so that later when I start the node again, all those data should be  
retained automatically?

I’m sure someone have done this or any pointer and links to other posts  
would also be great.

Thanks.

@millisami  
~Sachin Sagar Rai  
Ruby on Rails Developer  
[http://tfm.com.np](http://tfm.com.np)  
[http://nepalonrails.tumblr.com](http://nepalonrails.tumblr.com)
