http://code.taobao.org/p/tb-common-utils/src/
[root@localhost ~]# history
1 mkdir oceanbase
2 ll
3 cd oceanbase/
4 yum update
5 ll
6 mkdir /work
7 chmod 777 work
8 chmod 777 /work
9 cd /work/
10 ll
11 svn checkout http://code.taobao.org/svn/OceanBase/
12 ll
13 gedit /etc/udev/rules.d/70-persistent-ipoib.rules OceanBase
14 gedit /etc/sysconfig/network-scripts/ifcfg-eth0
15 reboot
16 gedit /etc/sysctl.conf
17 /sbin/sysctl -p /etc/sysctl.conf
18 passwd admin
19 chmod u+w /etc/sudoers
20 gedit /etc/sudoers
21 chmod u-w /etc/sudoers
22 gedit /home/admin/.bashrc
23 source ~/.bashrc
24 exit
25 for disk in {1..8}; do mkdir -p /data/$disk/ups_data; done;
26 for disk in {1..8}; do mkdir -p /data/$disk; done;
27 cd /work/
28 ll
29 git clone https://github.com/alibaba/oceanbase_rpm_package
30 ll
31 cd oceanbase_rpm_package/
32 ll
33 cd Lib/
34 ll
35 rpm -ivh lzo-2.06-0.x86_64.rpm
36 rpm -ivh snappy-1.1.2-2.x86_64.rpm
37 c d..
38 cd ..
39 cd Package/
40 ll
41 sudo rpm --nodeps -ivh oceanbase-0.4.2.8-1502.el6.x86_64.rpm --prefix=/home/admin/oceanbase
42 cd ..
43 cd Script/
44 ll
45 cp oceanbase.conf.template deploy.conf
46 mv deploy.conf /home/admin/oceanbase/bin/
47 cd /home/admin/oceanbase/bin
48 ll
49 gedit deploy.conf
50 ./oceanbase.pl init --force -c 1 deploy.conf
51 yum install perl-autodie
52 ./oceanbase.pl init --force -c 1 deploy.conf
53 exit
54 ./oceanbase.pl init --force -c 1 deploy.conf
55 cd /home/admin/oceanbase/bin
56 ./oceanbase.pl init --force -c 1 deploy.conf
57 reboot
58 ./oceanbase.pl init --force -c 1 deploy.conf
59 cd ..
60 cd log
61 ll
62 cd ../bin
63 ll
64 cd run/
65 ll
66 cd ..
67 ./ups_admin
68 ll
69 ./rs_admin
70 ./oceanbase.pl init --force -c 1 deploy.conf
71 mkdir -p /home/admin/oceanbase/data
72 mkdir -p /home/admin/oceanbase/data/rs
73 mkdir -p /home/admin/oceanbase/data/rs_commitlog
74 mkdir -p /home/admin/oceanbase/data/ups_commitlog
75 mkdir -p /home/admin/oceanbase/data/ups_data/raid0
76 mkdir -p /home/admin/oceanbase/data/ups_data/raid1
77 mkdir -p /home/admin/oceanbase/data/ups_data/raid2
78 mkdir -p /home/admin/oceanbase/data/ups_data/raid3
79 ln -s /data/1/ups_data
80 /home/admin/oceanbase/data/ups_data/raid0/store0
81 ln -s /data/2/ups_data
82 /home/admin/oceanbase/data/ups_data/raid0/store1
83 ln -s /data/3/ups_data
84 /home/admin/oceanbase/data/ups_data/raid1/store0
85 ln -s /data/4/ups_data
86 /home/admin/oceanbase/data/ups_data/raid1/store1
87 ln -s /data/5/ups_data
88 /home/admin/oceanbase/data/ups_data/raid2/store0
89 ln -s /data/6/ups_data
90 /home/admin/oceanbase/data/ups_data/raid2/store1
91 ln -s /data/7/ups_data
92 /home/admin/oceanbase/data/ups_data/raid3/store0
93 ln -s /data/8/ups_data
94 /home/admin/oceanbase/data/ups_data/raid3/store1
95 ln -s /data/1/ups_data /home/admin/oceanbase/data/ups_data/raid0/store0
96 ln -s /data/2/ups_data /home/admin/oceanbase/data/ups_data/raid0/store1
97 ln -s /data/3/ups_data /home/admin/oceanbase/data/ups_data/raid1/store0
98 ln -s /data/4/ups_data /home/admin/oceanbase/data/ups_data/raid1/store1
99 ln -s /data/5/ups_data /home/admin/oceanbase/data/ups_data/raid2/store0
100 ln -s /data/6/ups_data /home/admin/oceanbase/data/ups_data/raid2/store1
101 ln -s /data/7/ups_data /home/admin/oceanbase/data/ups_data/raid3/store0
102 ln -s /data/8/ups_data /home/admin/oceanbase/data/ups_data/raid3/store1
103 mkdir -p /home/admin/oceanbase/data
104 for disk in {1..8}; do mkdir -p /data/$disk/obtest/sstable; done;
105 for disk in {1..8}; do ln -s /data/$disk /home/admin/oceanbase/data/$disk; done;
106 ./oceanbase.pl init --force -c 1 deploy.conf
107 ./single-machine-bootstrap init
108 cd ..
109 ll
110 cd tests/
111 ll
112 ./single-machine-bootstrap init
113 cd /work/
114 ll
115 cd oceanbase_rpm_package/
116 ll
117 cd Script/
118 ll
119 cd ..
120 ll
121 cd Package/
122 ll
123 cd ..
124 cd Lib
125 ll
126 cd ..
127 cd Doc/
128 ll
129 cd ..
130 ll
131 cd Lib
132 ll
133 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -llzo2 -o /tmp/a.out
134 cd /tmp
135 ./a.out
136 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -o /tmp/a.out -lsnappy
137 ./a.out
138 sudo yum install numactl-devel.x86_64
139 sudo yum install libaio-devel.x86_64
140 sudo yum install openssl-devel
141 sudo yum install readline-devel
142 sudo yum install ncurses-devel
143 sudo yum install mysql-devel
144 sudo yum install java-1.6.0-openjdk-devel
145 sudo mkdir /data
146 sudo chown admin /data
147 for disk in {1..8}; do mkdir -p /data/$disk; done;
148 svn checkout http://code.taobao.org/svn//tb-common-utils/trunk/
149 tb-common-utils
150 svn checkout http://code.taobao.org/svn//tb-common-utils/trunk/svn checkout http://code.taobao.org/svn//tb-common-utils/trunk/
151 cd /work/
152 svn checkout http://code.taobao.org/svn//tb-common-utils/trunk/tb-common-utils
153 svn checkout http://code.taobao.org/svn/tb-common-utils/
154 ll
155 cd tb-common-utils/
156 ll
157 cd trunk/
158 ll
159 sh build.sh
160 ll
161 cd rpm
162 l
163 ll
164 cd ..
165 cd tbnet
166 ll
167 ./configure
168 make
169 cd ..
170 cd tbsys/
171 ll
172 ./configure
173 make
174 ll
175 cd src
176 ll
177 ll *log.cpp
178 chmod 777 tblog.cpp
179 nano tblog.cpp
180 gedit tblog.cpp
181 cd ..
182 ll
183 ./configure
184 make
185 make install
186 cd ..
187 ll
188 cd tbnet
189 ll
190 ./configure
191 make
192 make install
193 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -o /tmp/a.out -
194 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -o /tmp/a.out -L$TBLIB_ROOT/lib -ltbnet -ltbsys
195 cd /tmp
196 ./a.out
197 ldconfig
198 ./a.out
199 cd /usr/lib64/
200 cd /work/
201 ll
202 cd tb-common-utils/
203 ll
204 cd tun
205 cd trunk/
206 ll
207 sh build.sh
208 cd /tmp
209 ll
210 ./a.out
211 cd /home/admin/tb-common-utils/
212 ll
213 cd lib/
214 ll
215 cp -R /usr/lib64/
216 cp -R * /usr/lib64/
217 cd /tmp/
218 ./a.out
219 cd /work/
220 l
221 ll
222 cd oceanbase_rpm_package/
223 ll
224 cd Package/
225 ll
226 sudo rpm --nodeps -ivh oceanbase-0.4.1.2-1105.el6.x86_64.rpm --
227 sudo rpm --nodeps -ivh oceanbase-0.4.2.8-1502.el6.x86_64.rpm prefix=/home/admin/oceanbase --force
228 rpm --nodeps -ivh oceanbase-0.4.2.8-1502.el6.x86_64.rpm prefix=/home/admin/oceanbase --force
229 cd /home/admin/oceanbase/
230 ll
231 cd bin
232 ./oceanbase.pl init --force -c 1 deploy.conf
233 rootserver -r 10.10.10.2:3500 -R 10.10.10.2:3500 -i boud0 -C
234 ./rootserver -r 10.10.80.95:3500 -R 10.10.80.95:3500 -i eth0 -C 1
235 ./updateserver -r 10.10.80.95:3500 -p 2700 -m 2700 -i eth0
236 ./chunkserver -r 10.10.80.95:3500 -p 2600 -n obtest -i eth0
237 ./mergeserver -r 10.10.80.95:3500 -p 2800 -z 3030 -i eth0
238 mysql
239 sudo yum install mysql
240 mysql
241 mysql -h 10.10.80.95 -P3030 -uadmin -padmin
242 mysql -P3030 -uadmin -padmin
243 ps -e|grep mergeserver
244 mysql -uadmin -padmin
245 mysql -P3030 -uadmin -padmin
246 mysql -h 127.0.0.1 -P3030 -uadmin -padmin
247 cd ..
248 ll
249 cd log
250 ll
251 cd run
252 ll
253 ./run
254 cd ..
255 cd log
256 ll
257 cd ..
258 cd run
259 ll
260 cd /home/admin/oceanbase
261 ll
262 cd bin
263 ll
264 ifconfig
265 cd /home/admin/oceanbase/
266 ./oceanbase.pl init --force -c 1 deploy.conf
267 cd bin
268 ./oceanbase.pl init --force -c 1 deploy.conf
269 gedit /home/admin/.bashrc
270 cd /work/
271 ll
272 svn checkout http://code.taobao.org/svn/tb-common-utils/
273 cd /home/admin/
274 ll
275 cd oceanbase/
276 ll
277 cd bin
278 ./oceanbase.pl init --force -c 1 deploy.conf
279 cd /data/
280 ll
281 cd 1
282 ll
283 cd ups_data/
284 ll
285 cd /data
286 cd /home/admin/oceanbase/
287 ll
288 mkdir data
289 cd data
290 mkdir cs
291 cd cs
292 mkdir
293 mkdir 1
294 mkdir 2
295 mkdir 3
296 mkdir 4
297 cd 1
298 mkdir obinstance
299 cd obinstance/
300 mkdir sstable
301 cd ..
302 ll
303 rm -rf 2 3 4
304 ll
305 cp -R 1 2
306 ll
307 cp -R 1 3
308 cp -R 1 4
309 ll
310 cd 2
311 ll
312 cd ..
313 cd cs
314 ll
315 cd ..
316 ll
317 mkdir cs_commitlog
318 mkdir ups_data
319 cd ups_data/
320 mkdir 1
321 cd 1
322 mkdir obinstance
323 cd obinstance/
324 mkdir sstable
325 cd ..
326 cp -R 1 2
327 ll
328 cd ..
329 mkdir ups_commitlog
330 mkdir storage_tablet_commitlog
331 cd ..
332 chown -R admin:admin data
333 cd /data
334 ll
335 ./build.sh
336 locale
337 gedit
338 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -llzo2 -o /tmp/a.out
339 /tmp/a.out
340 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -o /tmp/a.out -lsnappy
341 /tmp/a.out
342 cd ~
343 yum install numactl-devel.x86_64
344 yum install libaio-devel.x86_64
345 echo "int main(){ return 0;}" > /tmp/a.c && gcc /tmp/a.c -o /tmp/a.out -L$TBLIB_ROOT/lib -ltbnet -ltbsys
346 /tmp/a.out
347 cd $HOME/ob-install-dir
348 history