<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/sischkg/">
    <title>sischkg @ ウィキ</title>
    <link>http://w.atwiki.jp/sischkg/</link>
    <atom:link href="https://w.atwiki.jp/sischkg/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>sischkg @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2012-11-23T21:10:07+09:00</dc:date>
    <utime>1353672607</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/11.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/sischkg/pages/6.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/14.html">
    <title>emacs</title>
    <link>https://w.atwiki.jp/sischkg/pages/14.html</link>
    <description>
      
&lt;pre&gt;
(global-set-key (kbd &quot;&quot;) &#039;undo)
(global-set-key (kbd &quot;&quot;) &#039;redo)
(global-set-key (kbd &quot;&quot;) &#039;compile)

(setq-default tab-width 4)
(setq tab-width 4)
(setq indent-tabs-mode t)
(add-hook &#039;c-mode-hook &#039;(lambda ()
                          (setq c-basic-offset 4)
                          (setq tab-width 4)
                          (setq c-auto-newline t)
                          ))

(require &#039;mozc)
(set-language-environment &quot;Japanese&quot;)
(setq default-input-method &quot;japanese-mozc&quot;)
&lt;/pre&gt;    </description>
    <dc:date>2012-11-23T21:10:07+09:00</dc:date>
    <utime>1353672607</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/12.html">
    <title>CentOS</title>
    <link>https://w.atwiki.jp/sischkg/pages/12.html</link>
    <description>
      *LVM
**PhysicalVoulumeを登録
fdiskでパーティションを作成する。パーティションのタイプは、Linux LVM(8e)にする。
作成したパーティションのデバイスファイルを指定して

 pvcreate &lt;デバイスファイル&gt;

を実行する。

**VolumeGroupを作成

*Xen
** create Domain-U
 virt-install \
   -r &lt;ram-size&gt; \
   -f &lt;install-device&gt; -n &lt;name&gt; \
   --os-type=linux \
   --os-variant=centos5 \
   --location=&lt;os_url&gt; \
   --network bridge:xenbr0 \
   --vnc

*heartbeat
** /etc/ha.d/ha.cf
  crm yes
  # debugfile /var/log/ha-debug
  logfile /var/log/ha-log
  logfacility local0
  keepalive 2
  deadtime 30
  warntime 10
  initdead 60
  udpport 694
  auto_failback off
  bcast eth1
  node centos01.example.com
  node centos02.example.com

** haresources から cib.xmlへの変換
  # echo &quot;centos01.example.com IPaddr:172.16.253.190 apache&quot; &gt; haresources
  # /usr/lib64/heartbeat/haresources2cib.py --stdout haresources &gt; cib.xml

** cib.xml
上記cib.xmlを修正する。apacheを使用する場合のcib.xml

 &lt;cib admin_epoch=&quot;1&quot; epoch=&quot;13&quot; num_updates=&quot;1&quot; have_quorum=&quot;true&quot; ccm_transition=&quot;2&quot; num_peers=&quot;2&quot; cib_feature_revision=&quot;2.0&quot; cib-last-written=&quot;Sat Mar  7 00:00:16 2009&quot;&gt;
   &lt;configuration&gt;
     &lt;crm_config&gt;
       &lt;cluster_property_set id=&quot;cib-bootstrap-options&quot;&gt;
         &lt;attributes&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-symmetric-cluster&quot; name=&quot;symmetric-cluster&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-no-quorum-policy&quot; name=&quot;no-quorum-policy&quot; value=&quot;stop&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-default-resource-stickiness&quot; name=&quot;default-resource-stickiness&quot; value=&quot;0&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-default-resource-failure-stickiness&quot; name=&quot;default-resource-failure-stickiness&quot; value=&quot;0&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-stonith-enabled&quot; name=&quot;stonith-enabled&quot; value=&quot;false&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-stonith-action&quot; name=&quot;stonith-action&quot; value=&quot;reboot&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-startup-fencing&quot; name=&quot;startup-fencing&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-stop-orphan-resources&quot; name=&quot;stop-orphan-resources&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-stop-orphan-actions&quot; name=&quot;stop-orphan-actions&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-remove-after-stop&quot; name=&quot;remove-after-stop&quot; value=&quot;false&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-short-resource-names&quot; name=&quot;short-resource-names&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-transition-idle-timeout&quot; name=&quot;transition-idle-timeout&quot; value=&quot;5min&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-default-action-timeout&quot; name=&quot;default-action-timeout&quot; value=&quot;20s&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-is-managed-default&quot; name=&quot;is-managed-default&quot; value=&quot;true&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-cluster-delay&quot; name=&quot;cluster-delay&quot; value=&quot;60s&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-pe-error-series-max&quot; name=&quot;pe-error-series-max&quot; value=&quot;-1&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-pe-warn-series-max&quot; name=&quot;pe-warn-series-max&quot; value=&quot;-1&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-pe-input-series-max&quot; name=&quot;pe-input-series-max&quot; value=&quot;-1&quot;/&gt;
           &lt;nvpair id=&quot;cib-bootstrap-options-dc-version&quot; name=&quot;dc-version&quot; value=&quot;2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3&quot;/&gt;
         &lt;/attributes&gt;
       &lt;/cluster_property_set&gt;
     &lt;/crm_config&gt;
     &lt;nodes&gt;
       &lt;node id=&quot;3aa4b0b5-f0c6-44d5-a71f-d9038c33193e&quot; uname=&quot;centos02.in.local&quot; type=&quot;normal&quot;/&gt;
       &lt;node id=&quot;d531c038-de37-4588-90a5-1b496edc3e6b&quot; uname=&quot;centos01.in.local&quot; type=&quot;normal&quot;/&gt;
     &lt;/nodes&gt;
     &lt;resources&gt;
       &lt;group id=&quot;group_1&quot;&gt;
         &lt;primitive class=&quot;ocf&quot; id=&quot;IPaddr_172_16_253_190&quot; provider=&quot;heartbeat&quot; type=&quot;IPaddr&quot;&gt;
           &lt;operations&gt;
             &lt;op id=&quot;IPaddr_172_16_253_190_mon&quot; interval=&quot;5s&quot; name=&quot;monitor&quot; timeout=&quot;5s&quot;/&gt;
           &lt;/operations&gt;
           &lt;instance_attributes id=&quot;IPaddr_172_16_253_190_inst_attr&quot;&gt;
             &lt;attributes&gt;
               &lt;nvpair id=&quot;IPaddr_172_16_253_190_attr_0&quot; name=&quot;ip&quot; value=&quot;172.16.253.190&quot;/&gt;
               &lt;nvpair id=&quot;IPaddr_172_16_253_190_attr_1&quot; name=&quot;netmask&quot; value=&quot;24&quot;/&gt;
               &lt;nvpair id=&quot;IPaddr_172_16_253_190_attr_2&quot; name=&quot;nic&quot; value=&quot;eth0&quot;/&gt;
             &lt;/attributes&gt;
           &lt;/instance_attributes&gt;
         &lt;/primitive&gt;
         &lt;primitive class=&quot;ocf&quot; id=&quot;apache_2&quot; provider=&quot;heartbeat&quot; type=&quot;apache&quot;&gt;
           &lt;operations&gt;
             &lt;op id=&quot;apache_2_mon&quot; interval=&quot;120s&quot; name=&quot;monitor&quot; timeout=&quot;60s&quot;/&gt;
           &lt;/operations&gt;
           &lt;instance_attributes id=&quot;apache_2_inst_attr&quot;&gt;
             &lt;attributes&gt;
               &lt;nvpair id=&quot;apache_2_attr_0&quot; name=&quot;configfile&quot; value=&quot;/etc/[[httpd]]/conf/httpd.conf&quot;/&gt;
               &lt;nvpair id=&quot;apache_2_attr_1&quot; name=&quot;httpd&quot; value=&quot;/usr/sbin/httpd&quot;/&gt;
               &lt;nvpair id=&quot;apache_2_attr_3&quot; name=&quot;statusurl&quot; value=&quot;http://127.0.0.1/server-status&quot;/&gt;
             &lt;/attributes&gt;
           &lt;/instance_attributes&gt;
         &lt;/primitive&gt;
       &lt;/group&gt;
     &lt;/resources&gt;
     &lt;constraints&gt;
       &lt;rsc_location id=&quot;rsc_location_group_1&quot; rsc=&quot;group_1&quot;&gt;
         &lt;rule id=&quot;prefered_location_group_1&quot; score=&quot;100&quot;&gt;
           &lt;expression attribute=&quot;#uname&quot; id=&quot;prefered_location_group_1_expr&quot; operation=&quot;eq&quot; value=&quot;centos01.example.com&quot;/&gt;
         &lt;/rule&gt;
       &lt;/rsc_location&gt;
     &lt;/constraints&gt;
   &lt;/configuration&gt;
  &lt;/cib&gt;

** iptables の変更
eth1に入ったパケットを許可する
 -A RH-Firewall-1-INPUT -i eth1 -j ACCEPT
** httpd.conf
heartbeatから監視するときに、
  http://127.0.0.1/server-status
をGETするので、mod_statusを有効にしアクセスを許可する。
  LoadModule status_module modules/mod_status.so

  &lt;Location /server-status&gt;
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
  &lt;/Location&gt;

** サービスの有効化
 # chkconfig heartbeat on
 # service heartbeat start

** Designated Controller の表示
 # crmadmin -D
 Designated Controller is: centos02.example.com

** cib.xml の登録
 # cibadmin -U -x cib.xml    </description>
    <dc:date>2009-03-10T01:00:25+09:00</dc:date>
    <utime>1236614425</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/13.html">
    <title>httpd</title>
    <link>https://w.atwiki.jp/sischkg/pages/13.html</link>
    <description>
      * mod_proxy 

** Reverse Proxy
*** httpd.conf

  ProxyRequests Off
  
  &lt;Proxy *&gt;
    Order deny,allow
    Allow from all
  &lt;/Proxy&gt;
  
  ProxyPass /app http://centos03.example.com/app
  ProxyPassReverse /app http://centos03.example.com/app

*** KeepAliveの無効化
リバースプロクシからWebサーバへ接続した時に、KeepAliveを無効にする方法

  SetEnv force-proxy-request-1.0 1
  SetEnv proxy-nokeepalive 1


* mod_proxy_balancer

  ProxyPass /app balancer://mycluster
  &lt;Proxy balancer://mycluster&gt;
    BalancerMember http://centos03.example.com
    BalancerMember http://centos04.example.com
  &lt;/Proxy&gt;     </description>
    <dc:date>2009-03-06T07:28:40+09:00</dc:date>
    <utime>1236292120</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/sischkg/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
-[[Solaris x86]]
-[[CentOS]]
-[[httpd]]
-[[メニュー]]

----

**リンク
-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2009-03-06T00:38:23+09:00</dc:date>
    <utime>1236267503</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/11.html">
    <title>Solaris x86</title>
    <link>https://w.atwiki.jp/sischkg/pages/11.html</link>
    <description>
      * Solaris x86 関連のメモ

** インストールサーバを作成

DVD-ROMをmount後に

 # mkdir -p /installer
 # cd &lt;DVD-path&gt;/Solaris_10/Tools
 #  ./setup_install_server /installer

インストールサーバ上で、インストール対象の
- IPアドレス &lt;-&gt; hostname
- リスト ethernet アドレス &lt;-&gt; hostname
の名前解決が出きるように設定する。
 # vi /etc/hosts
 &lt;インストール対象のIPアドレス&gt;  &lt;インストール対象のhostname&gt;

 # vi /etc/ethers
 &lt;インストール対象のethernetアドレス&gt;  &lt;インストール対象のhostname&gt;

インストール対象を追加する

 ./add_install_client -d -s &lt;インストールサーバ名&gt;:/installer -e &lt;インストール対象のethernetアドレス&gt; i86pc

add_install_clientの出力結果を、DHCPマネージャのマクロとして登録する。

 # /usr/sadm/admin/bin/dhcpmgr &amp;


** Image(ISO)ファイルのmount

 # lofiadm -a /absolute/path/to/image.iso
 /dev/lofi/1
 # mount -F hsfs /dev/lofi/1 /mnt

** Live upgrade

*** BEの作成

 # 

*** upgrade 

 # lustatus
 Boot Environment           Is       Active Active    Can    Copy

 Name                       Complete Now    On Reboot Delete Status
 first_disk                 yes      yes    yes       no     -         
 second_disk                yes      no     no        yes    -         

second_diskをupgrade

 #  luupgrade -u -n second_disk -s /path/to/dvd

second_diskを有効化

 # luactivate second_disk

reboot

 # shutdown -i6 -g0 -y    </description>
    <dc:date>2008-11-19T00:40:13+09:00</dc:date>
    <utime>1227022813</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/sischkg/pages/1.html</link>
    <description>
      テスト書き込み    </description>
    <dc:date>2008-05-08T00:36:15+09:00</dc:date>
    <utime>1210174575</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/3.html">
    <title>メニュー2</title>
    <link>https://w.atwiki.jp/sischkg/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2008-05-08T00:32:41+09:00</dc:date>
    <utime>1210174361</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/sischkg/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2008-05-08T00:32:41+09:00</dc:date>
    <utime>1210174361</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/5.html">
    <title>プラグイン/編集履歴</title>
    <link>https://w.atwiki.jp/sischkg/pages/5.html</link>
    <description>
      * 更新履歴
@wikiのwikiモードでは
 #recent(数字)
と入力することで、wikiのページ更新履歴を表示することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_117_ja.html


-----


たとえば、#recent(20)と入力すると以下のように表示されます。


#recent(20)
    </description>
    <dc:date>2008-05-08T00:32:41+09:00</dc:date>
    <utime>1210174361</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/sischkg/pages/6.html">
    <title>プラグイン/アーカイブ</title>
    <link>https://w.atwiki.jp/sischkg/pages/6.html</link>
    <description>
      * アーカイブ
@wikiのwikiモードでは
 #archive_log()
と入力することで、特定のウェブページを保存しておくことができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/25_171_ja.html


-----


たとえば、#archive_log()と入力すると以下のように表示されます。
保存したいURLとサイト名を入力して&quot;アーカイブログ&quot;をクリックしてみよう


#archive_log()
    </description>
    <dc:date>2008-05-08T00:32:41+09:00</dc:date>
    <utime>1210174361</utime>
  </item>
  </rdf:RDF>
