From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 30 20:00:06 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 ECB8616A477 for ; Wed, 30 Jan 2008 20:00:06 +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 CADDE13C4F2 for ; Wed, 30 Jan 2008 20:00:06 +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 m0UK0616092382 for ; Wed, 30 Jan 2008 20:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0UK06iW092381; Wed, 30 Jan 2008 20:00:06 GMT (envelope-from gnats) Resent-Date: Wed, 30 Jan 2008 20:00:06 GMT Resent-Message-Id: <200801302000.m0UK06iW092381@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, Eric F Crist Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34D0E16A418 for ; Wed, 30 Jan 2008 19:57:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1276413C4D3 for ; Wed, 30 Jan 2008 19:57:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0UJtZoY055284 for ; Wed, 30 Jan 2008 19:55:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0UJtZdN055283; Wed, 30 Jan 2008 19:55:35 GMT (envelope-from nobody) Message-Id: <200801301955.m0UJtZdN055283@www.freebsd.org> Date: Wed, 30 Jan 2008 19:55:35 GMT From: Eric F Crist To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/120169: gmirror commands error with "Class not found" or other 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, 30 Jan 2008 20:00:07 -0000 >Number: 120169 >Category: misc >Synopsis: gmirror commands error with "Class not found" or other >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 30 20:00:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Eric F Crist >Release: 6.3-RELEASE and 6.3-STABLE >Organization: Secure Computing Networks >Environment: FreeBSD tank.secure-computing.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Sat Jan 26 15:30:52 CST 2008 root@tank.secure-computing.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: 1) The gmirror command/library included on disk 1 of the install CDs for 6.3-RELEASE and 7.0-BETA4 is severely crippled and cannot use the majority of the subcommands, as you could on the 6.2-RELEASE CD to create and modify gmirror arrays on the boot device. 2) Once I get a gmirror array set up and booted on to that device, I get the following errors (with their associated commands): # gmirror status Command 'status' not available. # gmirror insert gm0 /dev/da1 Class not found I see rumblings on the -stable mailing list that there is a problem when compiling geom_io.c, but they appear to be specific to 7.0-BETA4. >How-To-Repeat: For problem 1 above: Install FreeBSD 6.3-RELEASE onto a hard disk drive. Once installed, go to main menu, select Fixit. Select Fixit from CD/DVD Once Fixit has loaded, type the following commands: chroot /dist mount_devfs devfs /dev ### You should get error at this next command, or continue gmirror clear /dev/ # No error on load gmirror load # Should get a the help output from gmirror - it doesn't recognize 'label'; gmirror label -v -b load gm0 /dev/ For 2 above, do the following: Install FreeBSD 6.3-RELEASE go back to main menu insert 6.2-RELEASE cd select fixit - then from cd/dvd select OK at warning of different disk version from sysinstall version type the following commands when fixit is loaded: chroot /dist mount_devfs devfs /dev gmirror clear /dev/ ## Should get error above if there was no gmirror - it's OK gmirror load gmirror label -v -b load gm0 /dev/ mount /dev/mirror/gm0s1a /mnt echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf echo 'swapoff="YES"' >> /mnt/etc/rc.conf set -i ".bak" "s%%mirror/gm0%g" /mnt/etc/fstab reboot the system into newly installed OS as root, type gmirror status ## Error of "Command 'status' not available." df ## will show you're booted onto a gmirror array >Fix: >Release-Note: >Audit-Trail: >Unformatted: