[openib-general] Specifying subnet prefix to OpenSM?
Galen Shipman
gshipman at lanl.gov
Tue Jan 2 18:02:51 PST 2007
Worked like a charm,..
Thanks
On Jan 2, 2007, at 4:24 PM, Hal Rosenstock wrote:
> Hi Galen,
>
> On Tue, 2007-01-02 at 17:49, Galen Shipman wrote:
>> I have 2 test machines, each with two HCAs. One HCA on each node is
>> plugged into a switch, the other two HCAs are connected back to back.
>> The goal is to get two different subnets, one for each pair of HCAs.
>> Currently I am using "opensm --guid" in order to run OpenSM on the
>> each HCA/Port 0. The problem is that I also want these two subnets to
>> appear distinct in some fashion. I am querying the subnet via:
>>
>> ibv_query_gid(hca->ib_dev_context, port_num, 0, &gid);
>> subnet = ntoh64(gid.global.subnet_prefix);
>>
>>
>> Not sure if this is the correct thing to do, but this is what I am
>> doing ;-).
>>
>> So, is there a way to specify the subnet prefix to OpenSM?
>
> Yes, by supplying subnet_prefix in the opensm.opts file.
>
> If both opensms run on the same machine, you will need 2 different
> OSM_CACHE_DIRs to have different options.
>
>> Is there
>> some other method that I can use to determine that the subnets are
>> distinct?
>
> Not that I'm aware of.
>
> -- Hal
>
>>
>> Thanks,
>>
>> Galen
>>
>> _______________________________________________
>> openib-general mailing list
>> openib-general at openib.org
>> http://openib.org/mailman/listinfo/openib-general
>>
>> To unsubscribe, please visit http://openib.org/mailman/listinfo/
>> openib-general
>>
>
More information about the general
mailing list