[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

misc/120169: gmirror commands error with "Class not found" or other



>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_(_at_)_tank_(_dot_)_secure-computing_(_dot_)_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:
>Unformatted:
_______________________________________________
freebsd-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"