<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Fine.. challenge accepted</div>
<div>&nbsp;</div>
<div>awk '/disk/&amp;&amp;!/RAID/{print; l&#43;&#43;} END {printf &quot;%0.2f\n&quot;, l/2}'</div>
<div>&nbsp;</div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">$ ( echo &quot;disk123&quot;; echo disk234; echo disk897; echo &quot;RAID&quot;) | awk '/disk/&amp;&amp;!/RAID/{print; l&#43;&#43;} END {printf &quot;%0.2f\n&quot;,l/2}'</span></font></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">disk123</span></font></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">disk234</span></font></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">disk897</span></font></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">1.50</span></font></div>
<div><font face="Calibri">&nbsp;</font></div>
<div>-----Original Message-----<br>

From: gpfsug-discuss &lt;gpfsug-discuss-bounces@gpfsug.org&gt; On Behalf Of Jonathan Buzzard<br>

Sent: Tuesday, May 10, 2022 3:09 PM<br>

To: gpfsug-discuss@gpfsug.org<br>

Subject: Re: [gpfsug-discuss] ESS and Disk Paths</div>
<div>&nbsp;</div>
<div>On 10/05/2022 20:57, Wahl, Edward wrote:</div>
<div>&nbsp;</div>
<div>&gt; There is much you can do with 'lsscsi' and &quot;mmlspdisk&quot; and whatnot.&nbsp;&nbsp;&nbsp; </div>
<div>&gt;&nbsp; &nbsp;Or something like &quot;mmgetpdisktopology &nbsp;&gt; </div>
<div>&gt; /tmp/mmgetpdisktopology.out; topsummary /tmp/mmgetpdisktopology.out &nbsp; &gt; topsummary&quot;</div>
<div>&gt; </div>
<div>&gt; mmlspdisk should all 4 paths with 2 being notenabled.&nbsp; Look for </div>
<div>&gt; missing paths?&nbsp; This may be the fastest.</div>
<div>&gt; &quot; device =</div>
<div>&gt; &quot;//ibmgssio5-hs.ten/dev/sdo(notEnabled),//ibmgssio5-hs.ten/dev/sdfe(notEnabled),//ibmgssio6-hs.ten/dev/sdo,//ibmgssio6-hs.ten/dev/sdfe&quot;&nbsp; &gt; &quot;</div>
<div>&nbsp;</div>
<div>On a DSS-G you can hop onto one of the servers and do</div>
<div>&nbsp;</div>
<div>lsscsi | grep disk | grep -v RAID | awk 'END {print NR/2}'</div>
<div>&nbsp;</div>
<div>The number should be the number of disks that you have including the log tip drives. If it's not then there is a path issue. I would imagine it's the same on the ESS.</div>
<div>&nbsp;</div>
<div>If I thought about it for a bit you could ditch the two greps and do it all in Awk. If the Awk is too complicated just replace it with 'wc -l' </div>
<div>but you will end up with a number that should be twice the number of drives.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>JAB.</div>
<div>&nbsp;</div>
<div>-- </div>
<div>Jonathan A. Buzzard&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel: &#43;44141-5483420</div>
<div>HPC System Administrator, ARCHIE-WeSt.</div>
<div>University of Strathclyde, John Anderson Building, Glasgow. G4 0NG</div>
<div>&nbsp;</div>
<div>_______________________________________________</div>
<div>gpfsug-discuss mailing list</div>
<div>gpfsug-discuss at gpfsug.org</div>
<div><a href="https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org__;!!F9svGWnIaVPGSwU!sl4vQf2qHT1fXJuzhho-JRymyZj12LRJ9FWZDM8-GQevtCoEp6PLOLnqSa5n94u0nmRXL0WEncaSGiYck_o6XaO3xk5vf4OpaJ3ChQ$">https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org__;!!F9svGWnIaVPGSwU!sl4vQf2qHT1fXJuzhho-JRymyZj12LRJ9FWZDM8-GQevtCoEp6PLOLnqSa5n94u0nmRXL0WEncaSGiYck_o6XaO3xk5vf4OpaJ3ChQ$</a>
</div>
<div>&nbsp;</div>
</span></font>
</body>
</html>