<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I can find the physical location of the disk, and can turn on its id light.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Claudio Kuenzler <napsty@gmail.com><br>
<b>Sent:</b> Friday, July 8, 2022 5:33 AM<br>
<b>To:</b> Ed Trumbull <EdT@as2inc.com><br>
<b>Cc:</b> smartmontools-support@listi.jpberlin.de <smartmontools-support@listi.jpberlin.de><br>
<b>Subject:</b> Re: [smartmontools-support] Where do I look to find the correlation between a physical disk and its /dev/sd# equivalent?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"></div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jul 8, 2022 at 11:16 AM Ed Trumbull <<a href="mailto:EdT@as2inc.com" data-auth="NotApplicable">EdT@as2inc.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Where do I look to find what /dev/sd## represents megaraid,32?</div>
<br>
</div>
</blockquote>
<div><br>
</div>
<div>I'm not 100% certain if you are looking for the actual physical drive (which drive in which slot) of megaraid,32 or something else.</div>
<div>If you are indeed looking for the physical location of the drive, you can retrieve the drive's serial number from smartctl. In the following example I'm doing this for drive megaraid,8:<br>
</div>
<div><br>
</div>
<div>smartctl -i -d megaraid,8 /dev/sda | grep -i serial<br>
Serial number: S40NNNNNNNNNNNNNNN4M</div>
<div><br>
</div>
<div>Now you can use the megacli command to list all physical drives: megacli -PDList -Aall</div>
<div><br>
</div>
<div>Go through the output and look for the serial number in the "Inquiry Data" line. Note: Sometimes the serial number might be cut by some characters.
<br>
</div>
<div>This should show you the physical location of the drive in the "Slot Number" line.</div>
<div><br>
</div>
<div>Not sure if this is what you've asked for though.<br>
</div>
<div> </div>
</div>
</div>
</div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Claudio Kuenzler <napsty@gmail.com><br>
<b>Sent:</b> Friday, July 8, 2022 5:33 AM<br>
<b>To:</b> Ed Trumbull <EdT@as2inc.com><br>
<b>Cc:</b> smartmontools-support@listi.jpberlin.de <smartmontools-support@listi.jpberlin.de><br>
<b>Subject:</b> Re: [smartmontools-support] Where do I look to find the correlation between a physical disk and its /dev/sd# equivalent?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"></div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jul 8, 2022 at 11:16 AM Ed Trumbull <<a href="mailto:EdT@as2inc.com" data-auth="NotApplicable">EdT@as2inc.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Where do I look to find what /dev/sd## represents megaraid,32?</div>
<br>
</div>
</blockquote>
<div><br>
</div>
<div>I'm not 100% certain if you are looking for the actual physical drive (which drive in which slot) of megaraid,32 or something else.</div>
<div>If you are indeed looking for the physical location of the drive, you can retrieve the drive's serial number from smartctl. In the following example I'm doing this for drive megaraid,8:<br>
</div>
<div><br>
</div>
<div>smartctl -i -d megaraid,8 /dev/sda | grep -i serial<br>
Serial number: S40NNNNNNNNNNNNNNN4M</div>
<div><br>
</div>
<div>Now you can use the megacli command to list all physical drives: megacli -PDList -Aall</div>
<div><br>
</div>
<div>Go through the output and look for the serial number in the "Inquiry Data" line. Note: Sometimes the serial number might be cut by some characters.
<br>
</div>
<div>This should show you the physical location of the drive in the "Slot Number" line.</div>
<div><br>
</div>
<div>Not sure if this is what you've asked for though.<br>
</div>
<div> </div>
</div>
</div>
</div>
</body>
</html>