Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log into carver.nersc.gov
    change shell to  bash  or python  will crash
  2. Load the Eucalyptus tools + virtual cluster tools, order of loading matters
    module load tig virtualcluster euca2ools  ; module load python/2.7.1 ; module load screen screen
  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  (Ubuntu) and check it runs:  euca-describe-instances | sort -k 4 | grep run 
    3.     STAR VM w/ SL10keuca-run-instances -k balewski-euca -t c1.xlarge emi-48080D8D
    4. 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>
    5. ssh to this instance and format the EBS volume: ssh -i ~/key-euca2-balewski-x509/balewski-euca.private  root@128.55.70.203
    6. yes | mkfs -t ext3 /dev/vdb
      mkdir /apps
      mount /dev/vdb /apps
    7. terminate this instance : euca-terminate-instances i-508B097C
  5. re-mount already formatted EBS disk to a single node## start VM, attach volume## ssh to VM, do mkdir /apps;mount /dev/vdb /apps
  6. to mount 2nd EBS volume to the same machine you need it first format as above, next mount it with different: /dev/vdc & mount as /someName
  7. setup & deploy VM cluster using a common EBS volume
    1. Create a .conf on local machine and edit appropriately, following $VIRTUALCLUSTER_HOME/docs/sample-user.conf 
      cp  ...sample-user.conf  /global/u2/b/balewski/.cloud/nersc/user.conf , set properly : EBS_VOLUME_ID=vol-82DB0796
    2. export CLUSTER_CONF=/global/u2/b/balewski/.cloud/nersc/user.conf
    3.  launch your 3-nodes cluster, it will be named 'balewski-cent' , do: vc-launcher newCluster 3
    4. after many minutes check if # launched instances matches, oly head node will have good IP , do euca-describe-instances
    5. ssh to the head node, do  ssh -i ~/key-euca2-balewski-x509/balewski-euca.private root@128.55.56.49
    6. ssh to a worker node from the head node, do : ssh root@192.168.2.132
    7. verify the EBS disk is visible, do : cd /apps/; ls -l
  8. add nodes to existing cluster : vc-launcher addNodes 4

...