Linux查看机器和硬盘的SN
查看硬件RAID中某块硬盘SN
# sas 口:
[root@ ~]$ smartctl -a /dev/sda -d megaraid,n
***
Serial number: 6RJ974SR
***
# sat 口
[root@ ~]$ smartctl -a /dev/sda -d sat+megaraid,n
***
Serial number: 6RJ974SR
***
查看机器SN
[root@ ~]$ dmidecode -t1
***
Serial Number: 45IV4P2
***