[SCore-users-jp] ネットワークトランキング(PM/Ethernet) の設定

kameyama @ pccluster.org kameyama @ pccluster.org
2002年 11月 11日 (月) 21:13:36 JST


亀山です.

すみません.
mkpmetherenetconf に bug がありました.
この mail のうしろの patch をあててください.

In article <JOELIPBDDCMFGIHFCNCNOENDCBAA.e973220 @ eve.u-ryukyu.ac.jp> "金城 尚志" <e973220 @ eve.u-ryukyu.ac.jp> wrotes:
> まず、test_kinjoというファイルに上の記述をしました。
> $ cat test_kinjo
> 
> 0 comp0 /dev/eth1
> 1 comp1 /dev/eth0
> 2 comp2 /dev/eth0
> 3 comp3 /dev/eth0
> 
> で、次に次のようなコマンドを入力しました。
> # mkpmethernetconf -g almond -unit 0 test_kinjo
> # almond はグループ名

グループ名を指定せず, (patch をあててから)
   % kpmethernetconf -unit 0 test_kinjo > newfile
のようにして newfile のほうにしてください.

> あと、ここ(上のコマンド)でなぜがcomp0において以下のエラーメッセージが
> 発生しています。

上記の起動方法ですと, group 指定のほうが優先されてしまい,
すべての eth0 の MAC address を見にいってしまいます.

> >2. etherpmctl の設定
> >   /etc/rc.d/init.d/pm_ethernet を編集して, 必要なだけ etherpmctl
> >   を起動します.
> >   多分, comp0 は
> >       /sbin/etherpmctl eth0 -pm on -ir on unit 0
> >       /sbin/etherpmctl eth1 -pm on -ir on unit 1
> >       /sbin/etherpmctl eth2 -pm on -ir on unit 2
> >   その他は
> >       /sbin/etherpmctl eth1 -pm on -ir on unit 0
> >       /sbin/etherpmctl eth2 -pm on -ir on unit 1
> >       /sbin/etherpmctl eth3 -pm on -ir on unit 2
> >   のようになると思います.
> 
> 
> 
> これは、ホストサーバの/etc/rc.d/init.d/pm_ethernet
> を編集するのでしょうか?
> それとも、それぞれの計算ホストの/etc/rc.d/init.d/pm_ethernet
> を編集するのでしょうか?

compute host の /etc/rc.d/init.d/pm_ethernet です.

> >3. scoreboard データベースを編集する.
> >   trunking 用の network を登録し, 各ホストの network 部分も更新します.
> 
> これは、
> /etc/rc.d/init.d/scoreboardでしょうか?
> それとも、
> /opt/score5.0.0/sbin/scoreboard
> なのでしょうか?

    /opt/score/etc/scorehosts.db
です.

> また、具体的にどのように記述したらよいのでしょうか。

生成したファイルを pm-ethernet-0.conf, pm-ethernet-1.conf, pm-ethernet-2.conf
とすると,

ethernet-x3 type=ethernet \
	-config:file=/opt/score/etc/pm-ethernet-2.conf \
	-trunk0:file=/opt/score/etc/pm-ethernet-1.conf \
	-trunk1:file=/opt/score/etc/pm-ethernet-0.conf

comp1.sci.u-ryukyu.ac.jp cpugen=i686 speed=500 network=ethernet-x3 ...
comp2.sci.u-ryukyu.ac.jp cpugen=i686 speed=500 network=ethernet-x3 ...
comp3.sci.u-ryukyu.ac.jp cpugen=i686 speed=500 network=ethernet-x3 ...
comp4.sci.u-ryukyu.ac.jp cpugen=i686 speed=500 network=ethernet-x3 ...

のようになります.

                       from Kameyama Toyohisa
---------------------------------------cut here---------------------------------
--- mkpmethernetconf.exe        Mon Nov 11 21:33:01 2002
+++ mkpmethernetconf.exe.new    Mon Nov 11 21:33:24 2002
@@ -20,7 +20,7 @@
 GetOptions('group=s', \$group, 'speed=i', \$speed, "mbps", \$speed,
        "unit=i", \$unit_num, "device=s", \$device, "maxnsend=s", \$maxnsend,
        "backoff=s", \$backoff, "checksum=i", \$checksum);
-if (!defined($group) || $#ARGV < -1) {
+if (!defined($group) && $#ARGV < -1) {
     print STDERR "Usage: mkpmethernetconf [options] -g group [output_file]\n", 
                 "    or mkpmethernetconf [options] host_list_file [output_file]\n";
     exit(1);
---------------------------------------cut here---------------------------------



SCore-users-jp メーリングリストの案内