Changes between Version 24 and Version 25 of InstallationGuidelines/Amazon


Ignore:
Timestamp:
03/14/12 15:00:11 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Amazon

    v24 v25  
    1321321Gb EBS is too small for Eden - need to grow to 3Gb
    133133{{{
    134 # --region ap-southeast-1
    135 set EC2_URL=https://ec2.ap-southeast-1.amazonaws.com
    136 set ZONE=ap-southeast-1b
    137 set DEV=i-9546edc0
     134# Settings for Instance
     135set EC2_URL=https://ec2.us-east-1.amazonaws.com
     136set ZONE=us-east-1c
     137set DEV=i-950895f1
     138set OLD=vol-31f5a35d
    138139# Stop Host
    139140ec2stop %DEV%
    140141# Create a snapshot
    141 ec2-create-snapshot vol-e189e88c
     142ec2-create-snapshot %OLD%
     143# Record the snapshot ID
     144set SNAPSHOT=snap-63f89d08
    142145# Create new volume from snapshot
    143 ec2-create-volume -z %ZONE% --size 3 --snapshot snap-63f89d08
     146ec2-create-volume -z %ZONE% --size 3 --snapshot %SNAPSHOT%
     147# Record the new Volume ID
     148set NEW=vol-a9c2a3c4
    144149# Delete Snapshot (if no data in yet)
    145 ec2-delete-snapshot snap-63f89d08
     150ec2-delete-snapshot %SNAPSHOT%
    146151# Attach new volume as secondary
    147 ec2-attach-volume -i %DEV% vol-a9c2a3c4 -d /dev/sdb1
     152ec2-attach-volume -i %DEV% %NEW% -d /dev/sdb1
    148153# Start Host
    149154ec2start %DEV%
     
    158163ec2stop i-c75af292
    159164# Unattach volumes
    160 ec2-detach-volume -i %DEV% vol-e189e88c
    161 ec2-detach-volume -i %DEV% vol-a9c2a3c4
    162 # Delete old volume
    163 ec2-delete-volume vol-e189e88c
     165ec2-detach-volume -i %DEV% %OLD%
     166ec2-detach-volume -i %DEV% %NEW%
    164167# Attach volume as boot
    165168ec2-attach-volume -i %DEV% vol-a9c2a3c4 -d /dev/sda1
    166169# Attach old volume for /var/log
    167 ec2-attach-volume -i %DEV% vol-e189e88c -d /dev/sdb1
     170ec2-attach-volume -i %DEV% %OLD% -d /dev/sdb1
     171# OR Delete old volume
     172#ec2-delete-volume %OLD%
    168173# Start Host
    169174ec2start %DEV%