jclouds/aws/demos/resize-ebs
Andrew Phillips 64b68d73db Housekeeping: renamed all .svnignore files to .gitignore, and some line endings. 2010-03-19 11:30:13 +01:00
..
jruby-client Housekeeping: renamed all .svnignore files to .gitignore, and some line endings. 2010-03-19 11:30:13 +01:00
resize-ebs-java Housekeeping: renamed all .svnignore files to .gitignore, and some line endings. 2010-03-19 11:30:13 +01:00
README.txt Added a new live test (InstanceVolumeManagerLiveTest.java). 2010-02-18 16:56:36 -08:00

README.txt

This demo is used to show how to change volume size for EBS-backed instance. Basically, jclouds API is used to run a sequence of commands, as described in an excellent article: http://alestic.com/2009/12/ec2-ebs-boot-resize.

There are 2 directories:

First one, /resize-ebs-java, has all necessary classes for the demo (under org.jclouds.tools.ebsresize), and also a sample Java launcher (EbsResizeMain). Please change the variables in EbsResizeMain to run the demo.

Second directory, /jruby-client, has a JRuby launcher for the same Java libraries. Please change the variables in launcher.rb to run the demo.
To manage the maven dependencies, run as:
$ mvn jruby:run

Pre-requisites:
- running EBS-backed instance at Amazon EC2
- Ubuntu image
- proper settings in place (EbsResizeMain or launcher.rb)
- file system is ext3 (otherwise, change is needed in org.jclouds.tools.ebsresize.InstanceVolumeManager)
- the demo doesn't take care of freezing the database, filesystem and application data