我的主内置驱动器上的所有分区都直接安装在“/“。
我的所有辅助驱动器分区都安装在“/地点“,以避免在指定挂载点时出现自动挂载程序问题”/媒体“。这些辅助分区均具有禁止自动中指定的选项文件系统。
那么...为什么聪明的当我不挂载分区时,会报告有关分区问题的烦人电子邮件吗? 如果我安装它们,这些电子邮件就会停止生成!
如何让 SMART 不再骚扰我并堵塞根电子邮件帐户?
电子邮件文本(标准消息):
From root@OasisMega1 Sun Jan 1 21:44:49 2023
Subject: SMART error (CurrentPendingSector) detected on host: OasisMega1
To: <root@OasisMega1>
X-Mailer: mail (GNU Mailutils 3.7)
This message was generated by the smartd daemon running on:
host name: OasisMega1
DNS domain: [Empty]
The following warning/error was logged by the smartd daemon:
Device: /dev/sdb [SAT], 10 Currently unreadable (pending) sectors
Device info:
WDC WD5000AAKS-00V1A0, S/N:WD-WMAWF0060756, WWN:5-0014ee-0018be658, FW:05.01D05, 500 GB
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
The original message about this issue was sent at Sun Jun 12 17:49:51 2022 EDT
Another message will be sent in 24 hours if the problem persists.
系统日志条目(已删除重复)如下:
Jan 1 22:14:47 OasisMega1 smartd[1232]: Device: /dev/sdb [SAT], 10 Currently unreadable (pending) sectors
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb, type changed from 'scsi' to 'sat'
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], opened
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], WDC WD5000AAKS-00V1A0, S/N:WD-WMAWF0060756, WWN:5-0014ee-0018be658, FW:05.01D05, 500 GB
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], found in smartd database: Western Digital Caviar Blue (SATA)
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], state read from /var/lib/smartmontools/smartd.WDC_WD5000AAKS_00V1A0-WD_WMAWF0060756.ata.state
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], 10 Currently unreadable (pending) sectors
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 97 to 119
Jan 2 13:17:41 OasisMega1 smartd[1202]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD5000AAKS_00V1A0-WD_WMAWF0060756.ata.state
Jan 2 13:17:43 OasisMega1 kernel: [ 22.375392] Adding 1048572k swap on /dev/sdb3. Priority:4 extents:1 across:1048572k FS
fstab 条目:
# /dev/sdb3 swap DB003_S1 {something} 1G [SWAP] INTERNAL
UUID={something} none swap sw,pri=4 0 0
# /dev/sdb4 ext2 DB003_F1 {something} 195.3G /site/DB003_F1 INTERNAL
UUID={something} /site/DB003_F1 ext2 defaults,nofail,noauto 0 0
# /dev/sdb5 ext2 DB003_F2 {something} 267.5G /site/DB003_F2 INTERNAL
UUID={something} /site/DB003_F2 ext2 defaults,nofail,noauto 0 0
- UbuntuMATE 20.04
- AMD
- Linux 5.4.0-135-通用 #152-Ubuntu SMP 2022 年 11 月 23 日星期三 20:19:22 UTC x86_64 x86_64 x86_64 GNU/Linux
答案1
根据大家的建议,我将实施以下临时修改/etc/smartd.conf。
这将使我更好地评估我的下一步行动。
##DISABLED##DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sda -a -o on -S on -s (S/../.././16|L/../../6/16)
/dev/sdb -H -l error -l selftest -t -I 194
/dev/sdc -d scsi -s L/../.././16
我希望最后一个只有在外部 USB 驱动器实际插入时才会启动。
我也不确定如何修改 sdb 行以进行每天下午 4 点的长扫描(这是否像 sdc 一样?),或者这是否会与 sdb 的其他定义设置冲突?