From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 4 15:30:05 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31702106564A for ; Wed, 4 Jul 2012 15:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E0E2E8FC22 for ; Wed, 4 Jul 2012 15:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q64FU4PW071260 for ; Wed, 4 Jul 2012 15:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q64FU4qf071259; Wed, 4 Jul 2012 15:30:04 GMT (envelope-from gnats) Resent-Date: Wed, 4 Jul 2012 15:30:04 GMT Resent-Message-Id: <201207041530.q64FU4qf071259@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Florian Heigl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B1CB106564A for ; Wed, 4 Jul 2012 15:21:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 17D3C8FC08 for ; Wed, 4 Jul 2012 15:21:10 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q64FL9Dk044972 for ; Wed, 4 Jul 2012 15:21:09 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q64FL9gs044971; Wed, 4 Jul 2012 15:21:09 GMT (envelope-from nobody) Message-Id: <201207041521.q64FL9gs044971@red.freebsd.org> Date: Wed, 4 Jul 2012 15:21:09 GMT From: Florian Heigl To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/169647: gmultipath fails to detect missing module X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 15:30:05 -0000 >Number: 169647 >Category: kern >Synopsis: gmultipath fails to detect missing module >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 04 15:30:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Florian Heigl >Release: 9.0-RELEASE-p3 >Organization: Mathias Kettner GmbH >Environment: FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: If you don't have the geom_multipath module loaded, gmultipath list -a (and all other options) will report an error that the command is not available. # gmultipath list -a gmultipath: Command 'list' not available. # gmultipath status gmultipath: Command 'status' not available. Once loading the module the commands will magically start to work. I would beg you for a more useful error handling. Yes, I know there might be some corner-cased reason since geom is a framework and so the command is in fact not available without the module. Do not want. gmultipath list should either return an empty list or an actual error (module not loaded!) here. I would like to add gmultipath monitoring to our software (and by that, to nagios), but it's almost impossible with unreliable output like this. I can't workaround this using kldstat, since it might be in-kernel, not a module. How can I ask geom if it has multipathing features running? I filed this as a medium bug since multipathing is amongst the most critical parts of an OS (many times more important than raid, since critical data will not be on a local raid...) and there needs to be a reliable means of querying it. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: