Date: Thu, 12 Sep 2019 00:28:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 240519] sysutils/smartmontools: add in daily smart.in possibility to work with areca controllers and autodetect nvme drives Message-ID: <bug-240519-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240519 Bug ID: 240519 Summary: sysutils/smartmontools: add in daily smart.in possibility to work with areca controllers and autodetect nvme drives Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: vvd@unislabs.com CC: samm@os2.kiev.ua Flags: maintainer-feedback?(samm@os2.kiev.ua) CC: samm@os2.kiev.ua Created attachment 207401 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D207401&action= =3Dedit add in daily smart.in possibility to work with areca controllers and autode= tect nvme drives 1. There are no possibility to set drives on areca controllers in periodic.conf. Command line look like: smartctl /dev/arcmsr0 -dareca,1 -a With this patch you can set in periodic.conf: daily_status_smart_devices=3D"arcmsr0,1 arcmsr0,2 arcmsr0,3 arcmsr0,4 da0 d= a1" # /usr/local/etc/periodic/daily/smart SMART status: Checking health of /dev/arcmsr0 (-dareca,1): OK Checking health of /dev/arcmsr0 (-dareca,2): OK Checking health of /dev/arcmsr0 (-dareca,3): OK Checking health of /dev/arcmsr0 (-dareca,4): OK Checking health of /dev/da0: OK Checking health of /dev/da1: OK 2. Auto-detect in /usr/local/etc/periodic/daily/smart show nvd* devices: # sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g' ada1 ada0 da1 da0 nvd1 nvd0 But smartctl want nvme*. Patch is hack, but it work: # sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g; s/nvd/nvme/g' ada1 ada0 da1 da0 nvme1 nvme0 # /usr/local/etc/periodic/daily/smart=20 SMART status: Checking health of /dev/ada1: OK Checking health of /dev/ada0: OK Checking health of /dev/da1: OK Checking health of /dev/da0: OK Checking health of /dev/nvme1: OK Checking health of /dev/nvme0: OK 3. I have question: if in /usr/local/etc/smartd.conf add option "-m email@domain -M test", then autostart of smartd during boot process is very long - trying end email, but mail daemon starts after smartd daemon.=20 I slove this issue: add word "mail" after "# REQUIRE: LOGIN" in /usr/local/etc/rc.d/smartd. Is it correct way to solve this issue? If yes, then add, plz, it to sysutils/smartmontools/files/smartd.in (I can = make diff file). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240519-7788>