From nobody@FreeBSD.org  Wed Jan 30 19:57:24 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 34D0E16A418
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <ecrist@secure-computing.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gmirror commands error with "Class not found" or other
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120169
>Category:       bin
>Synopsis:       gmirror(8) commands error with "Class not found" or other (regression)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lulf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 20:00:06 UTC 2008
>Closed-Date:    Sun Feb 10 14:58:59 UTC 2008
>Last-Modified:  Sun Feb 10 14:58:59 UTC 2008
>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/<hard_disk_freebsd_was_installed_on>
# 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/<hard_disk_freebsd_was_installed_on>


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/<disk_freebsd_was_installed_on>
## Should get error above if there was no gmirror - it's OK
gmirror load
gmirror label -v -b load gm0 /dev/<disk_freebsd_was_installed_on>
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%<dis_freebsd_was_installed_on>%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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jan 30 22:27:37 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120169 
State-Changed-From-To: open->analyzed 
State-Changed-By: lulf 
State-Changed-When: Mon Feb 4 09:51:53 UTC 2008 
State-Changed-Why:  
- I'm working on a patch for this that will be MFCed to RELENG_7 and RELENG_6. A workaround for 6.x is to unset GEOM_LIBRARY_PATH after chroot into the environment. 


Responsible-Changed-From-To: freebsd-geom->lulf 
Responsible-Changed-By: lulf 
Responsible-Changed-When: Mon Feb 4 09:51:53 UTC 2008 
Responsible-Changed-Why:  
- A patch have been created and aways review. The patch will probably be committed to RELENG_7 and RELENG_6. A workaround for 6.3 is to unset GEOM_LIBRARY_PATH after entering the chroot environment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120169 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/120169: commit references a PR
Date: Tue,  5 Feb 2008 14:06:20 +0000 (UTC)

 lulf        2008-02-05 14:06:15 UTC
 
   FreeBSD src repository
 
   Modified files:
     release              fixit.profile 
   Log:
   - Add extra paths for GEOM_LIBRARY_PATH to the fixit environment to enable all
     geom commands in a chrooted environment on the livefs cd.
   
   PR:             misc/120169
   Approved by:    pjd (mentor)
   MFC after:      2 days
   
   Revision  Changes    Path
   1.13      +1 -1      src/release/fixit.profile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: lulf 
State-Changed-When: Tue Feb 5 14:39:59 UTC 2008 
State-Changed-Why:  
- A patch to fix this is committed, and will be MFCed in a few days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120169 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/120169: commit references a PR
Date: Thu,  7 Feb 2008 12:20:17 +0000 (UTC)

 lulf        2008-02-07 12:20:12 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     release              fixit.profile 
   Log:
   MFC revision 1.13
   - Add extra paths for GEOM_LIBRARY_PATH to the fixit environment to enable all
     geom commands in a chrooted environment on the livefs cd.
   
   PR:             misc/120169
   Approved by:    pjd (mentor)
   
   Revision   Changes    Path
   1.10.10.3  +1 -1      src/release/fixit.profile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/120169: commit references a PR
Date: Thu,  7 Feb 2008 12:21:26 +0000 (UTC)

 lulf        2008-02-07 12:21:21 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     release              fixit.profile 
   Log:
   MFC revision 1.13
   - Add extra paths for GEOM_LIBRARY_PATH to the fixit environment to enable all
     geom commands in a chrooted environment on the livefs cd.
   
   PR:             misc/120169
   Approved by:    pjd (mentor)
   
   Revision  Changes    Path
   1.10.2.3  +1 -1      src/release/fixit.profile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, ecrist@secure-computing.net
Cc:  
Subject: Re: bin/120169: gmirror(8) commands error with "Class not found"
 or other (regression)
Date: Sun, 10 Feb 2008 15:16:41 +0100

 committed to R6 + R7, can this be closed now?
State-Changed-From-To: patched->closed 
State-Changed-By: rafan 
State-Changed-When: Sun Feb 10 14:58:58 UTC 2008 
State-Changed-Why:  
Patch committed to RELENG_[67] and HEAD. Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120169 
>Unformatted:
