From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 16 16:00:09 2008 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 900A71065683 for ; Wed, 16 Jul 2008 16:00:09 +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 7F6CB8FC18 for ; Wed, 16 Jul 2008 16:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6GG09pj058132 for ; Wed, 16 Jul 2008 16:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6GG09xR058131; Wed, 16 Jul 2008 16:00:09 GMT (envelope-from gnats) Date: Wed, 16 Jul 2008 16:00:09 GMT Message-Id: <200807161600.m6GG09xR058131@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kris Kennaway Cc: Subject: Re: misc/125680: atacontrol depends on executable in /usr X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kris Kennaway List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2008 16:00:09 -0000 The following reply was made to PR misc/125680; it has been noted by GNATS. From: Kris Kennaway To: Stef Walter Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/125680: atacontrol depends on executable in /usr Date: Wed, 16 Jul 2008 17:55:43 +0200 Stef Walter wrote: >> Number: 125680 >> Category: misc >> Synopsis: atacontrol depends on executable in /usr >> Confidential: no >> Severity: serious >> Priority: medium >> Responsible: freebsd-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Wed Jul 16 15:40:01 UTC 2008 >> Closed-Date: >> Last-Modified: >> Originator: Stef Walter >> Release: 6.3-RELEASE-p2 >> Organization: >> Environment: > FreeBSD m2.npubs.com 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #3: Fri Jul 11 15:39:09 UTC 2008 root@m2.npubs.com:/usr/obj/usr/src/sys/RACK2 i386 > >> Description: > When using atacontrol from single user mode, one cannot rebuild a RAID array. The command /usr/bin/nice is not mounted or available in single user mode. > > # atacontrol rebuild ar0 > /usr/bin/nice: not found > > The raid is marked as rebuilding, but never completes. When rebooted the RAID is marked as ready: > > ar0: 476937MB status: READY > ar0: disk0 READY (master) using ad4 at ata2-master > ar0: disk1 READY (mirror) using ad6 at ata3-master > > > However this obviously results in file system corruption: > > bad dir ino 50722 at offset 0: mangled entry > panic: ufs_dirbad: bad dir > cpuid = 1 > Uptime: 25s > Cannot dump. No dump device defined. > Automatic reboot in 15 seconds - press a key on the console to abort > Rebooting... > >> How-To-Repeat: > Remove one drive of an ata raid device: > > # atacontrol detach ata3 > > Reboot into single user mode, add spare and try to rebuild: > > # atacontrol addspare ar0 ad6 > # atacontrol rebuild ar0 > > >> Fix: > Move /usr/bin/nice to /bin/nice Better fix: use /bin/csh and the built-in nice. Kris