misc/125680: atacontrol depends on executable in /usr
Stef Walter
stef at memberwebs.com
Wed Jul 16 15:40:01 UTC 2008
>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 at 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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list