<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Aaron<br>
    <div class="moz-forward-container"> <br>
        An alternative method for you is:<br>
      <br>
      from arcapix.fs.gpfs import Nsds<br>
      <br>
      >>> from arcapix.fs.gpfs import Nsds<br>
      >>> nsd = Nsds()<br>
      >>> for n in nsd.values():<br>
      ...     print n.device, n.id<br>
      ... <br>
      /gpfsblock/mmfs1-md1 md3200_001_L000<br>
      /gpfsblock/mmfs1-md2 md3200_001_L001<br>
      /gpfsblock/mmfs1-data1 md3200_001_L002<br>
      /gpfsblock/mmfs1-data2 md3200_001_L003<br>
      /gpfsblock/mmfs1-data3 md3200_001_L004<br>
      /gpfsblock/mmfs2-md1 md3200_002_L000<br>
      <br>
      Ref: <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://arcapix.com/gpfsapi/nsds.html">http://arcapix.com/gpfsapi/nsds.html</a><br>
      <br>
      Obviously you can filter a specific device by the usual Pythonic
      string comparators.<br>
      <br>
      Jez<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 17/12/16 07:04, Luis Bolinches
        wrote:<br>
      </div>
      <blockquote
cite="mid:OF75121286.1ED8C364-ON0025808C.0026D325-0025808C.0026D4AE@notes.na.collabserv.com"
        type="cite">
        <div class="socmaildefaultfont" dir="ltr"
          style="font-family:Arial, Helvetica,
          sans-serif;font-size:10.5pt">
          <div dir="ltr">Hi</div>
          <div dir="ltr"> </div>
          <div dir="ltr">THe ts* is a good fear, they are internal
            commands bla bla bla you know that</div>
          <div dir="ltr"> </div>
          <div dir="ltr">Have you tried mmlsnsd -X</div>
          <div dir="ltr"><br>
            --<br>
            Ystävällisin terveisin / Kind regards / Saludos cordiales /
            Salutations<br>
            <br>
            Luis Bolinches<br>
            Lab Services<br>
            <a moz-do-not-send="true" class="moz-txt-link-freetext"
              href="http://www-03.ibm.com/systems/services/labservices/">http://www-03.ibm.com/systems/services/labservices/</a><br>
            <br>
            IBM Laajalahdentie 23 (main Entrance) Helsinki, 00330
            Finland<br>
            Phone: +358 503112585<br>
            <br>
            "If you continually give you will continually have."
            Anonymous</div>
          <div dir="ltr"> </div>
          <div dir="ltr"> </div>
          <blockquote data-history-content-modified="1" dir="ltr"
            style="border-left:solid #aaaaaa 2px; margin-left:5px;
            padding-left:5px; direction:ltr; margin-right:0px">-----
            Original message -----<br>
            From: Aaron Knister <a moz-do-not-send="true"
              class="moz-txt-link-rfc2396E"
              href="mailto:aaron.s.knister@nasa.gov"><aaron.s.knister@nasa.gov></a><br>
            Sent by: <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><br>
            To: gpfsug main discussion list <a moz-do-not-send="true"
              class="moz-txt-link-rfc2396E"
              href="mailto:gpfsug-discuss@spectrumscale.org"><gpfsug-discuss@spectrumscale.org></a><br>
            Cc:<br>
            Subject: [gpfsug-discuss] translating /dev device into nsd
            name<br>
            Date: Sat, Dec 17, 2016 6:24 AM<br>
             
            <div><font face="Default Monospace,Courier
                New,Courier,monospace" size="2">Hi Everyone,<br>
                <br>
                I'm curious about the most straightforward and fastest
                way to identify<br>
                what NSD a given /dev device is. The best I can come up
                with is<br>
                "tspreparedisk -D device_name" which gives me something
                like:<br>
                <br>
                tspreparedisk:0:0A6535145840E2A6:/dev/dm-134::::::0:<br>
                <br>
                that I can then parse and map the nsd id to the nsd
                name. I hesitate<br>
                calling ts* commands directly and I admit it's perhaps
                an irrational<br>
                fear, but I associate the -D flag with "delete" in my
                head and am afraid<br>
                that some day -D may be just that and *poof* there go my
                NSD descriptors.<br>
                <br>
                Is there a cleaner way?<br>
                <br>
                -Aaron<br>
                <br>
                --<br>
                Aaron Knister<br>
                NASA Center for Climate Simulation (Code 606.2)<br>
                Goddard Space Flight Center<br>
                (301) 286-2776<br>
                _______________________________________________<br>
                gpfsug-discuss mailing list<br>
                gpfsug-discuss at spectrumscale.org<br>
                <a moz-do-not-send="true"
                  href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss"
                  target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font><br>
               </div>
          </blockquote>
          <div dir="ltr"> </div>
        </div>
        <br>
        Ellei edellä ole toisin mainittu: / Unless stated otherwise
        above:<br>
        Oy IBM Finland Ab<br>
        PL 265, 00101 Helsinki, Finland<br>
        Business ID, Y-tunnus: 0195876-3 <br>
        Registered in Finland<br>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a>
</pre>
      </blockquote>
      <br>
      <div class="moz-signature">-- <br>
        <div> <font color="#000000" face="arial"> <b>Jez Tucker</b><br>
            VP of Research and Development, ArcaStream<br>
            <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
              href="mailto:jtucker@arcastream.com">jtucker@arcastream.com</a><br>
            <a moz-do-not-send="true" href="http://www.arcastream.com">www.arcastream.com</a> <font
              color="#FF0000">|</font> <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="mailto:Tw:@arcastream.com">Tw:@arcastream.com</a><br>
          </font> </div>
      </div>
    </div>
  </body>
</html>

<br>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><a href="http://pixitmedia.com" target="_blank"><img src="http://pixitmedia.com/sig/pixstor_one.png"></a></div><div><font face="Arial, Helvetica, sans-serif" size="3">This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.</font></div>