查看FreeNAS中的问题盘的序列号
By QQCif
年轻不懂事,小姐姐都在Raid-Z1上,今天收到监控邮件,说是scrub的时候发现了错误并修复了。可是给出的报告里面列出的是一串gptid 16548ce8-xxxx-…,并不知道是哪块盘,其实我已经心知肚明了,最惨的5号盘被一根垃圾线摧残了很久。
以下操作应用于家庭,不要用于生产环境,生产环境请联系support。如果盘还在线,使用
glabel status
查看和设备名对应关系
[root@freenas] ~# glabel status
Name Status Components
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufs/FreeNASs1a N/A da0s1a
gptid/xxxxxxxx-xxxx-xxxx-b598-000c299be4a0 N/A da1p2
gptid/xxxxxxxx-xxxx-xxxx-b598-000c299be4a0 N/A da2p2
gptid/xxxxxxxx-xxxx-xxxx-b598-000c299be4a0 N/A da3p2
gptid/xxxxxxxx-xxxx-xxxx-b598-000c299be4a0 N/A da4p2
gptid/16548ce8-xxxx-xxxx-b598-000c299be4a0 N/A da5p2
果然是da5呢,用smartctl看下盘的信息
[root@freenas] ~# smartctl -i /dev/da5
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: HGST HTS541010A9E680
Serial Number: JA10021XXXXXXX
LU WWN Device Id: 5 000cca 768e940b0
Firmware Version: JA0OA560
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Jul 16 08:30:31 2018 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
可以把盘拿出来看看标签上的序列号。家用无所谓了,停机就停机了。
参考了SO的这个问题,他还说了glabel看不到分区的情况下怎么弄。接下来就是等发工资换盘,或者直接降成raid10.