From: <ta...@us...> - 2011-07-27 09:10:44
|
Revision: 5420 http://gfarm.svn.sourceforge.net/gfarm/?rev=5420&view=rev Author: tatebe Date: 2011-07-27 09:10:36 +0000 (Wed, 27 Jul 2011) Log Message: ----------- simplify the master-slave metadata server tutorial Modified Paths: -------------- gfarm_v2/trunk/doc/html/ja/user/redundancy-tutorial.html Modified: gfarm_v2/trunk/doc/html/ja/user/redundancy-tutorial.html =================================================================== --- gfarm_v2/trunk/doc/html/ja/user/redundancy-tutorial.html 2011-07-27 09:08:11 UTC (rev 5419) +++ gfarm_v2/trunk/doc/html/ja/user/redundancy-tutorial.html 2011-07-27 09:10:36 UTC (rev 5420) @@ -1,6 +1,6 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<HTML><HEAD><TITLE>Grid Datafarm: Servers which export Gfarm [Japanese]</TITLE> +<HTML><HEAD><TITLE>Gfarm File System: Master-Slave Metadata Servers [Japanese]</TITLE> <META http-equiv=Content-Type content="text/html; charset=euc-jp"> <META content=document name=resource-type> </HEAD> @@ -18,118 +18,89 @@ <BR> <H2>1. \xA5\xA4\xA5ȡ\xBC\xA5\xEB</H2> \xA4\xB3\xA4\xB3\xA4Ǥϥޥ\xB9\xA5\xBF\xA1\xBCgfmd\xA4\xF2\xB5\xAFư\xA4\xB9\xA4\xEB\xA5ۥ\xB9\xA5Ȥ\xF2host-a\xA1\xA2\xA5\xB9\xA5졼\xA5\xD6gfmd\xA4\xF2\xB5\xAFư\xA4\xB9\xA4\xEB\xA5ۥ\xB9\xA5Ȥ\xF2host-b\xA4Ȥ\xB7\xA4ޤ\xB9\xA1\xA3 -host-a / host-b\xA4Τ\xBD\xA4줾\xA4\xEC\xA4ˤ\xAA\xA4\xA4\xA4ơ\xA2gfarm_v2\xA4Υ\xBD\xA1\xBC\xA5\xB9\xA5\xB3\xA1\xBC\xA5ɤ\xAC\xC7\xDB\xC3֤\xB5\xA4줿\xA5ǥ\xA3\xA5쥯\xA5ȥ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\xB7\xA4ޤ\xB9\xA1\xA3</LI> +<LI>\xCA\xE43<BR> +\xA5\xA5ǡ\xBC\xA5\xBF\xBE\xE9Ĺ\xB2\xBD\xA4\xF2ͭ\xB8\xFA\xA4ˤ\xB9\xA4뤿\xA4\xE1\xA4ˤϡ\xA2\xA5Хå\xAF\xA5\xA8\xA5\xF3\xA5ɡ\xA6\xA5ǡ\xBC\xA5\xBF\xA5١\xBC\xA5\xB9\xA4Ȥ\xB7\xA4\xC6PostgreSQL\xA4\xF2\xCD\xF8\xCDѤ\xB9\xA4\xEBɬ\xCDפ\xAC\xA4\xA2\xA4\xEA\xA4ޤ\xB9\xA1\xA3</LI> </UL> + host-b\xA4졼\xA5֤Ȥ\xB7\xA4\xC6\xC5\xD0Ͽ\xA4\xB7\xA4ޤ\xB9\xA1\xA3 -<BR><BR> -host-a: +<p> <TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> $ gfmdhost -c host-b $ gfmdhost -l + master - m (default) host-a 601 - slave sync c (default) host-b 601 </PRE></TD></TR></TBODY></TABLE> -<BR> -host-b \xA4\xCEgfmd\xA4\xF2\xC4\xE4\xBBߤ\xB7\xA4ޤ\xB9\xA1\xA3 + +gfarm2.conf\xA4\xCBmetadb_server_list\xA4\xF2\xC4ɲä\xB7\xA4ơ\xA2\xA5\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5ФΥۥ\xB9\xA5\xC8̾\xB0\xEC\xCD\xF7\xA4Ҥ\xB7\xA4ޤ\xB9\xA1\xA3 <BR><BR> -host-b: <TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> -# /etc/init.d/gfmd stop +metadb_server_list host-a host-b </PRE></TD></TR></TBODY></TABLE> -<BR> -host-a\xA4Υǡ\xBC\xA5\xBF\xA5١\xBC\xA5\xB9\xA4\xF2host-b\xA4˥\xB3\xA5ԡ\xBC\xA4\xB7\xA4ޤ\xB9\xA1\xA3host-b\xA4˥\xB8\xA5㡼\xA5ʥ\xE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\xA3 -<BR><BR> -host-b: + +root\xA5桼\xA5\xB6\xA4ǥ\xA5ǡ\xBC\xA5\xBF\xA4\xF2\xA5\xC0\xA5\xF3\xA5פ\xB7\xA4ޤ\xB9\xA1\xA3 +<p> <TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> -#!/bin/sh +# gfdump.postgresql -d -f gfarm-pgsql.dmp +</PRE></TD></TR></TBODY></TABLE> -set -e +<H3>2.2 \xA5\xB9\xA5졼\xA5֥\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5Ф\xCE\xC0\xDF\xC4\xEA</H3> -# source db -SRC_HOST=host-a -SRC_PORT=10602 -SRC_PASSWORD=xxxxxx +\xA5\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5д֤\xCE\xC0\xDC³\xA4\xC7\xCD\xF8\xCDѤ\xB5\xA4\xEC\xA4\xEB_gfarmmd\xA5桼\xA5\xB6\xA4\xF2\xBA\xEE\xC0\xAE\xA4\xB7\xA1\xA2 +\xA5ޥ\xB9\xA5\xBF\xA1\xBC\xA5\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5Ф\xAB\xA4鶦ͭ\xB8\xB0\xA4ԡ\xBC\xA4\xB7\xA4ޤ\xB9\xA1\xA3 +<p> +<TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> +# useradd -c "Gfarm gfmd" -m _gfarmmd +\xA5ޥ\xB9\xA5\xBF\xA1\xBC\xA5\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5Ф\xAB\xA4鶦ͭ\xB8\xB0(~/.gfarmmd/.gfarm_shared_key)\xA4ԡ\xBC +</PRE></TD></TR></TBODY></TABLE> -# destination db -DST_PASSWORD=yyyyyy -DST_PORT=10602 - -DUMP_FILE=/tmp/gfarm-pgsql.dmp -JOURNAL_FILE=/var/gfarm-metadata/journal/0000000000.gmj -PREFIX=/usr -pg_dump=$PREFIX/bin/pg_dump -psql=$PREFIX/bin/psql -dropdb=$PREFIX/bin/dropdb -createdb=$PREFIX/bin/createdb - -trap 'rm -f $DUMP_FILE; exit 1' 1 2 5 - -echo export db -PGPASSWORD=$SRC_PASSWORD $pg_dump -h $SRC_HOST -p $SRC_PORT -U gfarm -f $DUMP_FILE gfarm -echo delete journal file : $JOURNAL_FILE -rm -f $JOURNAL_FILE -echo import db -PGPASSWORD=$DST_PASSWORD $dropdb -p $DST_PORT -U postgres gfarm -PGPASSWORD=$DST_PASSWORD $createdb -p $DST_PORT -U postgres gfarm -PGPASSWORD=$DST_PASSWORD $psql -p $DST_PORT -U postgres -d gfarm -f $DUMP_FILE > /dev/null -rm -f $DUMP_FILE +\xBC\xA1\xA4˥\xB9\xA5졼\xA5֥\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5ФΥ\xBB\xA5åȥ\xA2\xA5åפ\xF2root\xA5桼\xA5\xB6\xA4ǹԤ\xA4\xA4ޤ\xB9\xA1\xA3 +\xA5\xA5ǡ\xBC\xA5\xBF\xBE\xE9Ĺ\xB2\xBD\xA4\xF2ͭ\xB8\xFA\xA4ˤ\xB9\xA4뤿\xA4\xE1 config-gfarm\xA4\xCB-r\xA5\xAA\xA5ץ\xB7\xA5\xE7\xA5\xF3\xA4\xF2\xA4Ĥ\xB1\xA4ޤ\xB9\xA1\xA3 +<p> +<TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> +# config-gfarm -r </PRE></TD></TR></TBODY></TABLE> -<BR> -host-b \xA4ˤ\xAA\xA4\xA4\xA4ơ\xA2gfmd \xA4\xF2\xB5\xAFư\xA4\xB7\xA4ޤ\xB9\xA1\xA3 -root\xA5桼\xA5\xB6\xA4ǡ\xA2\xBC\xA1\xA4Υ\xB3\xA5ޥ\xF3\xA5ɤ\xF2\xBC¹Ԥ\xB7\xA4ޤ\xB9\xA1\xA3 -<BR><BR> -host-b: + +root\xA5桼\xA5\xB6\xA4ǥ\xA5ǡ\xBC\xA5\xBF\xA4\x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xA5\xA2\xA5\xF3\xA5\xC8</H3> + +gfarm2.conf\xA4ˤ\xAA\xA4\xA4\xA4\xC6metadb_server_list\xA4\xF2\xC4ɲä\xB7\xA4ơ\xA2\xA5\xA5ǡ\xBC\xA5\xBF\xA5\xB5\xA1\xBC\xA5ФΥۥ\xB9\xA5\xC8̾\xB0\xEC\xCD\xF7\xA4Ҥ\xB7\xA4ޤ\xB9\xA1\xA3 <BR><BR> <TABLE bgColor="#E0FFFF"><TBODY><TR><TD><PRE> -metadb_server_host host-a -metadb_server_port 601 metadb_server_list host-a host-b </PRE></TD></TR></TBODY></TABLE> <BR> @@ -189,5 +160,4 @@ <HR> -<ADDRESS><A href="http://datafarm.apgrid.org/">Grid Datafarm</A> <<A -href="mailto:dat...@ap..."><TT>dat...@ap...</TT></A>></ADDRESS></BODY></HTML> +<ADDRESS><A href="http://datafarm.apgrid.org/">Gfarm File System</A> <<TT>gfarmfs at google.com</TT>></ADDRESS></BODY></HTML> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |