Changes between Version 24 and Version 25 of InstallationGuidelines/Amazon
- Timestamp:
- 03/14/12 15:00:11 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Amazon
v24 v25 132 132 1Gb EBS is too small for Eden - need to grow to 3Gb 133 133 {{{ 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 135 set EC2_URL=https://ec2.us-east-1.amazonaws.com 136 set ZONE=us-east-1c 137 set DEV=i-950895f1 138 set OLD=vol-31f5a35d 138 139 # Stop Host 139 140 ec2stop %DEV% 140 141 # Create a snapshot 141 ec2-create-snapshot vol-e189e88c 142 ec2-create-snapshot %OLD% 143 # Record the snapshot ID 144 set SNAPSHOT=snap-63f89d08 142 145 # Create new volume from snapshot 143 ec2-create-volume -z %ZONE% --size 3 --snapshot snap-63f89d08 146 ec2-create-volume -z %ZONE% --size 3 --snapshot %SNAPSHOT% 147 # Record the new Volume ID 148 set NEW=vol-a9c2a3c4 144 149 # Delete Snapshot (if no data in yet) 145 ec2-delete-snapshot snap-63f89d08150 ec2-delete-snapshot %SNAPSHOT% 146 151 # Attach new volume as secondary 147 ec2-attach-volume -i %DEV% vol-a9c2a3c4-d /dev/sdb1152 ec2-attach-volume -i %DEV% %NEW% -d /dev/sdb1 148 153 # Start Host 149 154 ec2start %DEV% … … 158 163 ec2stop i-c75af292 159 164 # 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 165 ec2-detach-volume -i %DEV% %OLD% 166 ec2-detach-volume -i %DEV% %NEW% 164 167 # Attach volume as boot 165 168 ec2-attach-volume -i %DEV% vol-a9c2a3c4 -d /dev/sda1 166 169 # Attach old volume for /var/log 167 ec2-attach-volume -i %DEV% vol-e189e88c -d /dev/sdb1 170 ec2-attach-volume -i %DEV% %OLD% -d /dev/sdb1 171 # OR Delete old volume 172 #ec2-delete-volume %OLD% 168 173 # Start Host 169 174 ec2start %DEV%