FreeBSD HOWTO: Software Mirror System Disk

2005-03-22 Thread Aaron Trumm
Hello is anybody there?  I don't know if I'm subscribed...

I have a question...is this a typo?:

gmirror insert gm0 /dev/ad6

I get to that step and get the message class not found

should it be?:

gmirror insert boot /dev/ad6?

or something?

--signed,
   Confused
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD HOWTO: Software Mirror System Disk

2005-03-22 Thread Emanuel Strobl
Am Dienstag, 22. März 2005 22:01 schrieb Aaron Trumm:
 Hello is anybody there?  I don't know if I'm subscribed...

 I have a question...is this a typo?:

 gmirror insert gm0 /dev/ad6

 I get to that step and get the message class not found

 should it be?:

 gmirror insert boot /dev/ad6?

You have already setup (with gmirror label) a mirror named gm0 right?
What does 'gmirror list gm0' tell?

Anyway, you'll find an answer in the very well written man page, like usual 
for FreeBSD man pages ;)

-Harry


 or something?

 --signed,
Confused
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


pgprFIHwU4T2v.pgp
Description: PGP signature


FreeBSD HOWTO: Software Mirror System Disk

2005-01-24 Thread Danny Howard
[ From http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ ]
A new feature of FreeBSD 5.3 is the ability to set up a software mirror 
of your system disk. This allows you to boot off either of a pair of 
hard disks, which will then function as a RAID1, which will ensure 
system uptime in the face of a single disk failure.

As the documentation is a bit sketchy, heres a quick cheat sheet for 
setting this up with gmirror:
(This crib sheet assumes you have a pair of identical IDE (in my case, 
SATA) drives identified as ad4 and ad6.)

  1. Install FreeBSD on to ad4.
  2. Reboot with the Install CD.
  3. Enter Fixit mode, using Install CD disc2 as the live filesystem
  4. # *chroot /dist*
 # *mount_devfs devfs /dev*
 # *gmirror label -v -b round-robin gm0 /dev/ad4*
 # *gmirror insert gm0 /dev/ad6*
 # *mount /dev/mirror/gm0s1a /mnt*
 # *echo geom_mirror_load=YES  /mnt/boot/loader.conf*
 # *echo swapoff=YES  /mnt/etc/rc.conf*
  5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0
  6. Reboot
Thanks to the few dozen people who have come before me, and posted 
crucial hints to the mailing lists. Thanks also to Ralf S. Engelschall 
who has a far more verbose explanation of how to do this sort of thing 
with mis-matched disks. [See http://people.freebsd.org/~rse/mirror/ ]
http://people.freebsd.org/%7Erse/mirror/
You should definately look over the gmirror man page, and review the 
output of *gmirror list gm0* when swapping out drives. You can disable 
automatic rebuild, etc. It is quite nice.

Sincerely,
-danny
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD HOWTO: Software Mirror System Disk

2005-01-24 Thread Danny Howard
Danny Howard wrote:
As the documentation is a bit sketchy, heres a quick cheat sheet for 
setting this up with gmirror:
(This crib sheet assumes you have a pair of identical IDE (in my case, 
SATA) drives identified as ad4 and ad6.)
Let me apologize for Thunderbird formatting my mail goofy.  (I only use 
it for mailing lists, silly vim weenie.)  Here's a little clean-up:

 1. Install FreeBSD on to ad4.
 2. Reboot with the Install CD.
 3. Enter Fixit mode, using Install CD disc2 as the live filesystem
 4. # chroot /dist
# mount_devfs devfs /dev
# gmirror label -v -b round-robin gm0 /dev/ad4
# gmirror insert gm0 /dev/ad6
# mount /dev/mirror/gm0s1a /mnt
# echo geom_mirror_load=YES  /mnt/boot/loader.conf
# echo swapoff=YES  /mnt/etc/rc.conf
 5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0
 6. Reboot
-danny
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]