[Lustre-discuss] On which OSS are the OST?

Sheila Barthel Sheila.Barthel at Sun.COM
Tue Jan 26 08:21:00 PST 2010


I wrote the following procedure to identify which machine is serving a 
specific OST using ost_conn_uuid. This procedure will appear in a new 
version of the Lustre manual, due to be released later this week.

Sheila

-----------------------------------------------------------------

4.3.14 Determining Which Machine is Serving a Specific OST

In the course of administering a Lustre file system, you may need to 
determine which machine is serving a specific OST. It is not as simple 
as identifying the machine’s IP address, as IP is only one of several 
networking protocols that Lustre uses and, as such, LNET does not use IP 
addresses as node identifiers, but NIDs instead.

To identify the NID that is serving a specific OST, run one of the 
following commands on a client (you do not need to be a root user):

client$ lctl get_param osc.${fsname}-${OSTname}*.ost_conn_uuid

For example:

client$ lctl get_param osc.*-OST0000*.ost_conn_uuid

osc.myth-OST0000-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp

- OR -

client$ lctl get_param osc.*.ost_conn_uuid

osc.myth-OST0000-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
osc.myth-OST0001-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
osc.myth-OST0002-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
osc.myth-OST0003-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
osc.myth-OST0004-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp

Johann Lombardi wrote:
> On Mon, Jan 25, 2010 at 05:24:32PM -0700, Andreas Dilger wrote:
>   
>> I agree it makes sense to have a command to do this.  As I write this  
>> I'm offline, so I can't poke at my test filesystem, but thought that / 
>> proc/fs/lustre/osc/*/import will contain the OST name and NID(s) to  
>> which they are connected.
>>     
>
> Yes, the import file indeed contains all this information.
> ost_conn_uuid can also be used, e.g.:
>
> # lctl get_param osc.*.ost_conn_uuid
> osc.lol-OST0000-osc-f4100000.ost_conn_uuid=10.8.0.177 at tcp
> osc.lol-OST0001-osc-f4100000.ost_conn_uuid=10.8.0.178 at tcp
>
> Johann
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
>   




More information about the lustre-discuss mailing list