From owner-freebsd-ports-bugs@freebsd.org Thu Sep 12 00:33:44 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BE0BDE4D0B for ; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46TKWX3dFvz4b3J for ; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7ABE5E4D0A; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A7F7E4D09 for ; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46TKWX2hfZz4b3H for ; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 41499EC55 for ; Thu, 12 Sep 2019 00:33:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x8C0Xh8Z062570 for ; Thu, 12 Sep 2019 00:33:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8C0XhIH062569 for ports-bugs@FreeBSD.org; Thu, 12 Sep 2019 00:33:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 240520] sysutils/smartmontools: add in daily smart.in possibility to work with areca controllers and autodetect nvme drives Date: Thu, 12 Sep 2019 00:32:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vvd@unislabs.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2019 00:33:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240520 Bug ID: 240520 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 CC: samm@os2.kiev.ua Flags: maintainer-feedback?(samm@os2.kiev.ua) Created attachment 207402 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D207402&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 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 a 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. 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.=