You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Advanced tasks at Eucalyptus


list of ec2 commands


virtual cluster script, documentation is here: /usr/common/tig/virtualcluster/0.2.2/docs/README   
      skip: *on other systems, **Setting credentials*

  1. Log into carver.nersc.gov
    1. change shall to bash or python 2.4  will crash:  bash
  2. Load the Eucalyptus tools + virtual cluster tools: 
    1. module load tig && module load euca2ools
    2. module load tig virtualcluster
  3.  setup system variables & your credentials stored in your 'eucarc' script:
    source key-euca2-balewski-x509/eucarc  (for bash)
    make sure EUCA_KEY_DIR is set properly
  4.  create and format EBS volume:
    ec2-create-volume --size 5 --availability-zone euca
    VOLUME vol-82DB0796 5 euca creating 2010-12-17T20:24:45+0000
    1. check the volume is created
      euca-describe-volumes
      VOLUME vol-82DB0796 5 euca available 2010-12-17T20:24:45+0000
    2. Create an instance:  euca-run-instances -k balewski-euca emi-39FA160F  and check it runs:  euca-describe-instances
    3. Attach EBS volume to this instance : euca-attach-volume -i  i-508B097C -d /dev/vdb vol-82DB0796
      euca-attach-volume -i <instance-id> -d /dev/vdb <volumeid>
    4. ssh to this instance and format the EBS volume: ssh -i key-euca2-balewski-x509/balewski-euca.private  root@128.55.56.58
      yes | mkfs -t ext3 /dev/vdb
      mkdir /apps
      mount /dev/vdb /apps
    5. terminate this instance : euca-terminate-instances i-508B097C
  5. setup & deploy VM cluster using a common EBS volume
    1. Create a .conf on local machine and edit appropriately, following /usr/common/tig/virtualcluster/0.2.2/docs/sample-user.conf 
      cp  ...sample-user.conf  key-euca2-balewski-x509/virtualClusterA.conf , set properly : EBS_VOLUME_ID=vol-82DB0796
    2. export CLUSTER_CONF=/global/homes/b/balewski/key-euca2-balewski-x509/virtualClusterA.conf
    3.  

Trouble shooting:

  1. version of python whould be at least 2.5, to test it type:
    which python
    /usr/bin/env python
  2. sss
  • No labels