Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2008 16:00:09 GMT
From:      Kris Kennaway <kris@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/125680: atacontrol depends on executable in /usr
Message-ID:  <200807161600.m6GG09xR058131@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/125680; it has been noted by GNATS.

From: Kris Kennaway <kris@FreeBSD.org>
To: Stef Walter <stef@memberwebs.com>
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 <Intel MatrixRAID RAID1> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807161600.m6GG09xR058131>