Monday, October 1, 2007

How to setup Elastic Drive in Fedora Core 6 running under VMWare

Abstract: This article describes instructions on installation of Elastic Drive in FC6 that runs under VMWare.

Having received several requests on helping to install Elastic Drive under Fedora Core 6, I've set up a short tutorial, that you'll see below.

VMWARE

To start, you'll need to have VMware Player or Server installed.
I've downloaded Fedora Core from this place , but looks like it not very different from the fedora site in a sense that you still need to set some configuration for your Fedora. This would take about 2 minutes to accomplish.

Set your system time to be in sync with S3, since it doesn't allow difference more than 10 minutes. I would go to System > Administration > Date and Time and checkmark 'system clock uses UTC' and choose Americas etc to have EDT. Then set you system time to match S3 precisely in terminal (or you may do it with above utilities):

date -s "enter S3 time here"

Then I've applied latest updates and proceeded to terminal, where entered following:

SETUP PRE-REQUISITES

yum install fuse fuse-devel python-devel gcc-c++ gcc gcc-devel glibc-devel glibc-headers libgomp libstdc++-devel


SETUP ELASTIC DRIVE

cd /opt

wget http://www.elasticdrive.com/uploads/media/elasticdrive-0.4.0_dist.tar.gz

tar zxf elasticdrive-0.4.0_dist.tar.gz

ln -s elasticdrive-0.4.0_dist e

cd e

./install

mkdir -p /fuse /fuse2 /data/s3

RUN ELASTIC DRIVE

At this point, if you don't have any error, you have elasticdrive application installed and ready to run. As recommended, you'll need to edit configuration file, located at /etc/elasticdrive.ini (we'll omit configuration details, since it is well described at the site)
To run the application, enter following in terminal:

elasticdrive /etc/elasticdrive.ini -d

ps aux | grep elastic

ls -al /fuse2

If you see it found in list of processes, then it is running. Also the latter command should show something like ed0.


SETUP FILESYSTEM

If you have all of the above show up, let's do file system stuff:

mke2fs -b 4096 /fuse2/ed0
// choose 'y' when you see Proceed anyway? (y,n)

mount -o loop /fuse2/ed0 /data/s3


TEST ELASTIC DRIVE

At this point you should have file system ready for work. Try copy some files into /data/s3 or test it some other ways.

df -h

cd /data/s3

wget http://www.elasticdrive.com/uploads/media/elasticdrive-0.4.0_dist.tar.gz

Cloud Computing Google Group