Register with Amazon and get a Amazon AWS account.
I recomend you download and install ElasticFox plugin for Firefox useful for EC2 management and JetS3t for using uploading to managing S3.
Go and register for an Solaris AMI with Sun from the Solaris EC2 Blog - http://blogs.sun.com/ec2/
Once you get the permission to use Solaris AMIs, Start ElasticFox from Firefox Menu > Tools > ElasticFox
Set your AWS credentails, i.e. AWS Access Key and AWS Secret Access Key, in the dialog that comes on clicking Credentials. Also add your Account ID.
Go to the KeyPairs tab and create a new KeyPair. This will create a PEM file. Save it.
Use PuttyGen and load the PEM file in it. Enter a Passphrase of your choice. (This will act as the root password) and save the PrivateKey as a ppk file.
Choose the OpenSolaris AMI of your choice in the AMIs and Instances Tab, right click and click Launch Instances of this AMI
Choose the Instance Type according to your needs and Budget
Select the KeyPair we created and an availability zone.
You may add custom information in User Data and then press Launch.
Click on tools icon in ElasticFox and set the Path for Putty. Also Enter the path to the ppk key we saved. This is required to launch putty directly from ElasticFox.
Go to the Security Groups tabs and add Group permissions to open port 22.
Now in the Instances right click on our newly created instance and select SSH to Public DNS Name. This will Open Putty and connect to the Server Shell using SSH.
Now we will assign an Elastic IP to this instance
Right Click on the instance and Copy the Instance ID to ClipBoard
Go to the Elastic IPs Tab and create new Elastic IP
Right click on the IP Address and Select Associate this Address
In the popup paste your Instance ID and Click OK
Next we attach an EBS volume. I suggest that you use RaidZ configuration with the EBS Volumes
For this Go to the Volumes and Snapshots Tab and create 3 volumes of the Same size.
Right click on the volumes and attach them to our Instance. Here you need to enter a number between 2-23 in the device text box.
Switch to the SSH console and Type the following commands
cd /dev/dsk
ls -l c4d*p0 [this will list all the disk devices including our EBS vol]
Check the number after c4d for the EBS devices
zpool create ebsp02 raidz c4d6p0 c4d7p0 c4d8p0
and your EBS Devices under ZFS with RaidZ configuration are ready to use.
Kick Your Stats Checking Addiction Or It Will Kill Your Blog
-
I have been blogger for almost a year. Over the past year I have learned
that to be a successful blogger you need an amazing amount of self
discipline. Whe...
2 hours ago
4 comments:
I've been fighting with recovering my zfs from ebs. I think my problem is that I don't have a way to sync the disks before detaching them.
Or, the problem could be how to properly reattach the zfs after a reboot. The file system appears to have (some of) the old data on it because the file system has less available space.
I thought I figured out what export and import did for zpools. However, it did not seem to help.
I am new to zfs, ebs and ec2. So, I am not surprised that I am having problems.
Please let me know if you have had any luck with your ebs experiments with zfs.
jack@flowertowntech.com
Just reading up on Solaris on Amazon EC2 so thanks for blog entry. I'm trying to get my head around Elastic IP's and Solaris Zones. Any joy assigning an IP address to a zone?
I don't think you can assign an Elastic IP to a zone. What you can do is assign an Eleastic IP to the global zone, and then use ipfilter to route traffic to the non-global zones. For more informaton, see:
http://blogs.sun.com/seano/entry/opensolaris_ec2_and_zones_a
Thanks, this was really helpful!
Post a Comment