Changes between Initial Version and Version 1 of Internal/Infrastructure/SetupTestbed/MiscCfg


Ignore:
Timestamp:
Nov 7, 2008, 7:26:29 PM (16 years ago)
Author:
korakis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/Infrastructure/SetupTestbed/MiscCfg

    v1 v1  
     1= Some miscellaneous configuration =
     2
     3Some items are not configured in ruby scripts instead of YAML files under /etc. This document list some of them.
     4
     5=== 1. How to change the default frisbee image filename? ===
     6When running command like "omf load all" without specifying the frisbee image filename, nodehandler4 will use the default image file, which is specified in file "/opt/nodehandler4-4.2.0/repository/system/exp/imageNode.rb", line 6, like this
     7
     8'''defProperty('image', 'baseline.ndz', "Image to load on nodes")'''
     9
     10Another thing need to mention is the "defaultImage" item in file "/etc/gridservices2/enabled/frisbee.yaml" does not work.
     11
     12=== 2. How to change the default NFS path for saving image? ===
     13When running command like "omf save [1,2]", node_1_2 will mount a NFS path from the server(10.10.0.10). The path is assigned in file[[BR]]
     14'''/opt/nodehandler4-4.2.0/lib/handler/node.rb''' around line 303 like this.[[BR]]
     15{{{
     16302   def saveImage(imgName = nil,
     17303                 nsfDir = 'frisbee:/export/orbit/image/tmp',
     18304                 disk = OConfig.DEFAULT_DISK)
     19}}}
     20You may change the default path directly in file node.rb. A better way is changing the invoking point at file[[BR]]
     21'''/opt/nodehandler4-4.2.0/repository/system/exp/saveNode.rb''' around line 15 like this.[[BR]]
     22{{{
     23 14   n.onNodeUp {|n|
     24 15     n.saveImage(nil,'your_server_IP_or_name:/your/own/NFS/path/for/images')
     25 16   }
     26}}}
     27
     28=== 3. All available parameters for the configuration of groups ===
     29In the experiment script, You need define groups which consist of one or several nodes like this below.
     30{{{
     31defGroup('firstWorker', [1,1]) {|node|
     32
     33   # Associate the prototype to use with this group
     34   # and configure any eventual parameters
     35   #
     36   node.prototype("gentlePing", {
     37     'destination' => "192.168.0.2"
     38   })
     39
     40   # Configure the wireless interface on the node(s) in this set
     41   node.net.w0.mode = "ad-hoc"
     42   node.net.w0.type = "g"
     43   node.net.w0.essid = "tutorial"
     44   node.net.w0.ip = "192.168.0.1"
     45}
     46}}}
     47
     48All available parameters for a node are defined in file '''/opt/nodehandler4-4.2.0/lib/handler/nodeSet.rb''', between line 843 and 852 like this
     49{{{
     50 843   VALID_PATHS = {
     51 844     "mode=" => %r{net/[ew][01]},
     52 845     "type=" => %r{net/[ew][01]},
     53 846     "rts=" => %r{net/[ew][01]},
     54 847     "rate=" => %r{net/[ew][01]},
     55 848     "essid=" => %r{net/[ew][01]},
     56 849     "ip=" => %r{net/[ew][01]},
     57 850     "channel=" => %r{net/[ew][01]},
     58 851     "tx_power=" => %r{net/[ew][01]},
     59 852     "enforce_link=" => %r{net/[ew][01]},
     60 853
     61 854     "net" => //
     62 855   }
     63}}}
     64
     65"'''mode'''", "'''type'''", "'''rts'''", "'''rate'''", "'''essid'''", "'''channel'''", "'''tx_power'''" and "'''enforce_link'''" are eventually configured by iwconfig on nodes. So you may find valid value for these parameter with "man iwconfig". Parameter "'''ip'''" is configured by ifconfig with form like "192.168.0.1".
     66
     67Valid network devices include "'''w0'''", "'''w1'''", "'''e0'''" and "'''e1'''", which correspond device '''ath0''', '''ath1''', '''eth0''', and '''eth1''' respectively on nodes. Don't try to configure '''w1''' because there is only one wireless device('''w0''') on each node. '''Never use e0 for experiments because eth0 is the port that is used to communicate with Console and Service by nodes'''.