<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Waage Blog &#187; Amazon Web Services</title>
	<atom:link href="http://qugstart.com/blog/category/amazon-web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://qugstart.com/blog</link>
	<description>Ruby, Rails, Life</description>
	<lastBuildDate>Thu, 10 Nov 2011 00:35:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to mount an Amazon S3 bucket as virtual drive on CentOS 5.2</title>
		<link>http://qugstart.com/blog/linux/how-to-mount-an-amazon-s3-bucket-as-virtual-drive-on-centos-5-2/</link>
		<comments>http://qugstart.com/blog/linux/how-to-mount-an-amazon-s3-bucket-as-virtual-drive-on-centos-5-2/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 01:38:41 +0000</pubDate>
		<dc:creator>Andrew Waage</dc:creator>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[bucket]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://qugstart.com/blog/?p=53</guid>
		<description><![CDATA[#Note: If you are using CentOS 4, it&#8217;s the same general process. You might have more difficulty finding the packages to install fuse and dependencies.
This is a simple guide on how to mount your S3 bucket as a &#8220;virtual drive&#8221;. This is great for backing up your data to S3, or downloading a bunch of [...]]]></description>
			<content:encoded><![CDATA[<p>#Note: If you are using CentOS 4, it&#8217;s the same general process. You might have more difficulty finding the packages to install fuse and dependencies.</p>
<p>This is a simple guide on how to mount your S3 bucket as a &#8220;virtual drive&#8221;. This is great for backing up your data to S3, or downloading a bunch of files from S3.</p>
<p>#First, make sure you have the fuse package installed.</p>
<p>#On CentOS, fuse is available from RPMforge </p>
<pre lang='bash' class='prettyprint'>
#http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
</pre>
<p>#Now install fuse</p>
<pre lang='bash' class='prettyprint'>
yum install fuse
modprobe fuse
</pre>
<p>#Download s3fs and make</p>
<pre lang='bash' class='prettyprint'>
cd /usr/local/src
wget http://s3fs.googlecode.com/files/s3fs-r191-source.tar.gz
cd s3fs
make
</pre>
<p>#Copy the binary to /usr/local/bin (or wherever you prefer)</p>
<pre lang='bash' class='prettyprint'>
cp s3fs /usr/local/bin
</pre>
<p>#Make a mount point </p>
<pre lang='bash' class='prettyprint'>
mkdir /mnt/s3drive
</pre>
<p>#Mount your bucket like this:</p>
<pre lang='bash' class='prettyprint'>
s3fs bucketname -o accessKeyId=XXXXXXXXXXXXXXXXXXXX -o secretAccessKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /mnt/s3drive
</pre>
<p>That&#8217;s it ! You can change directory to your virtual drive or start copying files !<br />
Go ahead and use a visual client such as CyberDuck or S3Hub to verify with your own eyes that this actually worked. <img src='http://qugstart.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://qugstart.com/blog/linux/how-to-mount-an-amazon-s3-bucket-as-virtual-drive-on-centos-5-2/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to Set up DB server on Amazon EC2 with data stored on EBS drive formatted with XFS</title>
		<link>http://qugstart.com/blog/amazon-web-services/how-to-set-up-db-server-on-amazon-ec2-with-data-stored-on-ebs-drive-formatted-with-xfs/</link>
		<comments>http://qugstart.com/blog/amazon-web-services/how-to-set-up-db-server-on-amazon-ec2-with-data-stored-on-ebs-drive-formatted-with-xfs/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 22:56:17 +0000</pubDate>
		<dc:creator>Andrew Waage</dc:creator>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[DB server]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[ec2]]></category>

		<guid isPermaLink="false">http://qugstart.com/blog/?p=44</guid>
		<description><![CDATA[Working with Amazon Web Services (AWS) such as EC2, S3, and EBS takes some time to get familiar with all the tools, acronyms, and especially paradigm of thinking about servers. Once you get into it, you quickly find much old (outdated) documentation, and you can easily find yourself spending hours searching the web for blog [...]]]></description>
			<content:encoded><![CDATA[<p>Working with Amazon Web Services (AWS) such as EC2, S3, and EBS takes some time to get familiar with all the tools, acronyms, and especially paradigm of thinking about servers. Once you get into it, you quickly find much old (outdated) documentation, and you can easily find yourself spending hours searching the web for blog posts to help in your quest!</p>
<p>After much research, I decided to create a Mysql database server on a &#8216;instance-store&#8217; small ec2 server, with all the precious Mysql data stored on a EBS volume attached to my server. This way, I could easily create snapshot backups of my databases for FAST backups. Here&#8217;s the procedure I decided on. It involves symlinking Mysql config files and data directories onto the EBS volume. </p>
<p>Another trick I used because I needed to migrate about 20 GiB&#8217;s of data to get started, was that I initially set up an &#8220;X-tra large&#8221; instance, with 10 GiB&#8217;s RAM to handle the data import. After the data was migrated and imported to my database, I simply terminated my X-Large instance and spun up a small instance connected to the same EBS volume! All the databases were preserved  nicely and I did not have to waste money paying for an X-Large instance anymore. This exemplifies the value of thinking in the &#8220;cloud&#8221; mindset &#8211; where you can spin up and down servers in a matter of seconds! Hope this article helps someone else out there! </p>
<p>Great Reference: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663</p>
<p># Create small instance (I used the AMI for i.386 CentOS 5.4)</p>
<p># Create EBS volume and attach it to the EC2 (as /dev/sdh in my example)</p>
<p># Install mysql-server</p>
<pre lang='bash' class='prettyprint'>
yum install mysql-server
</pre>
<p># Install xfsprogs so you can format EBS drive with XFS</p>
<pre lang='bash' class='prettyprint'>
yum install xfsprogs
modprobe xfs
mkfs.xfs /dev/sdh
</pre>
<p># Add to your /etc/fstab so it mounts on boot</p>
<pre lang='bash' class='prettyprint'>
echo "/dev/sdh /vol xfs noatime 0 0" | sudo tee -a /etc/fstab
sudo mkdir -m 000 /vol
sudo mount /vol
</pre>
<p># Create directories that will store persistant Mysql data</p>
<pre lang='bash' class='prettyprint'>
mkdir /vol/etc /vol/lib /vol/log
</pre>
<p># Move the mysql config and data files to your newly mounted drive </p>
<pre lang='bash' class='prettyprint'>
mv /etc/my.cnf  /vol/etc/
mv /var/lib/mysql /vol/lib/
mv /var/log/mysqld.log /vol/log/
</pre>
<p># Symlink the mysql directories so that mysql uses the mounted EBS drive</p>
<pre lang='bash' class='prettyprint'>
ln -s /vol/lib/mysql /var/lib/mysql
ln -s /vol/etc/my.cnf /etc/my.cnf
ln -s /vol/log/mysqld.log /var/log/mysqld.log
</pre>
<p>Now restart your Mysql server and check your logs if you have any errors!</p>
<pre lang='bash' class='prettyprint'>
service mysqld start

# If you have errors, watch the logs
tail -f /var/log/mysqld.log
</pre>
<p>Good luck !</p>
]]></content:encoded>
			<wfw:commentRss>http://qugstart.com/blog/amazon-web-services/how-to-set-up-db-server-on-amazon-ec2-with-data-stored-on-ebs-drive-formatted-with-xfs/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

