determine drive's SAS port

Darren Pilgrim list_freebsd at bluerosetech.com
Sat Oct 19 19:52:15 UTC 2013


On 10/19/2013 7:15 AM, Alexey Egorov wrote:
> Hello all,
>
> I have a server with LSI HBA card, and when I remove drive I can see
> following messages in log:
>
> (da0:mps0:0:5:0): lost device - 0 outstanding, 2 refs
> (da0:mps0:0:5:0): removing device entry
>
> Is there a way to determine physical port (number "5" in
> "(da0:mps0:0:5:0)") when drive is inserted? (I need this to be able
> to create device symlinks based on physical port).

Many RAID cards can indicate a port by blinking the activity light.  If 
not, perhaps you can trace the cables and get a PCB diagram?  This is 
exactly why I write the WWN, serial and, for ZFS/graid, GPT label on a 
visible edge of the disk/sled.


More information about the freebsd-hackers mailing list