Re: Geom RAID root report.
Doug == Doug White [EMAIL PROTECTED] writes: Doug On Tue, 1 Feb 2005, David Gilbert wrote: Gmirror on the fix-it CD appears to be impotent. It appears to have only 'help', 'list', 'load' and 'unload' as commands. Not useful. Doug If you manually load the geom_mirror.ko kernel module it Doug probably gets useful. Someone pointed out that there's a Doug hardwired path in there somewhere so load will fail, but if Doug you load the module manually then the commands become available. Doug I'll have to test it. I did that. This is not the case. If you run gmirror help when gmirror is not loaded, it does not load the module and it prints out a helpful list of things. If you do this on the fixit CD, it prints out a list of four commands: help, list, load and unload. Additionally, I loaded the kernel module manually from /dist/boot/kernel/geom_mirror.ko and this did not change the behaviour of the command. Dave. -- |David Gilbert, Independent Contractor. | Two things can only be | |Mail: [EMAIL PROTECTED]| equal if and only if they | |http://daveg.ca | are precisely opposite. | =GLO ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Geom RAID root report.
On Fri, 2005-02-04 at 06:26 -0500, David Gilbert wrote: Doug == Doug White [EMAIL PROTECTED] writes: Doug On Tue, 1 Feb 2005, David Gilbert wrote: Gmirror on the fix-it CD appears to be impotent. It appears to have only 'help', 'list', 'load' and 'unload' as commands. Not useful. Doug If you manually load the geom_mirror.ko kernel module it Doug probably gets useful. Someone pointed out that there's a Doug hardwired path in there somewhere so load will fail, but if Doug you load the module manually then the commands become available. Doug I'll have to test it. I did that. This is not the case. If you run gmirror help when gmirror is not loaded, it does not load the module and it prints out a helpful list of things. If you do this on the fixit CD, it prints out a list of four commands: help, list, load and unload. Additionally, I loaded the kernel module manually from /dist/boot/kernel/geom_mirror.ko and this did not change the behaviour of the command. The problem is that geom is hard coded to look for the userland libraries in /lib. Try symlinking /lib to /dist/lib Gavin ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Geom RAID root report.
The easiest way is to chroot into the fixit CD's filesystem and then gmirror load. That way the hardcoded path is correct and it works. You also need to mount devfs. -- -- Karl Denninger ([EMAIL PROTECTED]) Internet Consultant Kids Rights Activist http://www.denninger.netMy home on the net - links to everything I do! http://scubaforum.org Your UNCENSORED place to talk about DIVING! http://www.spamcuda.net SPAM FREE mailboxes - FREE FOR A LIMITED TIME! http://genesis3.blogspot.comMusings Of A Sentient Mind On Thu, Feb 03, 2005 at 09:18:23PM -0800, Doug White wrote: On Tue, 1 Feb 2005, David Gilbert wrote: Gmirror on the fix-it CD appears to be impotent. It appears to have only 'help', 'list', 'load' and 'unload' as commands. Not useful. If you manually load the geom_mirror.ko kernel module it probably gets useful. Someone pointed out that there's a hardwired path in there somewhere so load will fail, but if you load the module manually then the commands become available. I'll have to test it. -- Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] %SPAMBLOCK-SYS: Matched [freebsd], message ok ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Geom RAID root report.
Gavin == Gavin Atkinson [EMAIL PROTECTED] writes: Additionally, I loaded the kernel module manually from /dist/boot/kernel/geom_mirror.ko and this did not change the behaviour of the command. Gavin The problem is that geom is hard coded to look for the userland Gavin libraries in /lib. Gavin Try symlinking /lib to /dist/lib You know, for a live CD, our live CD seems chock full of these issues. $EDITOR, for instance, is set wrong. I didn't know to look for that one --- I usually work around fixit faults. Dave. -- |David Gilbert, Independent Contractor. | Two things can only be | |Mail: [EMAIL PROTECTED]| equal if and only if they | |http://daveg.ca | are precisely opposite. | =GLO ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Geom RAID root report.
On Tue, 1 Feb 2005, David Gilbert wrote: Gmirror on the fix-it CD appears to be impotent. It appears to have only 'help', 'list', 'load' and 'unload' as commands. Not useful. If you manually load the geom_mirror.ko kernel module it probably gets useful. Someone pointed out that there's a hardwired path in there somewhere so load will fail, but if you load the module manually then the commands become available. I'll have to test it. -- Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Geom RAID root report.
Before making this machine, I did a search on the lists to see if anyone else had questions or was willing to report on using a GEOM RAID root device. Nobody had. So... here's the basic recipe. First I did a minimal install to one of the two disks in a 512M root. I think 256M would be enough for that, but the disks are just so bloody huge. Anyways... then I booted from the fix-it CD to try to mirror up the 'a' partition. Gmirror on the fix-it CD appears to be impotent. It appears to have only 'help', 'list', 'load' and 'unload' as commands. Not useful. Since I had a few spare disks around, I loaded a default load onto one and tried again. The disklabel created by sysinstall had the 'a' pertition starting at 0. Creating a gmirror starting at the beginning of a disk or ending at the end seems to break things, and it did here. Gmirror (the kernel module) seems to find the provider as the parent (say ad4s1) instead of the child (ad4s1a). So I used 'dump' to image 'a' and then I relabeled and repartioned the disk to start 'a' at block 64. gmirror on this worked and formatting it and restoring to it are fine. Now... you do need to mount this filesystem and edit a few things. geom_mirror_load=YES needs to be in /boot/loader.conf Your fstab will likely need to look like: # DeviceMountpoint FStype Options DumpPass# /dev/mirror/cs-swap noneswapsw 0 0 /dev/mirror/cs-root / ufs rw 1 1 /dev/mirror/cs-var /varufs rw 2 2 /dev/mirror/cs-usr /usrufs rw 2 2 ... obviously substituting your own geom mirror names. Note that using a geom swap requires swapoff=YES in /etc/rc.conf But otherwise, this all seems to work ... even without the nasty recalculation of the fake 'a' partition required by vinum. Dave. -- |David Gilbert, Independent Contractor. | Two things can only be | |Mail: [EMAIL PROTECTED]| equal if and only if they | |http://daveg.ca | are precisely opposite. | =GLO ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]