MegaCli -pdlist -a0 | grep -e "Slot Number:" -e "Inquiry Data:"
, but the /dev/mfid[#] are not sequential. camcontrol devlist -v
gives me only the drive model, no serial number, nor the /dev/mfid[#]. mfiutil show drives
gives me the serial number and slot, not the /dev/mfid[#]. mfiutil show volumes
give me only the /dev/mfid[#].t1066 said:The last entry in the output ofdiskinfo -v /dev/ada0
should give the serial number of the drive. So maybediskinfo -v /dev/mfid#
would work.
diskinfo -v /dev/mfid8
/dev/mfid8
512 # sectorsize
1998998994944 # mediasize in bytes (1.8T)
3904294912 # mediasize in sectors
0 # stripesize
0 # stripeoffset
243031 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.
smartctl -i /dev/ada0
will list serial numbers in the output.