<?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>Hello World!!&#187; Linux</title>
	<atom:link href="http://bhags.org/?cat=4&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://bhags.org</link>
	<description>Welcome to Sinyu&#039;s  site</description>
	<lastBuildDate>Mon, 06 Nov 2017 04:17:27 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.1</generator>
	<item>
		<title>SVN Could not open the requested SVN filesystem on Apache 2.4.9 , svn 1.8.8</title>
		<link>http://bhags.org/?p=425</link>
		<comments>http://bhags.org/?p=425#comments</comments>
		<pubDate>Sat, 26 Apr 2014 05:52:30 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=425</guid>
		<description><![CDATA[環境 Apache 2.4.9 svn 1.8.8 現象 Could not open the re[...]]]></description>
				<content:encoded><![CDATA[<p>環境<br />
Apache 2.4.9<br />
svn 1.8.8</p>
<p>現象<br />
Could not open the requested SVN filesystem</p>
<p>一時対策：旧バージョン対応で作る<br />
svnadmin create &#8211;compatible-version 1.7 &#8211;fs-type fsfs test_svn</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=425</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWS Linux Boot EBSボリューム容量変更時resize2fsができない場合の解決策</title>
		<link>http://bhags.org/?p=100</link>
		<comments>http://bhags.org/?p=100#comments</comments>
		<pubDate>Tue, 18 Jun 2013 03:11:43 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[resize2fs できない]]></category>
		<category><![CDATA[サイズ]]></category>
		<category><![CDATA[変更]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=100</guid>
		<description><![CDATA[*この方法を実施する際にはテスト環境でテストをした上で本番に適用する事を強くお勧めします。まあ、まと[...]]]></description>
				<content:encoded><![CDATA[<p><font color="red"><strong><em>*この方法を実施する際にはテスト環境でテストをした上で本番に適用する事を強くお勧めします。まあ、まともなエンジニアならいきなり本番はないと思いますが。</em></strong></font></p>
<p>AWSのEBS Bootボリュームサイズを拡張する方法に関してネットでたくさんの情報が乗っているがresize2fsがそのままでは効かない場合がある。<br />
ここは私が試して成功した方法を示す。<br />
参考になったサイトは<a href="http://elijahpaul.co.uk/2012/03/resizing-a-rightscale-centos-6-0-ec2-root-ebs-volume/#.Ub-57fa6gqo" title="resizing a RightScale..." target="_blank">こちら</a></p>
<p>ボリューム変更の一般的な手順は以下のようになる。<br />
（以下の手順の詳細はネット上検索すると山ほどでる）</p>
<ol>
<li>現在のBootボリュームのsnapshotをとる
<li>snapshotより新しいEBSボリューム（好きなサイズを指定）を生成
<li>起動中のinstanceをstop
<li>instanceのBoot ボリュームをdetach(device 名前を控える-sdaのようなもの)
<li>増量したdeviceをattach(device名前は上の手順で控えたもの)
<li>instanceを起動
<li>sudo resize2fs /dev/拡張したいdevice名前 (各自設定のdevice名前)
</ol>
<p>[ここからが本題]<br />
上記の手順に従っても<strong>The filesystem is already xxx blocks long.  Nothing to do!</strong>でる場合の解決策</p>
<p>これは増量されたサイズに対して実際に容量が割り当てられていないのが原因fdiskを利用し新しくdisk容量を割り当てる事で解決可能。ただいくつか注意点があるのでここにその手順を示す。</p>
<p>前置き<br />
以下は上記の6.instance起動後からの手順。</p>
<p>基本suで作業.私の環境ではattachした時のdevice名sdaに対してlinuxの/dev上では xvda1,xvda2,xvda3があり  [xvda1->/mnt/boot] [xvda2->/] [xvda3-> swap]　領域としてマウントされていた。ここのdevice名は各自環境のものにかえること.</p>
<p>下記手順どおりならデータが削除される事はなかったが領域の指定(シリンダ)を間違えるとデータがなくなる可能性があるので注意</p>
<pre class="brush: bash; title: ; notranslate">
#fdiskで領域の再割当
fdisk /dev/xvda

#boot領域は手を付けず /領域と swap領域の割当を削除
#以下fdisk コマンド 

###############################################
#既存パーティション削除ーboot領域は削除しない事！

コマンド (m でヘルプ): d
パーティション番号 (1-4): 2 #xvda2(/)領域を削除
コマンド (m でヘルプ): d 
パーティション番号 (1-4): 3 #xvda3(swap)領域を削除

###############################################
#新規領域追加
#/領域
コマンド (m でヘルプ):n #(新規領域作成)
コマンドアクション
   e   拡張
   p   基本パーティション (1-4) p #(基本パーティションとして生成)
パーティション番号 (1-4):2#(xvda2 - / 領域)
最初 シリンダ (15-2610, 初期値 15):Enter 
Last シリンダ, +シリンダ数 or +size{K,M,G} (15-2610, 初期値 2610): 2235#(swap領域用の容量を確保375で3G程度ここは各自調節)

#新規領域追加
#swap領域
コマンド (m でヘルプ):n #(新規領域作成)
   e   拡張
   p   基本パーティション (1-4) p #(基本パーティションとして生成)
       パーティション番号 (1-4):3#(xvda3 - swap 領域)
最初 シリンダ (2236-2610, 初期値 2236):enter 
初期値 2236 を使います
Last シリンダ, +シリンダ数 or +size{K,M,G} (2236-2610, 初期値 2610): enter
初期値 2610 を使います

###############################################
#変更保存
コマンド (m でヘルプ): w
パーティションテーブルは変更されました!

#再起動しないと適用されないがその前に自動マウントをoffにする
vim /etc/fstab
#boot領域以外はすべてコメントアウト

/dev/xvda1  /mnt/boot      ext2    errors=remount-ro       0       1
#/dev/xvda2 /              ext4    defaults                1       2
#/dev/xvda3 none           swap    sw                      0       0
#tmpfs      /dev/shm       tmpfs   defaults        0 0
#devpts     /dev/pts       devpts  gid=5,mode=620  0 0
#sysfs      /sys           sysfs   defaults        0 0
#proc       /proc          proc    defaults        0 0
:wq #保存して終了

#システム再起動
reboot

#resize
resize2fs /dev/xvda2

#今回はresize2fsがちゃんと動く
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/xvda2 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 2
Performing an on-line resize of /dev/xvda2 to 4460045 (4k) blocks.

#起動時のマウントオップションをもとに戻す

vim /etc/fstab
/dev/xvda1  /mnt/boot   ext2    errors=remount-ro       0       1
/dev/xvda2  /           ext4    defaults    1       2
/dev/xvda3  none        swap    sw          0       0
tmpfs       /dev/shm    tmpfs   defaults        0 0
devpts      /dev/pts    devpts  gid=5,mode=620  0 0
sysfs       /sys        sysfs   defaults        0 0
proc        /proc       proc    defaults        0 0

:wq #保存して終了

#システムを再起動
reboot

#最後に確認
root@ip-10-152-99-205 ~]# df -lh
Filesystem            Size  Used Avail Use% マウント位置
/dev/xvda2             17G  4.3G   12G  27% /          #容量が増えた
tmpfs                 3.6G     0  3.6G   0% /dev/shm　 #swapも確保
/dev/xvda1            107M   79M   23M  78% /mnt/boot 
</pre>
<p>手順は以上で終了</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=100</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL -&gt; MySQL Cluster 移行</title>
		<link>http://bhags.org/?p=34</link>
		<comments>http://bhags.org/?p=34#comments</comments>
		<pubDate>Mon, 26 Nov 2012 06:34:17 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=34</guid>
		<description><![CDATA[Social Casino Database 戦略 1. DB scale up -> サーバスペッ[...]]]></description>
				<content:encoded><![CDATA[<p>Social Casino Database 戦略</p>
<p>1. DB scale up </p>
<p>-> サーバスペック向上<br />
-> MySQL チューニング</p>
<p>2. DB Distribution</p>
<p>MySQL cluster 導入<br />
確認事項：<br />
　1) アマゾンで設置可能か　：鄭<br />
　２）MySQL -> MySQL cluster 移行時の問題点は　：朴<br />
　<br />
ー＞MySQL cluster 導入失敗時： -> memSQL 導入顧慮</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn:ignore  再起的に適用</title>
		<link>http://bhags.org/?p=13</link>
		<comments>http://bhags.org/?p=13#comments</comments>
		<pubDate>Fri, 16 Nov 2012 02:16:34 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS6.2]]></category>
		<category><![CDATA[ignore]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=13</guid>
		<description><![CDATA[subversionでtmp directory 以下を再起的にignore -環境:CentOS [...]]]></description>
				<content:encoded><![CDATA[<p>subversionでtmp directory 以下を再起的にignore</p>
<p>-環境:CentOS 6.2　Final</p>
<p>svn propset -R &#8216;svn:ignore&#8217; &#8216;*&#8217; ./tmp/</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
