<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/ME2.2.3" -->
<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/"
	>

<channel>
	<title>メモめもMemo・・・</title>
	<link>http://www.metainfo.jp/memo</link>
	<description>作業メモとかいろんな記録</description>
	<pubDate>Tue, 24 Apr 2012 14:13:36 +0900</pubDate>
	<generator>http://wordpress.org/?v=ME2.2.3</generator>
	<language>ja</language>
			<item>
		<title>移動のお知らせ</title>
		<link>http://www.metainfo.jp/memo/?p=80</link>
		<comments>http://www.metainfo.jp/memo/?p=80#comments</comments>
		<pubDate>Sat, 18 Feb 2012 18:34:57 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=80</guid>
		<description><![CDATA[引っ越すことになりました。
http://blog.metainfo.jp/memo3/
です。
こっちもずーっと残りますが、もし更新することばあった場合、新しい方になります。
]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=80</wfw:commentRss>
		</item>
		<item>
		<title>サーバー変更</title>
		<link>http://www.metainfo.jp/memo/?p=79</link>
		<comments>http://www.metainfo.jp/memo/?p=79#comments</comments>
		<pubDate>Fri, 28 May 2010 09:13:15 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[その他]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=79</guid>
		<description><![CDATA[長らく海外のVPSを利用してきましたが、この度DTIより提供されているVPSに乗り換えました。
海外といってもアメリカ本土ですが、さすがに太平洋を越えるとSSHでのオペレーションにも
ストレスありますし、これで少しはストレスも解消されることでしょう。
サイトの表示自体も少しは早くなっていると思います。
日本だとなぜかDebianの提供がありません。OSもCentOSに変更です。
WordPressも古いのでこれも新しいものにする予定。
]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=79</wfw:commentRss>
		</item>
		<item>
		<title>proftpdのログアウトが記録されない。</title>
		<link>http://www.metainfo.jp/memo/?p=78</link>
		<comments>http://www.metainfo.jp/memo/?p=78#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:44:07 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[proftpd]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=78</guid>
		<description><![CDATA[CentOS 5.xでproftpdを利用したい場合、rpmforgeからパッケージを導入するのが一般的であろうと思う。
しかしrpmforgeにあるproftpd-1.3.2はバグがある。
lastコマンドで見ればわかるが、ftpのログアウト時間が記録されない。
FTPを利用するだけなら支障ないが、やはりここは正確に記録してほしいところである。
proftpdのページを確認すると、このバグは認識されているようで、最新版では治っているようである。
http://bugs.proftpd.org/show_bug.cgi?id=3183
ならば、proftpd-1.3.2も改善してやるべきであろう。1.3.2の改善版は1.3.2cとする。
まずソースの取得と展開
[root@base proftpd]# rpm -ivh proftpd-1.3.2-1.rf.src.rpm 
   1:proftpd                warning: user dag does not exist - using root
warning: group dag does not exist - using root
########################################### [100%]
warning: user dag does not exist - using root
warning: group dag does not [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=78</wfw:commentRss>
		</item>
		<item>
		<title>MySQLにおいて接続方法の違いでどの程度速度に差があるのか調べてみた</title>
		<link>http://www.metainfo.jp/memo/?p=75</link>
		<comments>http://www.metainfo.jp/memo/?p=75#comments</comments>
		<pubDate>Wed, 19 Aug 2009 17:43:35 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=75</guid>
		<description><![CDATA[MySQLにコネクションする場合、同一ホストだとUNIXドメインソケット経由とTCP/IPソケット経由の2種類の接続方法がある。
（用語はこれで正しいんだろうか。意味はわかってもらえると思うが）
なんとなく考えるとドメインソケットの方が早いように思えるが、果たしてどうだろうか。
接続に要する時間がどの程度違うか試してみた。
OS     : CentOS 4.7
MySQL  : 4.1.20
python : 2.3.4(クライアントに利用)
計測方法は単純に10000回のconnectとcloseを行い、かかった時間の計測である。
まず、ドメインソケット経由
3.9236061573(秒)
次にTCP/IPソケット経由
7.55466413498(秒)
おおよそ3秒の違い。無視してもよい違いなのだろうか・・・・。
次にネットワーク経由の接続テストである。LAN経由で接続した場合はどの程度違うのであろうか。
こちらは
OS     : ubuntu 9.04
python : 2.5(クライアントに利用)
14.3414208889(秒)
同一サーバー内での接続に比べておおよそ3倍遅いということだな。
(もちろん環境によって数字は違ってくるのであくまで目安）
なるほど。
よくあるサーバー構成だとDBとWEBを分けて構築するが、WEBからDBへのコネクションの負荷
を考慮するとWEBとDBは同一サーバーの方がパフォーマンスが出るのではないか。(当たり前)
MySQLなら簡単にレプリケーションできるわけで、更新用サーバーさえ別に用意しておけば参照用DBは
WEBサーバーに入れてしまうのが良いんじゃなかろうか。
メモリはいっぱい積んどかないといけないけど。でも、負荷高かったらもう一台追加すればいいだけだし。
あ、もちろん負荷分散装置はある前提で。
]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=75</wfw:commentRss>
		</item>
		<item>
		<title>GlusterFSを使ってみる5 同時書き込みでどうなるかテスト</title>
		<link>http://www.metainfo.jp/memo/?p=74</link>
		<comments>http://www.metainfo.jp/memo/?p=74#comments</comments>
		<pubDate>Tue, 28 Jul 2009 09:46:04 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[glusterfs]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=74</guid>
		<description><![CDATA[今回はクライアント2台。サーバー2台の4台構成。
OCFS2,GFS2などでもやってみた2台のクライアントから同じファイルに同時に書き込みを行ってみるテスト。
ext3だと見事に玉砕。さてどうなるでしょうか。
クライアントはそれぞれホスト名をcl1,cl2。サーバーはそれぞれsv1,sv2とした。
クライアント側の設定は以下のとおり。cl1,cl2共通
cl1:/etc/glusterfs# cat glusterfs-client.vol 
# file: /etc/glusterfs/glusterfs-client.vol
volume remote1
  type protocol/client
  option transport-type tcp
  option remote-host 192.168.1.158
  option remote-subvolume brick
end-volume

volume remote2
  type protocol/client
  option transport-type tcp
  option remote-host 192.168.1.183
  option remote-subvolume brick
end-volume

volume replicate
  type cluster/replicate
  subvolumes remote1 remote2
#  subvolumes remote2 remote1
#  subvolumes remote2 
end-volume

volume writebehind
 [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=74</wfw:commentRss>
		</item>
		<item>
		<title>GlusterFSを使ってみる4 サーバーでファイル追加削除</title>
		<link>http://www.metainfo.jp/memo/?p=73</link>
		<comments>http://www.metainfo.jp/memo/?p=73#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:34:16 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[glusterfs]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=73</guid>
		<description><![CDATA[では次にクライアントではなくサーバー側でファイルの追加削除を行った場合、同期はどうなるのであろう。
サーバーは1,2共に以下の状況とする。
/data/export# ls -l
total 4064
-rw-r----- 1 root root  599481 2009-07-10 15:15 auth.log
-rw-r--r-- 1 root root  750928 2009-07-13 13:53 messages
-rw-r----- 1 root root 1058655 2009-07-10 15:09 syslog
-rw-r--r-- 1 root root 1708656 2009-07-10 15:01 vmlinuz-2.6.29-1-686
/data/export#
サーバー2でauth.logを消す。
/data/export# rm auth.log 
/data/export# ls -l
total 3468
-rw-r--r-- 1 root root  750928 2009-07-13 13:53 messages
-rw-r----- 1 root root 1058655 2009-07-10 15:09 syslog
-rw-r--r-- [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=73</wfw:commentRss>
		</item>
		<item>
		<title>GlusterFSを使ってみる3 サーバー追加編</title>
		<link>http://www.metainfo.jp/memo/?p=72</link>
		<comments>http://www.metainfo.jp/memo/?p=72#comments</comments>
		<pubDate>Thu, 16 Jul 2009 16:38:36 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[glusterfs]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=72</guid>
		<description><![CDATA[まず最初にサーバー1台、クライアント1台構成で構築後サーバーを2台にしてファイルの同期が
取られるかどうかを確認する。
クライアント側の設定ファイルを変更。remote2の記述をすべてコメントに。
/etc# cd glusterfs/
/etc/glusterfs# ls
glusterfs-client.vol
/etc/glusterfs# cat glusterfs-client.vol 
# file: /etc/glusterfs/glusterfs-client.vol
volume remote1
  type protocol/client
  option transport-type tcp
  option remote-host 192.168.1.158
  option remote-subvolume brick
end-volume

#volume remote2
#  type protocol/client
#  option transport-type tcp
#  option remote-host 192.168.1.183
#  option remote-subvolume brick
#end-volume

volume replicate
  type cluster/replicate
#  subvolumes remote1 remote2
  subvolumes remote1 
end-volume

volume writebehind
  [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=72</wfw:commentRss>
		</item>
		<item>
		<title>GlusterFSを使ってみる2 利用編</title>
		<link>http://www.metainfo.jp/memo/?p=71</link>
		<comments>http://www.metainfo.jp/memo/?p=71#comments</comments>
		<pubDate>Tue, 14 Jul 2009 17:30:31 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[glusterfs]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=71</guid>
		<description><![CDATA[クライアント用の設定を行う。
まずパッケージ作成。
lenny用のパッケージは用意されていないので、ソースから構築する。
コンパイル等の流れは基本的にこちら
# wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.2.tar.gz
# tar zxf glusterfs-2.0.2.tar.gz
# cd glusterfs-2.0.2
glusterfs-2.0.2# ./configure
GlusterFS configure summary
===========================
FUSE client        : no
Infiniband verbs   : no
epoll IO multiplex : yes
Berkeley-DB        : yes
libglusterfsclient : yes
mod_glusterfs      : no ()
argp-standalone    : no
summaryを見るとnoが多いので、FUSE client,mod_glusterfs
をyesにするように頑張る。
まずFUSEから。
web:~/glusterfs-2.0.2# [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=71</wfw:commentRss>
		</item>
		<item>
		<title>GlusterFSを使ってみる</title>
		<link>http://www.metainfo.jp/memo/?p=70</link>
		<comments>http://www.metainfo.jp/memo/?p=70#comments</comments>
		<pubDate>Mon, 13 Jul 2009 10:47:36 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[glusterfs]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=70</guid>
		<description><![CDATA[iscsi-targetとocfs2,gfs2を使ったファイル共有は魅力的ではあるが、コストと言う面でやはり敷居が高いかもしれない。
NFSという形でのファイル共有もあり、枯れているという点ではこれが一番だが、最近は分散ファイルシステムという
ソリューションが流行りらしいので、それを使ってファイル共有をテストすることにする。
OSはいつもの通り、サーバー、クライアントすべてDebian5.0(lenny)である。
サーバーは2台で構成し、クライアントは1台。クライアントはWEBサーバーとして共有ファイル領域をDocumentRootとする。
lenny用のパッケージは用意されていないので、ソースから構築する。
コンパイル等の流れは基本的にこちら
debianでソースから導入するとパッケージ管理できなくなるので、checkinstallを使ってパッケージとして管理できるようにする。
# wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.2.tar.gz
# tar zxf glusterfs-2.0.2.tar.gz
# cd glusterfs-2.0.2
glusterfs-2.0.2# ./configure
GlusterFS configure summary
===========================
FUSE client        : no
Infiniband verbs   : no
epoll IO multiplex : yes
Berkeley-DB        : yes
libglusterfsclient : yes
mod_glusterfs      : no ()
argp-standalone    : no
glusterfs-2.0.2# make
 [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=70</wfw:commentRss>
		</item>
		<item>
		<title>Debian5.0(lenny)でPXEbootをiscsi経由でやってみる ネットワーク冗長化編</title>
		<link>http://www.metainfo.jp/memo/?p=69</link>
		<comments>http://www.metainfo.jp/memo/?p=69#comments</comments>
		<pubDate>Mon, 15 Jun 2009 16:14:04 +0900</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[iscsi]]></category>

		<category><![CDATA[linux&amp;UNIX]]></category>

		<guid isPermaLink="false">http://www.metainfo.jp/memo/?p=69</guid>
		<description><![CDATA[イーサ2枚構成でbondingを行う
iscsi経由でrootパーティションマウントすることになるとイーサネットの障害でサーバーは容赦なく停止する。
精神衛生上なんらかの対策は必要なので、bondingを行ってイーサの2重化を図ることにする。
bonding自体は簡単で普通のサーバーであれば、何の問題もなく導入可能であるが、initrdに組み込むのもさほど難しくはない。
debianでbondingを行う場合、ifenslaveを導入する。
iscsi-server:~# apt-get install ifenslave
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ifenslave-2.6
The following NEW packages will be installed:
  ifenslave ifenslave-2.6
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/13.6kB of archives.
After this operation, 61.4kB [...]]]></description>
		<wfw:commentRss>http://www.metainfo.jp/memo/?feed=rss2&amp;p=69</wfw:commentRss>
		</item>
	</channel>
</rss>

