<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>New MAIDSAN Server Diary &#187; 自宅サーバ</title>
	<atom:link href="http://blog.maidsan.tk/category/pc/%e8%87%aa%e5%ae%85%e3%82%b5%e3%83%bc%e3%83%90/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.maidsan.tk</link>
	<description>とあるサーバエンジニアのログ置き場</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:32:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress3.0にアップデート&amp;WPtouch導入</title>
		<link>http://blog.maidsan.tk/2010/06/28/580</link>
		<comments>http://blog.maidsan.tk/2010/06/28/580#comments</comments>
		<pubDate>Sun, 27 Jun 2010 16:09:08 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[自宅サーバ]]></category>
		<category><![CDATA[WordPress WPtouch]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/2010/06/28/580</guid>
		<description><![CDATA[巷でWordPress3.0のリリースのニュースがあったのでmaidsan.tkでもアップデートすることにした。
ついでに最近外ではiPod touch中心なのでWPtouchを導入してみる。
PCからじゃわからないと思 [...]]]></description>
			<content:encoded><![CDATA[<p>巷でWordPress3.0のリリースのニュースがあったのでmaidsan.tkでもアップデートすることにした。<br />
ついでに最近外ではiPod touch中心なのでWPtouchを導入してみる。<br />
PCからじゃわからないと思うけどiPhone系では↓のように見える</p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2010/06/p_480_320_5557201F-DA61-4DD3-AE41-D5274866A3CF.jpeg"><img src="http://blog.maidsan.tk/wp-content/uploads/2010/06/p_480_320_5557201F-DA61-4DD3-AE41-D5274866A3CF.jpeg" alt="" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2010/06/28/580/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UPSのバッテリー交換完了</title>
		<link>http://blog.maidsan.tk/2009/08/13/376</link>
		<comments>http://blog.maidsan.tk/2009/08/13/376#comments</comments>
		<pubDate>Thu, 13 Aug 2009 08:43:33 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=376</guid>
		<description><![CDATA[家からなんかやたらに重い荷物が届いているというので、帰ってみると、
秋月電子に発注した、APC SU1400J用の互換バッテリー(WP22-12)が届いてた。


さっそく、バッテリーの交換作業に移る。
ケーブル類やヒュ [...]]]></description>
			<content:encoded><![CDATA[<p>家からなんかやたらに重い荷物が届いているというので、帰ってみると、<br />
秋月電子に発注した、APC SU1400J用の互換バッテリー(WP22-12)が届いてた。</p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0423.jpg" class="thickbox" title="WP22-12"><img src="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0423.thumbnail.jpg" alt="WP22-12" width="200" height="126" class="attachment wp-att-377 " /></a></p>
<p><span id="more-376"></span><br />
さっそく、バッテリーの交換作業に移る。<br />
ケーブル類やヒューズは、元のバッテリーからの流用～</p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0425.jpg" class="thickbox" title="ケーブルは流用～"><img src="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0425.thumbnail.jpg" alt="ケーブルは流用～" width="200" height="196" class="attachment wp-att-378" /></a></p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0426.jpg" class="thickbox" title="100Aヒューズの取り付け"><img src="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0426.thumbnail.jpg" alt="100Aヒューズの取り付け" width="200" height="112" class="attachment wp-att-379" /></a></p>
<p>後は、UPSから延びるケーブルとバッテリーのケーブルを接続し、UPSの中に放り込む。<br />
ヒューズか出っ張ってるので、金属のカバーをねじ止めできないのだが、<br />
無理やりねじ止めして閉める。</p>
<p>後は、電源差し込んで、Testボタンを押すだけ。</p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0441.jpg" class="thickbox" title="交換完了～"><img src="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0441.thumbnail.jpg" alt="交換完了～" width="147" height="200" class="attachment wp-att-385 " /></a></p>
<p>特にバッテリーが加熱することもなく、問題なさそうに見える。<br />
少なくても、2年以上は持ってほしい物だ(´・ω・｀)</p>
<p>ちなみに100Aヒューズは<a href="http://tensho-dengen.com/">天翔電源製作所</a>にメールで、<br />
単品で購入できないかと相談したら売ってくれた。<br />
他にも、自動車用のバッテリーを取り扱ってる店(オートバックスとかホームセンター)ならあるかもしれない。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/08/13/376/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>帰ってみたら部屋から異臭が…</title>
		<link>http://blog.maidsan.tk/2009/08/11/366</link>
		<comments>http://blog.maidsan.tk/2009/08/11/366#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:28:14 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=366</guid>
		<description><![CDATA[仕事をそろそろ片付けようかなと思った19時ごろ、不意に自宅から電話が掛かってきた。
なんでも、自分の部屋からゴムが焼けたような匂いがすると！
急いで帰ってきてみると、ゴムというよりはプラスチックが焼け焦げた匂いで、
匂い [...]]]></description>
			<content:encoded><![CDATA[<p>仕事をそろそろ片付けようかなと思った19時ごろ、不意に自宅から電話が掛かってきた。<br />
なんでも、自分の部屋からゴムが焼けたような匂いがすると！</p>
<p>急いで帰ってきてみると、ゴムというよりはプラスチックが焼け焦げた匂いで、<br />
匂いの元を辿ると、UPS(SU1400J)からでていて、バッテリがー異常なまでに熱を持っていた。<br />
そして、異臭の原因はバッテリーの熱でプラスチックで覆われた、ヒューズの一部が溶けていた(ﾟДﾟ；<br />
このままで家をバーベキューにしかねないので、バッテリーを抜くことにした。</p>
<p>ひとまず、秋月でWP22-12を2本発注したので、<br />
到着次第、交換する予定～</p>
<p>それまでUPSなしでの運用となるけど(´・ω・｀)</p>
<p>■参考URL<br />
<a href="http://akizukidenshi.com/catalog/g/gB-00020/">完全密封型鉛蓄電池 （１２Ｖ ２２Ａｈ）　ＷＰ２２－１２</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/08/11/366/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UPSのバッテリーがお亡くなりました…</title>
		<link>http://blog.maidsan.tk/2009/08/06/353</link>
		<comments>http://blog.maidsan.tk/2009/08/06/353#comments</comments>
		<pubDate>Wed, 05 Aug 2009 17:04:18 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=353</guid>
		<description><![CDATA[常駐先の会社は水曜日が定時退社日なのだが、
久々に定時で帰れる目処が立ったので、
足早に家に帰ると、なにやら自分の部屋からピーブ音が鳴り響いてた…
ピーブ音の正体は、サーバマシンの下に鎮座しているUPS(SU1400J) [...]]]></description>
			<content:encoded><![CDATA[<p>常駐先の会社は水曜日が定時退社日なのだが、<br />
久々に定時で帰れる目処が立ったので、<br />
足早に家に帰ると、なにやら自分の部屋からピーブ音が鳴り響いてた…</p>
<p>ピーブ音の正体は、サーバマシンの下に鎮座しているUPS(<a href="http://images.google.co.jp/images?hl=ja&#038;safe=off&#038;client=firefox-a&#038;rls=org.mozilla:ja:official&#038;hs=jMP&#038;q=APC%20SU1400&#038;lr=&#038;um=1&#038;ie=UTF-8&#038;sa=N&#038;tab=wi">SU1400J</a>)で、<br />
どうやらバッテリー交換ランプが点灯している模様。。。。。</p>
<p><a href="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0221.jpg" class="thickbox" title="SU1400J"><img src="http://blog.maidsan.tk/wp-content/uploads/2009/08/DSC_0221.jpg" alt="SU1400J" width="150" height="141" class="attachment wp-att-352 " /></a><br />
<span id="more-353"></span></p>
<p>このUPSは、2年程前にヤフオクで4000円程で購入したもので、<br />
買った当時、<a href="http://www.tensho-dengen.com/index.html">ここから</a>倉庫保管期限切れの純正バッテリーに換装しているものだ。<br />
換装日が2007年8月12日となっており、2年持たなかった事になる…<br />
やはり、保管期限切れのバッテリー(8000円程)+部屋の温度が高いのがまずかっただろうか(´Д⊂ </p>
<p>ひとまず、この状態をなんとかせねばならんのだが、<br />
純正のバッテリーはRBC7Lは、純正品で40000円以上もするものであり、<br />
個人レベルでは費用対効果を考えても割にあわないものなのだ⊂⌒~⊃｡Д｡)⊃<br />
保管切れ品とはいえ、純正品が2年持たなかったのも×</p>
<p>つーことで、純正より安い互換バッテリーの候補が以下の二つ</p>
<p>・<a href="http://www.tensho-dengen.com/lhm15-12.html">新神戸電機 LHM15-12(13年長寿命タイプ)</a>　25000円<br />
・<a href="http://akizukidenshi.com/catalog/g/gB-00020/">W22-12(台湾製)</a>　12000円</p>
<p>ようは、高信頼の日本製か、コストパフォーマンス重視の台湾製。<br />
日本製は13年の高寿命を謳っているが、劣悪な環境で運用すると4年くらいしか持たないらｃ<br />
そう考えると、WP22-12でいいかなと思っている。<br />
後は、バッテリーに適合した100Aヒューズの入手先が問題になるのだが…</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/08/06/353/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>はじめて役に立った死活監視システム(パトロールクラリス)</title>
		<link>http://blog.maidsan.tk/2009/04/24/292</link>
		<comments>http://blog.maidsan.tk/2009/04/24/292#comments</comments>
		<pubDate>Thu, 23 Apr 2009 15:01:06 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=292</guid>
		<description><![CDATA[普段会社勤めで、勤務先でもサーバと格闘していると、
中々自宅のサーバの管理まで手が回らなくなる。
おまけに、Blogの更新頻度もあまり高くないので、サーバがダウンしても気づきにくい物だ。
そんな時、死活監視によるアラート [...]]]></description>
			<content:encoded><![CDATA[<p>普段会社勤めで、勤務先でもサーバと格闘していると、<br />
中々自宅のサーバの管理まで手が回らなくなる。<br />
おまけに、Blogの更新頻度もあまり高くないので、サーバがダウンしても気づきにくい物だ。<br />
そんな時、死活監視によるアラートメールは自宅サーバ運営者には便利である。</p>
<p>前回ダウンした時は、丸1日障害に気づかなかったが、<br />
今回はダウンから3時間で復旧することができた。<br />
めんどくさがりやな管理者ほど死活監視は重要だと思われる。<br />
<span id="more-292"></span><br />
ちなみに監視メールは次のような形でくる。<br />
*********************監視メール本文*********************<br />
EZURL監視でアラートを検知しました。<br />
検知内容：タイムアウトが発生しました。(URL-E001)<br />
発生日時：2009-04-23 20:39:00<br />
対象機器：blog.maidsan.tk(58.13.28.68)<br />
↓現在の監視状況はこちら!↓</p>
<p>https://patrolclarice.jp/free/ctrl.php/report.nrep?op=</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
※このメールは送信専用メールアドレスから配信されています。<br />
このままご返信いただいてもお答えできませんのでご了承ください。<br />
&#8211;PatrolClariceFree&#8211;<br />
***********************************************************</p>
<p>☆<a href="http://patrolclarice.jp/">patrolclarice</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/04/24/292/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressの定期バックアップ</title>
		<link>http://blog.maidsan.tk/2009/03/17/248</link>
		<comments>http://blog.maidsan.tk/2009/03/17/248#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:32:42 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[自宅サーバ]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=248</guid>
		<description><![CDATA[WordPressのバックアップについての技術メモ。
WordPressを運用する上で、バックアップが必要なのは以下の郡。
1. WordPressのDB(MySQL)
2. /(WordPressPath)/wp-co [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressのバックアップについての技術メモ。</p>
<p>WordPressを運用する上で、バックアップが必要なのは以下の郡。</p>
<p>1. WordPressのDB(MySQL)<br />
2. /(WordPressPath)/wp-content/uploads/ 以下にあるファイル<br />
3. /(WordPressPath)/　以下のファイル全部<br />
<span id="more-248"></span><br />
バックアップの優先度は当然、DBが一番に優先される。</p>
<p>2番目は、記事中の画像などがアップロードされるuploadsディレクトリ。<br />
これも、DB程ではないにしろ、高頻度でバックアップが必要。</p>
<p>3番目は、WordPress全体。<br />
プラグインディレクトリの中身は、頻繁でないにしろ、<br />
変化があるものなので、1ヶ月に一回か、数ヶ月に一回のレベルでバックアップを実行する。</p>
<p>DBのバックアップは、プラグインで自動化してくれるものもあるが、<br />
maidsan.tkではスクリプトを書いて、crontabに設定を書いて回してる。</p>
<p>以下、DB自動バックアップスクリプト。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">################################################################</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#       MySQL_DUMP Shell</span>
<span style="color: #666666; font-style: italic;">#                               Ver 1.1 AD2009 02.17</span>
<span style="color: #666666; font-style: italic;">#                               Ver 1.0 AD2008 11.12</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">################################################################</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Edit here</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのアドレス・ホスト名</span>
<span style="color: #007800;">DB_HOST</span>=<span style="color: #ff0000;">&quot;localhost&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのユーザー名</span>
<span style="color: #007800;">DB_USER</span>=<span style="color: #ff0000;">&quot;hogehoge&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのパスワード</span>
<span style="color: #007800;">DB_PASSWD</span>=<span style="color: #ff0000;">&quot;hugahuga&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBの名前</span>
<span style="color: #007800;">DB_NAME</span>=<span style="color: #ff0000;">&quot;db_name&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># バックアップ用ディレクトリ</span>
<span style="color: #007800;">BACKUP_DIR</span>=<span style="color: #ff0000;">&quot;/home/hoge/SQL_DUMP&quot;</span>
<span style="color: #007800;">NFS_DAYS_DIR</span>=<span style="color: #ff0000;">&quot;/mnt/file1/DB_BACKUP/web/days&quot;</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Compornent</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #007800;">PATH_DATE</span>=<span style="color: #ff0000;">&quot;/bin/date&quot;</span>
<span style="color: #007800;">DATE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">$PATH_DATE</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">LOWTATE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">$PATH_DATE</span> <span style="color: #660033;">--date</span> <span style="color: #ff0000;">'8 days ago'</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Main</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup MySQL_DUMP to Local</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$BACKUP_DIR</span>
mysqldump <span style="color: #660033;">-h</span> <span style="color: #007800;">$DB_HOST</span> <span style="color: #660033;">-u</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_USER</span>&quot;</span> <span style="color: #660033;">--password</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_PASSWD</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql
<span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup MySQL_DUMP to NFS</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NFS_DAYS_DIR</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Lowate Backup to NFS</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$NFS_DAYS_DIR</span>
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2</pre></div></div>

<p>↑のスクリプトは、バックアップを一週間前のものまで保存し、<br />
それより以前のものは破棄するようにしてある。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/03/17/248/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>監視サーバ兼DNSサーバにも障害</title>
		<link>http://blog.maidsan.tk/2009/03/05/205</link>
		<comments>http://blog.maidsan.tk/2009/03/05/205#comments</comments>
		<pubDate>Thu, 05 Mar 2009 14:58:25 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=205</guid>
		<description><![CDATA[3月1日に長期に渡るWEBサーバの障害が発生して間もない今日、
監視サーバ兼内向きDNSサーバのtallahasseeサーバにも障害が発生した。
このサーバーは外向きにはサービスを提供していないので、
WEBサーバには特 [...]]]></description>
			<content:encoded><![CDATA[<p>3月1日に長期に渡るWEBサーバの障害が発生して間もない今日、<br />
監視サーバ兼内向きDNSサーバのtallahasseeサーバにも障害が発生した。<br />
このサーバーは外向きにはサービスを提供していないので、<br />
WEBサーバには特に影響なし。</p>
<p>症状も、突然のフリーズ。<br />
前回のWEBサーバといい障害の発生頻度が多すぎるぞ(&#8216;A｀)<br />
tallahasseeサーバのOSはDebian 5.0 lennyで、<br />
WEBサーバのjacksonvilleサーバはCentOS 5,2。<br />
OSの固有の問題ではないと思うので、<br />
XenServerが怪しいと思っているが。。。。<br />
Hotfix 2 for XenServer 5.0.0がリリースされているみたいので、<br />
パッチを適用して様子みてみるかな。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/03/05/205/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressって実は重い？</title>
		<link>http://blog.maidsan.tk/2009/02/19/177</link>
		<comments>http://blog.maidsan.tk/2009/02/19/177#comments</comments>
		<pubDate>Thu, 19 Feb 2009 04:00:33 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=177</guid>
		<description><![CDATA[ローカルネットワーク内でWPに接続してるにもかかわらず、
ページが開くのに若干もたつきがあるから、
試しにApache benchを試してみる。


tallahassee:~# ab -n 100 -c 10 http [...]]]></description>
			<content:encoded><![CDATA[<p>ローカルネットワーク内でWPに接続してるにもかかわらず、<br />
ページが開くのに若干もたつきがあるから、<br />
試しにApache benchを試してみる。<br />
<span id="more-177"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tallahassee:~<span style="color: #666666; font-style: italic;"># ab -n 100 -c 10 http://blog.maidsan.tk/</span></pre></div></div>

<p>んで、結果が以下の通り</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Benchmarking blog.maidsan.tk <span style="color: #7a0874; font-weight: bold;">&#40;</span>be patient<span style="color: #7a0874; font-weight: bold;">&#41;</span>.....done
&nbsp;
&nbsp;
Server Software:        Apache
Server Hostname:        blog.maidsan.tk
Server Port:            <span style="color: #000000;">80</span>
&nbsp;
Document Path:          <span style="color: #000000; font-weight: bold;">/</span>
Document Length:        <span style="color: #000000;">32806</span> bytes
&nbsp;
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="color: #000000; font-weight: bold;">for</span> tests:   <span style="color: #000000;">41.843</span> seconds
Complete requests:      <span style="color: #000000;">100</span>
Failed requests:        <span style="color: #000000;">29</span>
   <span style="color: #7a0874; font-weight: bold;">&#40;</span>Connect: <span style="color: #000000;">0</span>, Receive: <span style="color: #000000;">0</span>, Length: <span style="color: #000000;">29</span>, Exceptions: <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">3300929</span> bytes
HTML transferred:       <span style="color: #000000;">3280629</span> bytes
Requests per second:    <span style="color: #000000;">2.39</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">4184.251</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Time per request:       <span style="color: #000000;">418.425</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean, across all concurrent requests<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Transfer rate:          <span style="color: #000000;">77.04</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Kbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#93;</span> received
&nbsp;
Connection Times <span style="color: #7a0874; font-weight: bold;">&#40;</span>ms<span style="color: #7a0874; font-weight: bold;">&#41;</span>
              min  mean<span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #000000; font-weight: bold;">/</span>-sd<span style="color: #7a0874; font-weight: bold;">&#93;</span> median   max
Connect:        <span style="color: #000000;">0</span>    <span style="color: #000000;">0</span>   <span style="color: #000000;">0.1</span>      <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>
Processing:  <span style="color: #000000;">1221</span> <span style="color: #000000;">4051</span> <span style="color: #000000;">1947.2</span>   <span style="color: #000000;">3673</span>   <span style="color: #000000;">17425</span>
Waiting:      <span style="color: #000000;">937</span> <span style="color: #000000;">3090</span> <span style="color: #000000;">1917.1</span>   <span style="color: #000000;">2757</span>   <span style="color: #000000;">15974</span>
Total:       <span style="color: #000000;">1221</span> <span style="color: #000000;">4051</span> <span style="color: #000000;">1947.2</span>   <span style="color: #000000;">3673</span>   <span style="color: #000000;">17425</span>
&nbsp;
Percentage of the requests served within a certain <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>ms<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #000000;">50</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">3673</span>
  <span style="color: #000000;">66</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">4289</span>
  <span style="color: #000000;">75</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">4568</span>
  <span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">4826</span>
  <span style="color: #000000;">90</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">5605</span>
  <span style="color: #000000;">95</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">6097</span>
  <span style="color: #000000;">98</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">10857</span>
  <span style="color: #000000;">99</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">17425</span>
 <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">17425</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>longest request<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Nucleusで動いてる旧Blogだと以下の通り。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Benchmarking www.maidsan.tk <span style="color: #7a0874; font-weight: bold;">&#40;</span>be patient<span style="color: #7a0874; font-weight: bold;">&#41;</span>.....done
&nbsp;
Server Software:        Apache
Server Hostname:        www.maidsan.tk
Server Port:            <span style="color: #000000;">80</span>
&nbsp;
Document Path:          <span style="color: #000000; font-weight: bold;">/</span>
Document Length:        <span style="color: #000000;">25261</span> bytes
&nbsp;
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="color: #000000; font-weight: bold;">for</span> tests:   <span style="color: #000000;">14.948</span> seconds
Complete requests:      <span style="color: #000000;">100</span>
Failed requests:        <span style="color: #000000;">57</span>
   <span style="color: #7a0874; font-weight: bold;">&#40;</span>Connect: <span style="color: #000000;">0</span>, Receive: <span style="color: #000000;">0</span>, Length: <span style="color: #000000;">57</span>, Exceptions: <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">2552641</span> bytes
HTML transferred:       <span style="color: #000000;">2526241</span> bytes
Requests per second:    <span style="color: #000000;">6.69</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">1494.769</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Time per request:       <span style="color: #000000;">149.477</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean, across all concurrent requests<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Transfer rate:          <span style="color: #000000;">166.77</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Kbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#93;</span> received
&nbsp;
Connection Times <span style="color: #7a0874; font-weight: bold;">&#40;</span>ms<span style="color: #7a0874; font-weight: bold;">&#41;</span>
              min  mean<span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #000000; font-weight: bold;">/</span>-sd<span style="color: #7a0874; font-weight: bold;">&#93;</span> median   max
Connect:        <span style="color: #000000;">0</span>    <span style="color: #000000;">0</span>   <span style="color: #000000;">0.3</span>      <span style="color: #000000;">0</span>       <span style="color: #000000;">2</span>
Processing:   <span style="color: #000000;">350</span> <span style="color: #000000;">1458</span> <span style="color: #000000;">2018.0</span>   <span style="color: #000000;">1083</span>   <span style="color: #000000;">12751</span>
Waiting:      <span style="color: #000000;">213</span> <span style="color: #000000;">1014</span> <span style="color: #000000;">2065.9</span>    <span style="color: #000000;">622</span>   <span style="color: #000000;">12610</span>
Total:        <span style="color: #000000;">351</span> <span style="color: #000000;">1459</span> <span style="color: #000000;">2018.0</span>   <span style="color: #000000;">1083</span>   <span style="color: #000000;">12751</span>
&nbsp;
Percentage of the requests served within a certain <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>ms<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #000000;">50</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">1083</span>
  <span style="color: #000000;">66</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">1161</span>
  <span style="color: #000000;">75</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">1273</span>
  <span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">1333</span>
  <span style="color: #000000;">90</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">1783</span>
  <span style="color: #000000;">95</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">2145</span>
  <span style="color: #000000;">98</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">12705</span>
  <span style="color: #000000;">99</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">12751</span>
 <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span>  <span style="color: #000000;">12751</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>longest request<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Requests per secondが倍以上違うorz<br />
WP使い始めると、使いやすさに惚れるが、<br />
こんな罠があるとはなぁ。。。。</p>
<p>それとも、Nucleusが軽すぎるのだろうか。<br />
とりあえず、eAcceleratorでも入れてみるかしら(´・ω・｀)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/02/19/177/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian 5.0 lennyにアップグレード</title>
		<link>http://blog.maidsan.tk/2009/02/17/171</link>
		<comments>http://blog.maidsan.tk/2009/02/17/171#comments</comments>
		<pubDate>Mon, 16 Feb 2009 16:03:59 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=171</guid>
		<description><![CDATA[Citrix XenServrt上で動いてる、Debian 4.0 etchをlennyにアップグレードしてみた。
アップグレード方法はDebianお馴染みのコマンド。

tallahassee:~# sed -e &#038;q [...]]]></description>
			<content:encoded><![CDATA[<p>Citrix XenServrt上で動いてる、Debian 4.0 etchをlennyにアップグレードしてみた。<br />
アップグレード方法はDebianお馴染みのコマンド。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tallahassee:~<span style="color: #666666; font-style: italic;"># sed -e &quot;s/etch/lenny/g&quot; /etc/apt/source.list &gt; /etc/apt/source.list.new</span>
tallahassee:~<span style="color: #666666; font-style: italic;"># mv  /etc/apt/source.list.new /etc/apt/source.list </span>
tallahassee:~<span style="color: #666666; font-style: italic;"># apt-get dist-upgrade</span></pre></div></div>

<p><span id="more-171"></span><br />
これで、色々とアップグレードされます。<br />
途中、何度か新旧の設定ファイルのどちらかを使うか訊かれるので、<br />
差分を見るなりして、更新を勧めていく。</p>
<p>とりあえず、lennyにアップグレードしたはいいが、CitrixのXenServerがまだ、<br />
lenny用のkernelを提供していないので、etchと同じkernelを使用しているけど。。。。<br />
対応はまだ当分先の話になるのかねぇ(´・ω・｀)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/02/17/171/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian 5.0 Lennyがリリースされますた</title>
		<link>http://blog.maidsan.tk/2009/02/15/167</link>
		<comments>http://blog.maidsan.tk/2009/02/15/167#comments</comments>
		<pubDate>Sun, 15 Feb 2009 09:58:21 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[自宅サーバ]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=167</guid>
		<description><![CDATA[スケジュール上では2008年の後半にリリースされる予定だった、
Debian 5.0 Lennyが日本時間の今日、お昼ごろリリースされました。
とりあえず、etchはold stableになるので、
サポートされるのは2 [...]]]></description>
			<content:encoded><![CDATA[<p>スケジュール上では2008年の後半にリリースされる予定だった、<br />
Debian 5.0 Lennyが日本時間の今日、お昼ごろリリースされました。</p>
<p>とりあえず、etchはold stableになるので、<br />
サポートされるのは2010年2月15日までになる。</p>
<p>とりあえず、maidsanサーバは近日中にLennyにする予定(´・ω・｀)</p>
<p>☆<a href="http://www.debian.or.jp/blog/debian50r0.html">Debian GNU/Linux 5.0 &#8220;Lenny&#8221; リリース!!!</a><br />
☆<a href="http://blog.ganneff.de/blog/2009/02/14/lenny-release.html">Ganneff&#8217;s Little Blog &#8212; Lenny Release &#8211;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/02/15/167/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
