<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>寺田　佳央 - Yoshio Terada &#187; リストア</title>
	<atom:link href="http://yoshio3.com/tag/%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoshio3.com</link>
	<description>GlassFish Web Server Java</description>
	<lastBuildDate>Fri, 25 May 2012 05:58:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yoshio3.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/759d6ca62cbc626125def86454247b76?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>寺田　佳央 - Yoshio Terada &#187; リストア</title>
		<link>http://yoshio3.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yoshio3.com/osd.xml" title="寺田　佳央 - Yoshio Terada" />
	<atom:link rel='hub' href='http://yoshio3.com/?pushpress=hub'/>
		<item>
		<title>GlassFish ドメイン管理サーバのバックアップとリストア</title>
		<link>http://yoshio3.com/2010/02/05/glassfish-%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e7%ae%a1%e7%90%86%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2/</link>
		<comments>http://yoshio3.com/2010/02/05/glassfish-%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e7%ae%a1%e7%90%86%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 07:35:57 +0000</pubDate>
		<dc:creator>Yoshio Terada</dc:creator>
				<category><![CDATA[Application Server/GlassFish]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[ドメイン]]></category>
		<category><![CDATA[バックアップ]]></category>
		<category><![CDATA[リストア]]></category>
		<category><![CDATA[GlassFish]]></category>

		<guid isPermaLink="false">http://yoshio3.com/?p=628</guid>
		<description><![CDATA[※ GlassFish のドメイン管理サーバのバックアップとリストアは 管理コンソールからは行えません．コマン [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yoshio3.com&#038;blog=11776107&#038;post=628&#038;subd=yoshioterada&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>※ GlassFish のドメイン管理サーバのバックアップとリストアは<br />
管理コンソールからは行えません．コマンドを使用してください．</strong></p>
<p>ドメイン管理サーバが稼働するサーバが何らかの障害により起動できなくなった場合，ドメインの管理ができなくなります．ドメイン管理サーバが稼働していない状態でもサーバインスタンスを稼働させることはできますが，ドメイン管理サーバが壊れている状態ではアプリケーションの更新やリソースの設定変更等ができなくなります．このような場合、ドメイン管理サーバの設定をバックアップしておくことで，他のサーバをドメイン管理サーバの代替えとして利用することができます．バックアップはドメイン管理サーバ上で何らかの設定変更を行った際，その都度取得しておくことを推奨します．</p>
<p>バックアップを取得する前に，ドメイン管理サーバを停止してください．ドメイン管理サーバを停止しても提供しているサービスに影響は及びませんのでこの作業は本番稼働中に行っても問題ありません．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="TOP">dashost &gt; 			<strong>asadmin stop-domain clusterDomain</strong><br />
ドメイン clusterDomain が停止しました。</td>
</tr>
</tbody>
</table>
<p><span></span><br />
次にドメイン管理サーバのバックアップを行います．&#8211;domaindirには対象のドメインが含まれるディレクトリを指定します．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="TOP">dashost &gt; 			<strong>asadmin backup-domain &#8211;domaindir /export/home/appserv/domains 			clusterDomain</strong><br />
ドメインを正常にバックアップしました<br />
説明: 			1259776406949<br />
バックアップファイル名: 			/export/home/appserv/domains/clusterDomain/backups/sjsas_backup_v00001.zip<br />
バックアップを実行した日付と時刻: 			Thu Dec 03 02:53:26 JST 2009<br />
ドメインディレクトリ: 			/export/home/appserv/domains<br />
ドメインディレクトリ: 			/export/home/appserv/domains/clusterDomain<br />
ドメイン名: 			clusterDomain<br />
バックアップを実行したユーザーの名前: 			appserv</td>
</tr>
</tbody>
</table>
<p><span></span><br />
バックアップコマンドを実行すると，sjsas_backup_vXXXXX.zipと名付けられたバックアップファイルが作成されます．このファイルをドメイン管理サーバのバックアップ用のサーバにFTP等を利用してコピーしておきます．ここではドメイン管理サーバのバックアップ用のサーバとしてnodeagent1を使用します．本番環境ではノードエージェントとは別のマシン上に構築することを推奨します．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td width="100%" valign="TOP">nodeagent1 &gt; 			<strong>asadmin restore-domain &#8211;filename ./sjsas_backup_v00001.zip  			clusterDomain</strong><br />
ドメイン clusterDomain の /export/home/appserv/domains/clusterDomain への復元に成功しました<br />
説明: 			1259776406949<br />
バックアップファイル名: 			/export/home/appserv/domains/clusterDomain/backups/sjsas_backup_v00001.zip<br />
バックアップを実行した日付と時刻: 			Thu Dec 03 02:53:26 JST 2009<br />
ドメインディレクトリ: 			/export/home/appserv/domains<br />
ドメインディレクトリ: 			/export/home/appserv/domains/clusterDomain<br />
ドメイン名: 			clusterDomain<br />
バックアップを実行したユーザーの名前: 			appser</td>
</tr>
</tbody>
</table>
<p><span></span><br />
展開したファイル中よりドメイン管理サーバ名が記載されている箇所を手動で編集します．domains/clusterDomain/config /domain.xml中より修正する必要のある該当箇所を表示し，dashostからnodeagent1に変更します．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="TOP">
nodeagent1 &gt; <strong>grep dashost domain.xml </strong><br />
&lt;property name=&quot;client-hostname&quot; value=&quot;<strong>dashost</strong>&#8220;/&gt;<br />
&lt;jms-host admin-password=&quot;admin&quot; admin-user-name=&quot;admin&quot; host=&quot;<strong>dashost</strong>&#8221; name=&#8221;default_JMS_host&#8221; port=&#8221;5076&#8243;/&gt;<br />
&lt;property name=&quot;client-hostname&quot; value=&quot;<strong>dashost</strong>&#8220;/&gt;<br />
&lt;jms-host admin-password=&quot;admin&quot; admin-user-name=&quot;admin&quot; host=&quot;<strong>dashost</strong>&#8221; name=&#8221;default_JMS_host&#8221; port=&#8221;${JMS_PROVIDER_PORT}&#8221;/&gt;<br />
&lt;property name=&quot;client-hostname&quot; value=&quot;<strong>dashost</strong>&#8220;/&gt;<br />
&lt;jms-host admin-password=&quot;admin&quot; admin-user-name=&quot;admin&quot; host=&quot;<strong>dashost</strong>&#8221; name=&#8221;default_JMS_host&#8221; port=&#8221;${JMS_PROVIDER_PORT}&#8221;/&gt;
</td>
</tr>
</tbody>
</table>
<p><span></span><br />
新しい環境上で再度環境変数を設定した後，ドメインを起動します．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="TOP">nodeagent1 &gt; <strong>setenv AS_ADMIN_HOST nodeagent1.japan.sun.com</strong><br />
nodeagent1 &gt; <strong>env |grep AS</strong><br />
AS_ADMIN_USER=clusterAdmin<br />
AS_ADMIN_PASSWORDFILE=/export/home/appserv/.passwordfile<br />
AS_ADMIN_HOST=nodeagent1.japan.sun.com<br />
AS_ADMIN_PORT=5048<br />
nodeagent1 &gt; <strong>asadmin start-domain clusterDomain</strong><br />
ドメイン clusterDomain を起動しています。お待ちください。<br />
デフォルトのログの場所は /export/home/appserv/domains/clusterDomain/logs/server.log です。<br />
出力を /export/home/appserv/domains/clusterDomain/logs/server.log にリダイレクトしています<br />
ドメイン clusterDomain が起動しました。<br />
ドメイン [clusterDomain] はその設定で [Sun 			GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 			Patch12)) (build b31g-fcs)] を実行しています。ログは [/export/home/appserv/domains] にあります。<br />
管理コンソールは [http://localhost:5048] で使用できます。<br />
&#8220;asadmin&#8221; コマンドにも同じポート [5048] を使用します。<br />
ユーザーの Web アプリケーションは次の URL で使用できます:<br />
[http://localhost:5080 			https://localhost:5081 ]。<br />
次の web-contexts を使用できます:<br />
[/web1 			 /__wstx-services ]。<br />
標準の JMX クライアント (JConsole など) はドメイン管理のために JMXServiceURL:<br />
[service:jmx:rmi:///jndi/rmi://nodeagent1.japan.sun.com:5086/jmxrmi]<br />
に接続できます。<br />
ドメインは少なくとも次のポートで接続を待機しています:<br />
[5080 			5081 5048 5037 5038 5039 5086 ]。<br />
ドメインはアプリケーションサーバークラスタおよびその他のスタンドアロンインスタンスをサポートします。</td>
</tr>
</tbody>
</table>
<p><span></span><br />
上記で，ドメインのリストアは完了です．仮にドメイン管理サーバにアクセスするためにSSLを有効にしている場合にドメイン管理サーバのホスト名が変わる場合，サーバ証明書の更新も必要です．デフォルトでインストールされている自己署名サーバ証明書は変更前のドメイン管理サーバ名が記載されていますので更新の必要があります．<br />
最後に，念のためノードエージェントが保持するドメイン管理サーバへの参照情報が更新されているか確認してください．全てのノードエージェントはagentディレクトリ中にconfigディレクトリが存在しています．このディレクトリ配下にdas.propertiesファイルが存在しており，ドメイン管理サーバへ接続するための接続情報などが記載されています．そこでファイルの内容を確認しdashostからnodeagent1に変更されていることを確認してください．仮に変更されていない場合は手動で変更してください．</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="TOP">nodeagent1 &gt; 			<strong>pwd</strong><br />
/export/home/appserv/nodeagents/nodeagent1/agent/config<br />
nodeagent1 &gt; 			<strong>grep das.host das.properties</strong><br />
agent.das.host=nodeagent1<br />
nodeagent2 &gt; 			<strong>pwd</strong><br />
/export/home/appserv/nodeagents/nodeagent2/agent/config<br />
nodeagent2 &gt; 			<strong>grep das.host das.properties </strong><br />
agent.das.host=nodeagent1</td>
</tr>
</tbody>
</table>
<br />カテゴリー:<a href='http://yoshio3.com/category/application-serverglassfish/'>Application Server/GlassFish</a> Tagged: <a href='http://yoshio3.com/tag/administration/'>Administration</a>, <a href='http://yoshio3.com/tag/%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3/'>ドメイン</a>, <a href='http://yoshio3.com/tag/%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97/'>バックアップ</a>, <a href='http://yoshio3.com/tag/%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2/'>リストア</a>, <a href='http://yoshio3.com/tag/glassfish/'>GlassFish</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yoshioterada.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yoshioterada.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yoshioterada.wordpress.com/628/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yoshio3.com&#038;blog=11776107&#038;post=628&#038;subd=yoshioterada&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yoshio3.com/2010/02/05/glassfish-%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e7%ae%a1%e7%90%86%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5b5cf8e8e2343a2915d94e1ca6f26e2?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">yosshi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
