Hi All, I used the "lfs getstripe" command to get the stripe info for a particular on the lustre client. Now I need to get the mapping between the "obdidx" and the corresponding IP address for the respective OSS. Is there any entry created in the procfs which I can use to get the IP address information? Thanks, J PS: Output of "lfs getstripte" $ lfs getstripe -v /mnt/lustre/zerofile /mnt/lustre/zerofile lmm_magic: 0x0BD10BD0 lmm_seq: 0x200000400 lmm_object_id: 0x8 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_stripe_pattern: 1 lmm_stripe_offset: 0 obdidx objid objid group 0 9 0x9 0 1 8 0x8 0
Hi Jack, I guess this is what you are looking for: 4.3.15 Determining Which Machine is Serving an OSTIn 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 Regards, Carlos -- Carlos Thomaz | HPC Systems Architect Mobile: +1 (303) 519-0578 cthomaz at ddn.com | Skype ID: carlosthomaz DataDirect Networks, Inc. 9960 Federal Dr., Ste 100 Colorado Springs, CO 80921 ddn.com <http://www.ddn.com/> | Twitter: @ddn_limitless <http://twitter.com/ddn_limitless> | 1.800.TERABYTE On 2/7/12 6:37 AM, "Jack David" <jd6589 at gmail.com> wrote:>lmm_stripe_pattern: 1 >
On Wed, Feb 8, 2012 at 9:57 AM, Carlos Thomaz <cthomaz at ddn.com> wrote:> Hi Jack, > > I guess this is what you are looking for: > > > 4.3.15 Determining Which Machine is Serving an OSTIn 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 >Thanks Carlos, That did the trick. It is reading the info from. /proc/fs/lustre/osc/*/ost_conn_uuid Thanks, J> Regards, > Carlos > > > > > > -- > Carlos Thomaz | HPC Systems Architect > Mobile: +1 (303) 519-0578 > cthomaz at ddn.com | Skype ID: carlosthomaz > DataDirect Networks, Inc. > 9960 Federal Dr., Ste 100 Colorado Springs, CO 80921 > ddn.com <http://www.ddn.com/> | Twitter: @ddn_limitless > <http://twitter.com/ddn_limitless> | 1.800.TERABYTE > > > > > > On 2/7/12 6:37 AM, "Jack David" <jd6589 at gmail.com> wrote: > >>lmm_stripe_pattern: 1 >> >-- J