Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
194c0710
Commit
194c0710
authored
Oct 21, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a for look for repetative code.
parent
b9c236a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
cloudformation_templates/edx-reference-architecture.json
+6
-10
No files found.
cloudformation_templates/edx-reference-architecture.json
View file @
194c0710
...
...
@@ -4930,22 +4930,18 @@
"#Install lvm2 so we can create logical volumes.
\n
"
,
"apt-get -y install lvm2 mdadm
\n
"
,
"## Waiting for EBS mounts to become available
\n
"
,
"
while [ ! -e /dev/xvdh ]; do echo waiting for /dev/xvdh to attach; sleep 10; done
\n
"
,
"
while [ ! -e /dev/xvdi ]; do echo waiting for /dev/xvdi
to attach; sleep 10; done
\n
"
,
"
while [ ! -e /dev/xvdj ]; do echo waiting for /dev/xvdj to attach; sleep 10; don
e
\n
"
,
"
while [ ! -e /dev/xvdk ]; do echo waiting for /dev/xvdk to attach; sleep 10;
done
\n
"
,
"## Waiting for EBS mounts to become available
and set their read ahead.
\n
"
,
"
for device in xvdh xvdi xvdj xvdk; do
\n
"
,
"
while [ ! -e /dev/$device ]; do echo waiting for /dev/$device
to attach; sleep 10; done
\n
"
,
"
blockdev --setra 128 /dev/$devic
e
\n
"
,
"done
\n
"
,
"## Create RAID10 and persist configuration
\n
"
,
"mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=4 /dev/xvdh /dev/xvdi /dev/xvdj /dev/xvdk | tee /tmp/mdadm.log 2>&1
\n
"
,
"echo '`mdadm --detail --scan`' | tee -a /etc/mdadm.conf
\n
"
,
"## Set read-ahead on
each
device
\n
"
,
"## Set read-ahead on
the new
device
\n
"
,
"blockdev --setra 128 /dev/md0
\n
"
,
"blockdev --setra 128 /dev/xvdh
\n
"
,
"blockdev --setra 128 /dev/xvdi
\n
"
,
"blockdev --setra 128 /dev/xvdj
\n
"
,
"blockdev --setra 128 /dev/xvdk
\n
"
,
"## Create physical and logical volumes
\n
"
,
"dd if=/dev/zero of=/dev/md0 bs=512 count=1
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment