大网数据广告活动
服务器运维问答

Finding the serial number of hard disk drives on a SuperMicro server running MegaRAID SAS 8708ELP

· 52CE 我爱测

As the title says, I have under my care a SuperMicro server running a hardware RAID 6 with a MegaRAID SAS 8708ELP on Linux. I have two failed disks that I have identified as the drives in slot 2 and 4, howerver, my boss tells me …

问题原文

原帖链接 · TuturuJones · CC BY-SA 3.0

As the title says, I have under my care a SuperMicro server running a hardware RAID 6 with a MegaRAID SAS 8708ELP on Linux. I have two failed disks that I have identified as the drives in slot 2 and 4, howerver, my boss tells me that the drives are somewhat scrambled and since the slots start in 0, I'm not sure which hard disks I'm supposed to be changing. I tried to find out the serial number of the drives so I could compare with the drives I remove, but all the commands I've been running to find such info haven't been working.

I tried using

#smartctl -d sat+megaraid,2 -a /dev/sda
#smartctl -d megaraid,2 -a /dev/sda

But both only give an invalid argument message.

I've tried running lshw but it only gives me the info of the Raid card itself.

And when I ran megacli -PDList -aAll I can identify my disks, but I'm not sure what is useful for what I need from all the info.

I'm guessing I only need to remove the 3rd and 5th disk from the server, but I just wanted to be absolutely sure of this before doing it.

I'd appreciate any advice, since I'm not really an IT guy.

Thanks.

社区高分解答

原帖链接 · Aaron Digulla · CC BY-SA 3.0

Using storcli, the command is:

storcli /c0/eALL/sALL show all | egrep 'Device attributes|SN = '

will print something like:

Drive /c0/e252/s0 Device attributes :
SN =      WD-WMC1T4142955

The first line gives you the enclosure and slot, the second line is the serial number of the disk.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。