<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> </div>
<div>awk '/disk/&&!/RAID/{print; l++} END {printf "%0.2f\n", l/2}'</div>
<div> </div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">$ ( echo "disk123"; echo disk234; echo disk897; echo "RAID") | awk '/disk/&&!/RAID/{print; l++} END {printf "%0.2f\n",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"> </font></div>
<div>-----Original Message-----<br>

From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> 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> </div>
<div>On 10/05/2022 20:57, Wahl, Edward wrote:</div>
<div> </div>
<div>> There is much you can do with 'lsscsi' and "mmlspdisk" and whatnot.    </div>
<div>>   Or something like "mmgetpdisktopology  > </div>
<div>> /tmp/mmgetpdisktopology.out; topsummary /tmp/mmgetpdisktopology.out   > topsummary"</div>
<div>> </div>
<div>> mmlspdisk should all 4 paths with 2 being notenabled.  Look for </div>
<div>> missing paths?  This may be the fastest.</div>
<div>> " device =</div>
<div>> "//ibmgssio5-hs.ten/dev/sdo(notEnabled),//ibmgssio5-hs.ten/dev/sdfe(notEnabled),//ibmgssio6-hs.ten/dev/sdo,//ibmgssio6-hs.ten/dev/sdfe"  > "</div>
<div> </div>
<div>On a DSS-G you can hop onto one of the servers and do</div>
<div> </div>
<div>lsscsi | grep disk | grep -v RAID | awk 'END {print NR/2}'</div>
<div> </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> </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> </div>
<div> </div>
<div>JAB.</div>
<div> </div>
<div>-- </div>
<div>Jonathan A. Buzzard                         Tel: +44141-5483420</div>
<div>HPC System Administrator, ARCHIE-WeSt.</div>
<div>University of Strathclyde, John Anderson Building, Glasgow. G4 0NG</div>
<div> </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> </div>
</span></font>
</body>
</html>