17
|
1 ## VM 2 node から計測
|
|
2
|
|
3 /media/fcs 以下に
|
|
4
|
|
5 gateway/fedora20_09.xml
|
|
6 gateway/fedora20_09.img
|
|
7
|
|
8 gateway2/fedora20_10.xml
|
|
9 gateway2/fedora20_10.img
|
|
10
|
|
11 をそれぞれ作成
|
|
12
|
|
13 でそれぞれ実行
|
|
14
|
|
15 gateway2 上での例
|
|
16 virsh define /media/fcs/gateway2/fedora20_10.xml
|
|
17 virsh start fedora20_10
|
|
18
|
|
19
|
|
20 ansible を実行する host に sshconfig.counttime を作成
|
|
21 鍵はすべて ansible をつかう client におく
|
|
22 このファイルも client に。
|
|
23
|
|
24 Host gateway
|
|
25 HostName gateway
|
|
26 IdentityFile ~/.ssh/bldsv
|
|
27 User xxxxx
|
|
28 Host gateway2
|
|
29 HostName gateway2
|
|
30 IdentityFile ~/.ssh/bldsv
|
|
31 User xxxxx
|
|
32 Host 192.168.122.18
|
|
33 User xxx
|
|
34 Identityfile counttime
|
|
35 Proxycommand ssh -F sshcondig.counttime gateway nc -w 120 %h %p
|
|
36
|
|
37
|
|
38 各 VM の ip address を知りたい
|
|
39
|
|
40 /var/lib/libvirt/dnsmasq/default.leases
|
|
41
|
|
42 からとれる
|
|
43 中身はこんな感じ
|
|
44
|
|
45 1421178594 52:54:00:44:02:54 192.168.122.18 * 01:52:54:00:44:02:54
|
|
46
|
|
47 そういえば raw だった…
|
|
48
|
|
49 qemu-img convert -O qcow2 fedora20_09.img fedora20_09.qcow2
|
|
50
|
|
51 というわけで qcow2 へ変換
|
|
52
|
|
53 filebench の測定結果を正しくするため、
|
|
54
|
|
55 echo 0 > /proc/sys/kernel/randomize_va_space
|
|
56
|
|
57 しとく
|
|
58
|
|
59 その間に、なんとかかんとかに hydra を install
|
|
60 yum install hydra
|
|
61
|
|
62 gateway2 の qcow2 形式の測定結果
|
|
63 あんまり raw と変わらない感ある
|
|
64
|
|
65 statfile1 15995ops 266ops/s 0.0mb/s 0.2ms/op 2216us/op-cpu [0ms - 1842ms]
|
|
66 deletefile1 16001ops 267ops/s 0.0mb/s 4.9ms/op 5053us/op-cpu [0ms - 2983ms]
|
|
67 closefile3 16011ops 267ops/s 0.0mb/s 0.0ms/op 2162us/op-cpu [0ms - 6ms]
|
|
68 readfile1 16017ops 267ops/s 33.8mb/s 23.3ms/op 4302us/op-cpu [0ms - 2322ms]
|
|
69 openfile2 16020ops 267ops/s 0.0mb/s 0.3ms/op 2232us/op-cpu [0ms - 1842ms]
|
|
70 closefile2 16023ops 267ops/s 0.0mb/s 0.0ms/op 2148us/op-cpu [0ms - 4ms]
|
|
71 appendfilerand1 16025ops 267ops/s 2.1mb/s 38.2ms/op 6767us/op-cpu [0ms - 2407ms]
|
|
72 openfile1 16031ops 267ops/s 0.0mb/s 0.1ms/op 2205us/op-cpu [0ms - 68ms]
|
|
73 closefile1 16033ops 267ops/s 0.0mb/s 0.0ms/op 2132us/op-cpu [0ms - 6ms]
|
|
74 wrtfile1 16035ops 267ops/s 32.9mb/s 1.3ms/op 2710us/op-cpu [0ms - 781ms]
|
|
75 createfile1 16041ops 267ops/s 0.0mb/s 11.4ms/op 2653us/op-cpu [0ms - 2284ms]
|
|
76 1037: 95.813: IO Summary: 176232 ops, 2936.273 ops/s, (267/534 r/w), 68.8mb/s, 433us cpu/op, 26.5ms latency
|
|
77
|
|
78 gateway でも動かす
|
|
79
|
|
80 IP address を調べる
|
|
81 192.168.122.18
|
|
82
|
|
83 鍵作成
|
|
84 .ssh/counttime
|
|
85 .ssh/counttime.pub
|
|
86
|
|
87 gateway gateway2 で、
|
|
88 scp ~/.ssh/counttime.pub xxx@192.168.122.18:
|
|
89
|
|
90 送信。
|
|
91
|
|
92 gateway gateway2 両方の VM fedora20_XX で、いつものやつを
|
|
93
|
|
94 mkdir .ssh
|
|
95 chmod 700 .ssh
|
|
96 mv counttime.pub .ssh
|
|
97 touch .ssh/authorized_keys
|
|
98 cat .ssh/counttime.pub > .ssh/authorized_keys
|
|
99 chmod 600 .ssh/authorized_keys
|
|
100
|
|
101 これで鍵を使って pass なしで login 可能に
|
|
102
|
|
103
|
|
104
|