From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 18 21:30:12 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FE02106566C for ; Sun, 18 Sep 2011 21:30:12 +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 BBEAE8FC14 for ; Sun, 18 Sep 2011 21:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8ILUAUp069990 for ; Sun, 18 Sep 2011 21:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8ILUAxY069988; Sun, 18 Sep 2011 21:30:10 GMT (envelope-from gnats) Resent-Date: Sun, 18 Sep 2011 21:30:10 GMT Resent-Message-Id: <201109182130.p8ILUAxY069988@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, Eugene Grosbein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69FFF106566C for ; Sun, 18 Sep 2011 21:21:58 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grosbein.pp.ru [89.189.172.146]) by mx1.freebsd.org (Postfix) with ESMTP id C9FA38FC14 for ; Sun, 18 Sep 2011 21:21:57 +0000 (UTC) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.5/8.14.5) with ESMTP id p8IKkfBM004610; Mon, 19 Sep 2011 03:46:41 +0700 (NOVST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.5/8.14.5/Submit) id p8IKkfGx004609; Mon, 19 Sep 2011 03:46:41 +0700 (NOVST) (envelope-from eugen) Message-Id: <201109182046.p8IKkfGx004609@grosbein.pp.ru> Date: Mon, 19 Sep 2011 03:46:41 +0700 (NOVST) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: mav@FreeBSD.org Subject: kern/160811: Cannot change gmirror provider priority in RELENG_7 (r196879) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2011 21:30:12 -0000 >Number: 160811 >Category: kern >Synopsis: Cannot change gmirror provider priority in RELENG_7 (r196879) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 18 21:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 7 >Organization: RDTC JSC >Environment: System: FreeBSD 7.2-RELEASE >Description: When first of gmirror's drives in some old server started dying (read errors, SMART offline read test fails) I was forced to prepare new hardware to replace this 2-drive PATA system. But, it appears this is not possible to make final dumps of its file systems as dump(8) hangs the whole box while reading failing drive. I was going to switch gmirror to 'prefer' balance algorithm to disable reads from first drive. I could not achieve this as /sbin/gmirror in RELENG_7 does not allow to change provider priorities (both drives priorities are zeroes). >How-To-Repeat: gmirror(8) manual page shows no support for "gmirror -p" as in 8.x and 9.x branches due to missed SVN r196879 merge. >Fix: Please perform merge of r196879 to RELENG_7. I've did it manually, it applies cleanly and works just fine, I was able to make second drive more preferable with this change. Eugene Grosbein >Release-Note: >Audit-Trail: >Unformatted: