-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
406 lines (221 loc) · 11.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Huiba Li</title>
<meta name="author" content="Huiba Li">
<meta name="description" content="共享端口的IPMI设置 Mar 26th, 2014 IPMI可以让系统管理员远程控制服务器硬件,无论操作系统处于什么状态,甚至无论是否开机,
只要电源已接通,就可以接受控制,因而IPMI对于实验用途的服务器意义巨大。我们的集群之
前一直使用专用的IPMI网络,这需要额外的交换机、网线投入, …">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="http://lihuiba.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="//atom.xml" rel="alternate" title="Huiba Li" type="application/atom+xml">
</head>
<body >
<header>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item two-fifths lap-four-sixths palm-one-whole">
<a href="/" class="site-title">Huiba Li</a>
</div>
<div class="grid__item three-fifths lap-two-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li><a href="/">Home</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/contact/">Contact</a></li>
<li><a href="/cv/">C.V</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="listing">
<header>
<h1 class="beta">
<a href="/blog/2014/03/26/gong-xiang-duan-kou-de-ipmishe-zhi/">共享端口的IPMI设置</a>
</h1>
<div class="meta clearfix">
<time class="pull-left" datetime="2014-03-26T22:51:49+08:00" pubdate data-updated="true"><i class="icon-calendar"></i> Mar 26<span>th</span>, 2014</time>
</div>
</header>
<p>IPMI可以让系统管理员远程控制服务器硬件,无论操作系统处于什么状态,甚至无论是否开机,
只要电源已接通,就可以接受控制,因而IPMI对于实验用途的服务器意义巨大。我们的集群之
前一直使用专用的IPMI网络,这需要额外的交换机、网线投入,也需要额外的安装、维护投入,
而且会使线路杂乱而不利于管理。</p>
<p>这次我们新配置的集群打算使用共享端口及其线路的方式来使用IPMI,其基本原理是通过VLAN
复用eth0端口/线路,业务网和IPMI网分别运行在不同的VLAN当中。当eth0端口收到报文,
会先判断其VLAN ID,若与IPMI的ID一致,则将报文转发给IPMI子系统,否则交给正常的报
文处理逻辑。</p>
<p>当我兴致勃勃地进入BIOS,想给IPMI配置网络的时候,却发现只能修改IP地址、子网掩码和
网关,而网络则只能是“dedicated”,该选项是灰色,不能改。如下图所示:</p>
<p><img src="/images/ipmi-dedicated.jpg" width="512"></p>
<p>我怀疑“IPMI LAN Selection”选项不可改是因为主板集成的是比较新的万兆网卡,IPMI
相关功能尚不完善,于是暂时放弃。不过当晚在网上搜索资料时,无意中发现该网卡是支持
“IPMI passthrough”功能的,从字面看貌似相关功能应该是完备的,于是我决定再次尝试
一下。</p>
<p>这次我先在BIOS里设置好IPMI的静态IP地址、子网掩码和网关,然后通过IPMI专用端口连
接网络,再用浏览器打开IPMI的web配置界面,在Configuration / Networking页面里
找到了共享端口相关的设置,如下图所示。我将VLAN设置为“enable”,VLAN ID设置为“100”,
Lan Interface设置为“Share”,然后通过eth0端口和VLAN 100成功访问到了IPMI功能。</p>
<p><img src="/images/ipmi-shared.jpg" width="512"></p>
<p>配置好共享端口之后,再次进入BIOS就可以看到IPMI的网络端口已变成“Share LAN”,而专
用网络连接的状态变成“No Connect”。</p>
<p><img src="/images/ipmi-vlan.png" width="512"></p>
</article>
<hr>
<article class="listing">
<header>
<h1 class="beta">
<a href="/blog/2014/02/12/a-source-committing-issue-in-octopress-theme/">A source committing issue in oscailte theme</a>
</h1>
<div class="meta clearfix">
<time class="pull-left" datetime="2014-02-12T11:30:54+08:00" pubdate data-updated="true"><i class="icon-calendar"></i> Feb 12<span>th</span>, 2014</time>
</div>
</header>
<p>I’m using the oscailte theme for Octopress. When I try
to commit the source files to the repository, I come
across an error. I type <code>git add .</code>, and I get:</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>fatal: Not a git repository: sass/inuitcss/../../.git/modules/sass/inuitcss</span></code></pre></td></tr></table></div></figure>
<p>After googling the web, I find the fix: change the <code>gitdir</code> in <code>sass/inuitcss/.git</code> to</p>
<figure class='code'><figcaption><span>fixed gitdir</span><a href='http://github.com/coogie/oscailte/issues/23'>found at</a></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>gitdir: ../../.themes/oscailte/.git/modules/sass/inuitcss</span></code></pre></td></tr></table></div></figure>
<p>Done!</p>
</article>
<hr>
<article class="listing">
<header>
<h1 class="beta">
<a href="/blog/2014/02/11/github-pages/">GitHub Pages</a>
</h1>
<div class="meta clearfix">
<time class="pull-left" datetime="2014-02-11T10:19:39+08:00" pubdate data-updated="true"><i class="icon-calendar"></i> Feb 11<span>th</span>, 2014</time>
<div class="pull-left">
<i class="icon-tags"></i>
<ul class="tags unstyled">
<li><a href="/blog/categories/about/">about</a></li>
</ul>
</div>
</div>
</header>
<p>Github provides web site hosting service for projects as well as users or
organizations. The hosting service supports only static pages, so we have
to generate the .html files from markdown files before uploading them. The
page contents are also controlled by git, so uploading is done by <code>git
commit</code> and <code>git push</code>.</p>
<p>Project site can be automatically generated by an <strong>Automatic Page Generator</strong>
in <strong>repository setting</strong>. By convention, project site is located on the
project’s <strong>gh-pages</strong> branch. We can switch to that branch by <code>git checkout
gh-pages</code>. The site can be also manually created, by creating the gh-pages
branch. The site URL will be <a href="http://username.github.io/projectname/.">http://username.github.io/projectname/.</a></p>
<p>User or organization site is created by creating a repository named
<strong><em>username</em>.github.io</strong>, and the site URL will be
<a href="http://username.github.io/.">http://username.github.io/.</a></p>
<p>Github web site hosting service supports custom domain names. The detailed
instruction can be found at <a href="https://help.github.com/articles/setting-up-a-custom-domain-with-pages.">https://help.github.com/articles/setting-up-a-custom-domain-with-pages.</a></p>
<p>We can write blog using simple Markdown syntax, and use <strong>Jekyll</strong> to generate
.html files from markdown files. See <a href="http://jekyllrb.com/docs/quickstart/">http://jekyllrb.com/docs/quickstart/</a> for
detail. We can further use <strong>octopress</strong> to help us handling HTML templates,
CSS, Javascripts and setting up our configuration. See <a href="http://octopress.org/">http://octopress.org/</a>
for detail.</p>
<p>Other things about github pages, such as custom 404 page, can be found at
<a href="http://octopress.org/.">http://octopress.org/.</a></p>
</article>
<hr>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="social aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">
Follow me!
</h1>
<ul class="unstyled">
<li><a class="github" href="//github.com/lihuiba"><i class="icon-github"></i> Github</a></li>
<li><a class="linkedin" href="//linkedin.com/in/lihuiba"><i class="icon-linkedin-sign"></i> LinkedIn</a></li>
</ul>
</section>
<section id="recent-posts" class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">Recent Posts</h1>
<ul class="divided">
<li class="post">
<a href="/blog/2014/03/26/gong-xiang-duan-kou-de-ipmishe-zhi/">共享端口的IPMI设置</a>
</li>
<li class="post">
<a href="/blog/2014/02/12/a-source-committing-issue-in-octopress-theme/">A source committing issue in oscailte theme</a>
</li>
<li class="post">
<a href="/blog/2014/02/11/github-pages/">GitHub Pages</a>
</li>
</ul>
</section>
<section id="github-repos" class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">
GitHub Repos
<small class="pull-right">
<a class="btn" href="//github.com/lihuiba" title="@lihuiba on GitHub" target="_blank">
<i class="icon-external-link"></i>
</a>
</small>
</h1>
<ul id="gh_repos" class="divided">
<li class="loading">
<i class="icon-spinner icon-spin"></i>
</li>
</ul>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<p class="copyright">
All content by Huiba Li and licenced under <a href="//creativecommons.org/licenses/by-nc-sa/3.0/ie/">Creative Commons</a>.<br>
Code under <a href="//github.com/coogie/oscailte/blob/master/README.md">MIT Licence</a>.
</p>
</div>
</div>
</div>
</footer>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
<script defer src="/javascripts/octopress.js"></script>
<script>
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'lihuiba',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js"></script>
</body>
</html>