0x1
参考文档:
https://www.truenas.com/docs/core/coretutorials/storage/disks/diskreplace/
磁盘、存储池故障的日志参考:
现象1
New alerts:
* Device /dev/gptid/e1fd123b-8795-11ed-bee4-b083fedec519 is causing slow I/O on
pool dev1.
现象2
New alerts:
* Pool dev1 state is ONLINE: One or more devices has experienced an
unrecoverable error. An attempt was made to correct the error. Applications
are unaffected.
现象3
New alert:
* Pool dev1 state is DEGRADED: One or more devices are faulted in response to
persistent errors. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
The following devices are not healthy:
* Disk IBM-XIV HUS723020ALS64A4 YFHEUB3G is FAULTED
* Device: /dev/da6, failed to read SMART values.
* Device: /dev/da6, Read SMART Self-Test Log Failed.
在现象1中提示io缓慢的时候如何定位是哪个磁盘呢?先可以通过命令查看每个盘的情况
root@freenas[/dev/gptid]# zpool status
pool: boot-pool
state: ONLINE
scan: scrub repaired 0B in 00:24:37 with 0 errors on Sat Jul 29 04:09:37 2023
config:
NAME STATE READ WRITE CKSUM
boot-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da13p2 ONLINE 0 0 0
da12p2 ONLINE 0 0 0
errors: No known data errors
pool: dev1
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: scrub repaired 0B in 11:48:41 with 0 errors on Sun Jul 30 11:48:42 2023
config:
NAME STATE READ WRITE CKSUM
dev1 DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
gptid/15954610-bc06-11ed-a407-b083fedec519 ONLINE 0 0 0
gptid/e1b6b74b-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
gptid/e1fd123b-8795-11ed-bee4-b083fedec519 FAULTED 12 11 0 too many errors
gptid/bb486a3d-c7d5-11ed-a407-b083fedec519 ONLINE 0 0 0
gptid/e249a2c9-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
gptid/034b850b-bc17-11ed-a407-b083fedec519 ONLINE 0 0 0
gptid/e1e4d7ce-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
gptid/e23f6124-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
gptid/e2971a19-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
gptid/e25d107c-8795-11ed-bee4-b083fedec519 ONLINE 0 0 0
errors: No known data errors
可以使用如下命令查看 gptid 对应的分区:
label status | tail -n +2 | sort -k53
接着会看到有的盘会有多个分区,那么每个分区分别是什么呢,可以使用如下命令查询:
gpart show
评论