
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
script1 | ||||||||
| Line: 82 to 82 | ||||||||
Notice the order, it will always start osd.0 with ss1, after it reaches the osd.5 (6 osds), it will be ss2.
script2 | ||||||||
| Changed: | ||||||||
| < < | start and init example is included. | |||||||
| > > | see the example code of the init and start.
Create your own bash script accepting an input, e.g., run "ss 2 6"Your run script should contain something like this. | |||||||
| Deleted: | ||||||||
| < < | Create a new script accepting an argument, e.g., run ss 2 6 | |||||||
| Changed: | ||||||||
| < < | function run1() { | |||||||
| > > | #!/bin/bash .... #etc function func1() { | |||||||
| echo "makecephconfig: $1" ./makecephconfig $1 echo "init: $1" | ||||||||
| Line: 94 to 99 | ||||||||
| echo "start: $1 "full" ./start $1 "full" } | ||||||||
| Added: | ||||||||
| > > | func1 $1 ssh ss3 ceph osd pool set data size 1 ssh ss3 ceph osd pool set metadata size 1 #finally wait several seconds before mounting the ceph, etc. | |||||||
| Added: | ||||||||
| > > | you can then run a series of benchmark test, e.g.,
./run ss 1 2 ./run ss 1 4 ./run ss 1 6 #etc.. make sure for each test between, you drop caches, manipulate directories, dumps, etc | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < | **script1** | |||||||
| > > | script1 | |||||||
| makecephconfig is a simple script allowing you to create the ceph.conf in a way easy to test multiple hosts and OSDs. | ||||||||
| Line: 81 to 81 | ||||||||
| Notice the order, it will always start osd.0 with ss1, after it reaches the osd.5 (6 osds), it will be ss2. | ||||||||
| Changed: | ||||||||
| < < | **script2** | |||||||
| > > | script2start and init example is included. Create a new script accepting an argument, e.g.,run ss 2 6
function run1() {
echo "makecephconfig: $1"
./makecephconfig $1
echo "init: $1"
./init $1
echo "start: $1 "full"
./start $1 "full"
}
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > | **script1** | |||||||
makecephconfig is a simple script allowing you to create the ceph.conf in a way easy to test multiple hosts and OSDs.
| ||||||||
| Line: 79 to 81 | ||||||||
| Notice the order, it will always start osd.0 with ss1, after it reaches the osd.5 (6 osds), it will be ss2. | ||||||||
| Added: | ||||||||
| > > | **script2** | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
./makecephconfig ss 3 1This will make a new ceph.conf from loading ceph. ss, 3 nodes and 1 osd each (total 3 osds) ./makecephconfig ss 3 3produces 3 hosts and 3 osds each (total 9 osds) ./makecephconfig ss 6 2produces 6 hosts and 2 osds each (total 12 osds) ./makecephconfig ss 2 6produces 2 hosts and 6 osds each (total 12 osds) The last example will produce the following
[osd.0]
host = ss1
osd data = /data/osd.11
osd journal = /data/osd.11/journal
[osd.1]
host = ss1
osd data = /data/osd.12
osd journal = /data/osd.12/journal
[osd.2]
host = ss1
osd data = /data/osd.13
osd journal = /data/osd.13/journal
[osd.3]
host = ss1
osd data = /data/osd.14
osd journal = /data/osd.14/journal
[osd.4]
host = ss1
osd data = /data/osd.15
osd journal = /data/osd.15/journal
[osd.5]
host = ss1
osd data = /data/osd.16
osd journal = /data/osd.16/journal
[osd.6]
host = ss2
osd data = /data/osd.21
osd journal = /data/osd.21/journal
[osd.7]
host = ss2
osd data = /data/osd.22
osd journal = /data/osd.22/journal
[osd.8]
host = ss2
osd data = /data/osd.23
osd journal = /data/osd.23/journal
[osd.9]
host = ss2
osd data = /data/osd.24
osd journal = /data/osd.24/journal
[osd.10]
host = ss2
osd data = /data/osd.25
osd journal = /data/osd.25/journal
[osd.11]
host = ss2
osd data = /data/osd.26
osd journal = /data/osd.26/journal
Notice the order, it will always start osd.0 with ss1, after it reaches the osd.5 (6 osds), it will be ss2.
| |||||||