<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FreeBSD HOWTO: Software Mirror System Disk</title>
	<atom:link href="http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/</link>
	<description>Interesting bits of information and editorial, evolving online since 1995.</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Copycat Arts &#187; Blog Archive &#187; Soft-RAID1 for FreeBSD6</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-76013</link>
		<dc:creator>Copycat Arts &#187; Blog Archive &#187; Soft-RAID1 for FreeBSD6</dc:creator>
		<pubDate>Mon, 31 May 2010 09:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-76013</guid>
		<description>[...] http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/" rel="nofollow">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dannyman</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-75272</link>
		<dc:creator>dannyman</dc:creator>
		<pubDate>Thu, 08 Jan 2009 19:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-75272</guid>
		<description>Likey,

I merged your comments.  Please let me know if there&#039;s anything amiss.

-d</description>
		<content:encoded><![CDATA[<p>Likey,</p>
<p>I merged your comments.  Please let me know if there&#8217;s anything amiss.</p>
<p>-d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: likeygmirror</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-75268</link>
		<dc:creator>likeygmirror</dc:creator>
		<pubDate>Thu, 08 Jan 2009 08:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-75268</guid>
		<description>In case it might be of use to anyone, here is the gmirror cheat sheet I&#039;ve been using for the last couple years. Its known to work on 6.0,6.1,6.2 and 6.3. It was originally cribbed from a website and has been updated for personal use since.


FreeBSD Duplex mirror using GEOM

-- CD OS Install
 * Partition : Commit entire disk (ad4)
 * Partition : /    512M
               SWAP 2GB
              /var  2GB
              /tmp  512M
              /usr  remainder
  * Set up duplex mirror using GEOM (before CD reboot)
    - INSTALL
      - ALT-F4
      - # csh
      - # sysctl kern.geom.debugflags=16
          result : kern.geom.debugflags: 0 -&gt; 16
      - # gmirror label -v -b round-robin gm0 /dev/ad4
          result : Metadata value stored on /dev/ad4
      - # echo geom_mirror_load=&quot;YES&quot; &gt; /boot/loader.conf
      - # cp /etc/fstab /etc/fstab.orig
      - # vi /etc/fstab (replace /dev/ad4 with /dev/mirror/gm0)
      - reboot
      - # vi /etc/rc.conf
          # need to do this to make dumping cores happy since it won&#039;t use a gmirror&#039;ed drive
          dumpdev=&quot;NO&quot;


    - SYNC
      - # swapinfo
      - # gmirror insert gm0 /dev/ad6
          result : GEOM_MIRROR: Device gm0: provider ad6 detected.
          result : GEOM_MIRROR: Device gm0: rebuilding provider ad6.
      - # gmirror list &#124; more
      - # gmirror status

    - FAILURE RECOVERY
      - REMOVE A LIVE DISK FROM A MIRROR (but keep in machine)
        - # gmirror deactivate gm0  
        - # gmirror forget gm0 
            (forget about removed devices)
        - # gmirror status

 - BRING A NEW DISK ONLINE
- ***insert drive***
- # atacontrol detach ***ata-channel-to_remove ex : ata3 for /dev/ad6***
(make sure channel is not initialized)
- # atacontrol attach ***ata-channel-to_remove ex : ata3 for /dev/ad6***
- # gmirror forget gm0
- # gmirror insert gm0
- # gmirror status

- HOT UNPLUG A LIVE DISK FROM A MIRROR !!!BROKEN IN 6.0
- # gmirror deactivate gm0 ***disk-to-remove devname ex : ad6***
- # gmirror forget gm0
(forget about removed devices)
- # atacontrol detach ***ata-channel-to_remove ex : ata3 for /dev/ad6***
- ***remove drive***
- # atacontrol list</description>
		<content:encoded><![CDATA[<p>In case it might be of use to anyone, here is the gmirror cheat sheet I&#8217;ve been using for the last couple years. Its known to work on 6.0,6.1,6.2 and 6.3. It was originally cribbed from a website and has been updated for personal use since.</p>
<p>FreeBSD Duplex mirror using GEOM</p>
<p>&#8211; CD OS Install<br />
 * Partition : Commit entire disk (ad4)<br />
 * Partition : /    512M<br />
               SWAP 2GB<br />
              /var  2GB<br />
              /tmp  512M<br />
              /usr  remainder<br />
  * Set up duplex mirror using GEOM (before CD reboot)<br />
    &#8211; INSTALL<br />
      &#8211; ALT-F4<br />
      &#8211; # csh<br />
      &#8211; # sysctl kern.geom.debugflags=16<br />
          result : kern.geom.debugflags: 0 -&gt; 16<br />
      &#8211; # gmirror label -v -b round-robin gm0 /dev/ad4<br />
          result : Metadata value stored on /dev/ad4<br />
      &#8211; # echo geom_mirror_load=&#8221;YES&#8221; &gt; /boot/loader.conf<br />
      &#8211; # cp /etc/fstab /etc/fstab.orig<br />
      &#8211; # vi /etc/fstab (replace /dev/ad4 with /dev/mirror/gm0)<br />
      &#8211; reboot<br />
      &#8211; # vi /etc/rc.conf<br />
          # need to do this to make dumping cores happy since it won&#8217;t use a gmirror&#8217;ed drive<br />
          dumpdev=&#8221;NO&#8221;</p>
<p>    &#8211; SYNC<br />
      &#8211; # swapinfo<br />
      &#8211; # gmirror insert gm0 /dev/ad6<br />
          result : GEOM_MIRROR: Device gm0: provider ad6 detected.<br />
          result : GEOM_MIRROR: Device gm0: rebuilding provider ad6.<br />
      &#8211; # gmirror list | more<br />
      &#8211; # gmirror status</p>
<p>    &#8211; FAILURE RECOVERY<br />
      &#8211; REMOVE A LIVE DISK FROM A MIRROR (but keep in machine)<br />
        &#8211; # gmirror deactivate gm0<br />
        &#8211; # gmirror forget gm0<br />
            (forget about removed devices)<br />
        &#8211; # gmirror status</p>
<p> &#8211; BRING A NEW DISK ONLINE<br />
- ***insert drive***<br />
- # atacontrol detach ***ata-channel-to_remove ex : ata3 for /dev/ad6***<br />
(make sure channel is not initialized)<br />
- # atacontrol attach ***ata-channel-to_remove ex : ata3 for /dev/ad6***<br />
- # gmirror forget gm0<br />
- # gmirror insert gm0<br />
- # gmirror status</p>
<p>- HOT UNPLUG A LIVE DISK FROM A MIRROR !!!BROKEN IN 6.0<br />
- # gmirror deactivate gm0 ***disk-to-remove devname ex : ad6***<br />
- # gmirror forget gm0<br />
(forget about removed devices)<br />
- # atacontrol detach ***ata-channel-to_remove ex : ata3 for /dev/ad6***<br />
- ***remove drive***<br />
- # atacontrol list</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bishal</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-74862</link>
		<dc:creator>Bishal</dc:creator>
		<pubDate>Thu, 07 Aug 2008 04:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-74862</guid>
		<description>Hi,
  I am trying to do RAID1 mirror on live freebsd6.0 system. Both harddisk are 40GB of size. When I type gmirror insert gm0 /dev/ad2 it gaves me &quot;Provider ad2 too small&quot; message. What&#039;s wrong? Earlier ad2 hardisk was running Winxp and freebsd dual OS. I completly deleted the partition and tried to do RAID1 but that errror &quot;Provider ad2 too small&quot; message comes up.
 Sysinstall command shows both hardisk size of 38162MB. Output of the fdisk command on both hardisk:

computer1# fdisk /dev/ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won&#039;t work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78156162 (38162 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:



bhw-proxy.hons.com.np# fdisk -s /dev/ad2
fdisk: invalid fdisk partition table found
fdisk: read_s0: Unknown error: 0
computer1# fdisk /dev/ad2
******* Working on device /dev/ad2 *******
parameters extracted from in-core disklabel are:
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won&#039;t work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78162273 (38165 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 741/ head 15/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:


Any suggestions? Please</description>
		<content:encoded><![CDATA[<p>Hi,<br />
  I am trying to do RAID1 mirror on live freebsd6.0 system. Both harddisk are 40GB of size. When I type gmirror insert gm0 /dev/ad2 it gaves me &#8220;Provider ad2 too small&#8221; message. What&#8217;s wrong? Earlier ad2 hardisk was running Winxp and freebsd dual OS. I completly deleted the partition and tried to do RAID1 but that errror &#8220;Provider ad2 too small&#8221; message comes up.<br />
 Sysinstall command shows both hardisk size of 38162MB. Output of the fdisk command on both hardisk:</p>
<p>computer1# fdisk /dev/ad0<br />
******* Working on device /dev/ad0 *******<br />
parameters extracted from in-core disklabel are:<br />
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)</p>
<p>Figures below won&#8217;t work with BIOS for partitions not in cyl 1<br />
parameters to be used for BIOS calculations are:<br />
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)</p>
<p>Media sector size is 512<br />
Warning: BIOS sector numbering starts with sector 1<br />
Information from DOS bootblock is:<br />
The data for partition 1 is:<br />
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)<br />
    start 63, size 78156162 (38162 Meg), flag 80 (active)<br />
        beg: cyl 0/ head 1/ sector 1;<br />
        end: cyl 1023/ head 254/ sector 63<br />
The data for partition 2 is:</p>
<p>The data for partition 3 is:</p>
<p>The data for partition 4 is:</p>
<p>bhw-proxy.hons.com.np# fdisk -s /dev/ad2<br />
fdisk: invalid fdisk partition table found<br />
fdisk: read_s0: Unknown error: 0<br />
computer1# fdisk /dev/ad2<br />
******* Working on device /dev/ad2 *******<br />
parameters extracted from in-core disklabel are:<br />
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)</p>
<p>Figures below won&#8217;t work with BIOS for partitions not in cyl 1<br />
parameters to be used for BIOS calculations are:<br />
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)</p>
<p>fdisk: invalid fdisk partition table found<br />
Media sector size is 512<br />
Warning: BIOS sector numbering starts with sector 1<br />
Information from DOS bootblock is:<br />
The data for partition 1 is:<br />
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)<br />
    start 63, size 78162273 (38165 Meg), flag 80 (active)<br />
        beg: cyl 0/ head 1/ sector 1;<br />
        end: cyl 741/ head 15/ sector 63<br />
The data for partition 2 is:</p>
<p>The data for partition 3 is:</p>
<p>The data for partition 4 is:</p>
<p>Any suggestions? Please</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bones</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-74583</link>
		<dc:creator>bones</dc:creator>
		<pubDate>Tue, 12 Feb 2008 18:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-74583</guid>
		<description>Be aware that this doesn&#039;t work with BSD 6.3 because the CD&#039;s gmirror command somehow doesn&#039;t list most options. This is also described in the url below.

As as workaround I installed a minimal freebsd system on a temporarily third disk, boot from it and created the raid. Then take it out again.

http://www.nabble.com/misc-120169:-gmirror-commands-error-with-&quot;Class-not-found&quot;-or-other-td15190746.html</description>
		<content:encoded><![CDATA[<p>Be aware that this doesn&#8217;t work with BSD 6.3 because the CD&#8217;s gmirror command somehow doesn&#8217;t list most options. This is also described in the url below.</p>
<p>As as workaround I installed a minimal freebsd system on a temporarily third disk, boot from it and created the raid. Then take it out again.</p>
<p><a href="http://www.nabble.com/misc-120169:-gmirror-commands-error-with-" rel="nofollow">http://www.nabble.com/misc-120169:-gmirror-commands-error-with-</a>&#8220;Class-not-found&#8221;-or-other-td15190746.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabien Langlet</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-21259</link>
		<dc:creator>Fabien Langlet</dc:creator>
		<pubDate>Wed, 06 Sep 2006 04:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-21259</guid>
		<description>Hi,

 

I have a computer with one hard disk (single slice ad0s1) running with FreeBSD. This computer is used as a WEB server, mail server, DNS server, … For a best security, I would like to establish a RAID-1 for the system partitions using your “howto” with a second new hard drive (mirror). My question is :

Is it possible to establish a RAID-1 on my system using your “howto” and keeping all my first drive data (WEB server, mail server,…) ? In fact, I really need a mirror to upgrade my security, but I don’t want to loose my data on my first hard drive. 

 

Thanks for your tutorial.

 

Best regards.

 

F. Langlet-Cauet.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a computer with one hard disk (single slice ad0s1) running with FreeBSD. This computer is used as a WEB server, mail server, DNS server, … For a best security, I would like to establish a RAID-1 for the system partitions using your “howto” with a second new hard drive (mirror). My question is :</p>
<p>Is it possible to establish a RAID-1 on my system using your “howto” and keeping all my first drive data (WEB server, mail server,…) ? In fact, I really need a mirror to upgrade my security, but I don’t want to loose my data on my first hard drive. </p>
<p>Thanks for your tutorial.</p>
<p>Best regards.</p>
<p>F. Langlet-Cauet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sara lidgey</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-15767</link>
		<dc:creator>sara lidgey</dc:creator>
		<pubDate>Mon, 29 May 2006 22:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-15767</guid>
		<description>Hi All,
 
 I&#039;ve been running a server using FreeBSD 5.3 and gmirror to mirror two identical IDE hard drives.  This howto was very helpful when setting up.  Its been running great for over a year.  But recently everything went down and when I reboot and put a monitor on it I get the following errors on screen:
 
 GEOM_MIRROR: Device gm0: provider ad1 disconnected
 GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed
 GEOM_MIRROR: Device gm0: rebuilding provider ad0 stopped
 
 Fatal trap 12: page fault while in kernel mode...  (this is followed by details about the fault)
 
 These errors are preceded by other related error information that flys by on the screen and I have no way of seeing them again.
 
 Does anyone now what steps I should take to figure what is going on and try to recover data or get the machine to boot?
 
 Thanks so much,
 S.</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p> I&#8217;ve been running a server using FreeBSD 5.3 and gmirror to mirror two identical IDE hard drives.  This howto was very helpful when setting up.  Its been running great for over a year.  But recently everything went down and when I reboot and put a monitor on it I get the following errors on screen:</p>
<p> GEOM_MIRROR: Device gm0: provider ad1 disconnected<br />
 GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed<br />
 GEOM_MIRROR: Device gm0: rebuilding provider ad0 stopped</p>
<p> Fatal trap 12: page fault while in kernel mode&#8230;  (this is followed by details about the fault)</p>
<p> These errors are preceded by other related error information that flys by on the screen and I have no way of seeing them again.</p>
<p> Does anyone now what steps I should take to figure what is going on and try to recover data or get the machine to boot?</p>
<p> Thanks so much,<br />
 S.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-14569</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 21 Apr 2006 14:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-14569</guid>
		<description>ooops, forget something:

# gmirror list
Geom name: gm4
State: COMPLETE
Components: 1
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3556157093
Providers:
1. Name: mirror/gm4
   Mediasize: 250059349504 (233G)
   Sectorsize: 512
   Mode: r4w4e5
Consumers:
1. Name: ad4
   Mediasize: 250059350016 (233G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 3808931721

The difference ist exactly 512 bytes. Is this the last sector, where geom stores the meta data?

Is the difference with the geometry critical?</description>
		<content:encoded><![CDATA[<p>ooops, forget something:</p>
<p># gmirror list<br />
Geom name: gm4<br />
State: COMPLETE<br />
Components: 1<br />
Balance: round-robin<br />
Slice: 4096<br />
Flags: NONE<br />
GenID: 0<br />
SyncID: 1<br />
ID: 3556157093<br />
Providers:<br />
1. Name: mirror/gm4<br />
   Mediasize: 250059349504 (233G)<br />
   Sectorsize: 512<br />
   Mode: r4w4e5<br />
Consumers:<br />
1. Name: ad4<br />
   Mediasize: 250059350016 (233G)<br />
   Sectorsize: 512<br />
   Mode: r1w1e1<br />
   State: ACTIVE<br />
   Priority: 0<br />
   Flags: NONE<br />
   GenID: 0<br />
   SyncID: 1<br />
   ID: 3808931721</p>
<p>The difference ist exactly 512 bytes. Is this the last sector, where geom stores the meta data?</p>
<p>Is the difference with the geometry critical?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-14568</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 21 Apr 2006 14:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-14568</guid>
		<description>Hi,

I have a mirror with two identically SATA drives. The mirror was build, as the system was installed a year ago.

This are the gemoetry for ad4/ad6: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

And this is the geometry for gm4: cylinders=30401 heads=255 sectors/track=63 (16065 blks/cyl)

The one partition has this size (is for ad4/ad6 and gm4):

The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 488397042 (238475 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 168/ head 14/ sector 63

You can see, that the partition is bigger than the gm4 geometry.

Any idea, what I can do? A fdisk -u mirror/gm4 will not work, because fdisk prins:

fdisk: Geom not found
fdisk: Failed to write sector zero</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a mirror with two identically SATA drives. The mirror was build, as the system was installed a year ago.</p>
<p>This are the gemoetry for ad4/ad6: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)</p>
<p>And this is the geometry for gm4: cylinders=30401 heads=255 sectors/track=63 (16065 blks/cyl)</p>
<p>The one partition has this size (is for ad4/ad6 and gm4):</p>
<p>The data for partition 1 is:<br />
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)<br />
    start 63, size 488397042 (238475 Meg), flag 80 (active)<br />
        beg: cyl 0/ head 1/ sector 1;<br />
        end: cyl 168/ head 14/ sector 63</p>
<p>You can see, that the partition is bigger than the gm4 geometry.</p>
<p>Any idea, what I can do? A fdisk -u mirror/gm4 will not work, because fdisk prins:</p>
<p>fdisk: Geom not found<br />
fdisk: Failed to write sector zero</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch Walker</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-11457</link>
		<dc:creator>Mitch Walker</dc:creator>
		<pubDate>Wed, 14 Dec 2005 08:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-11457</guid>
		<description>Brilliant work, buddy.  Thanks a million!  Literally as easy as 1-2-3.  It&#039;s HOWTOs like this that make open-source work.</description>
		<content:encoded><![CDATA[<p>Brilliant work, buddy.  Thanks a million!  Literally as easy as 1-2-3.  It&#8217;s HOWTOs like this that make open-source work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shtir</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-11332</link>
		<dc:creator>Shtir</dc:creator>
		<pubDate>Wed, 09 Nov 2005 07:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-11332</guid>
		<description>Thanx for the HOWTO step by step instrauctions. But after doing everything FreeBSD dosn&#039;t load stopping at:

mounting root from ufs:/dev/mirror/gm0s1a
setrootbyname failed
ffs_mountroot: can&#039;t find rootvp


How can I fix this prob to boot FreeBSD.</description>
		<content:encoded><![CDATA[<p>Thanx for the HOWTO step by step instrauctions. But after doing everything FreeBSD dosn&#8217;t load stopping at:</p>
<p>mounting root from ufs:/dev/mirror/gm0s1a<br />
setrootbyname failed<br />
ffs_mountroot: can&#8217;t find rootvp</p>
<p>How can I fix this prob to boot FreeBSD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#9733; On.the.nite.like.this &#9733;  &#187; Blog Archive   &#187; FreeBSD HOWTO: Software Mirror System Disk</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-10639</link>
		<dc:creator>&#9733; On.the.nite.like.this &#9733;  &#187; Blog Archive   &#187; FreeBSD HOWTO: Software Mirror System Disk</dc:creator>
		<pubDate>Mon, 10 Oct 2005 21:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-10639</guid>
		<description>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 . . .</description>
		<content:encoded><![CDATA[<p>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 . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dannyman</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-9507</link>
		<dc:creator>dannyman</dc:creator>
		<pubDate>Sun, 14 Aug 2005 04:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-9507</guid>
		<description>bh,

I&#039;d ask around on -hackers but I&#039;m pretty sure bad block mapping is done mostly within the drives these days: they present a series of blocks to the OS that is smaller than their absolute physical capacity, and internally map around any bad blocks as they are encountered.  An OS may in turn encounter bad blocks, and does a similar thing.  If I were implementing GEOM and gmirror, that easiest thing to do is that if you have to remap a bad block on one drive, you re-map it in the virtual drive.  So, if someone slips you a replacement drive with many bad blocks, you just map those into the virtual drive.  Maybe if you drop drives, you can free up those bad blocks from the OS&#039; list.

I think it is good to think about these things, but I&#039;d suggest a bit more research before you start making your life more inconvenient to solve troubles that have hopefully been addressed already. :)

Cheers,
-danny</description>
		<content:encoded><![CDATA[<p>bh,</p>
<p>I&#8217;d ask around on -hackers but I&#8217;m pretty sure bad block mapping is done mostly within the drives these days: they present a series of blocks to the OS that is smaller than their absolute physical capacity, and internally map around any bad blocks as they are encountered.  An OS may in turn encounter bad blocks, and does a similar thing.  If I were implementing GEOM and gmirror, that easiest thing to do is that if you have to remap a bad block on one drive, you re-map it in the virtual drive.  So, if someone slips you a replacement drive with many bad blocks, you just map those into the virtual drive.  Maybe if you drop drives, you can free up those bad blocks from the OS&#8217; list.</p>
<p>I think it is good to think about these things, but I&#8217;d suggest a bit more research before you start making your life more inconvenient to solve troubles that have hopefully been addressed already. :)</p>
<p>Cheers,<br />
-danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boredhacker</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-9499</link>
		<dc:creator>boredhacker</dc:creator>
		<pubDate>Sat, 13 Aug 2005 03:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-9499</guid>
		<description>&gt;&gt;&gt;I chose round-robin because I figured if you have two disks in a mirror, they’re both under the same &quot;load&quot; constraints, and it is best to KISS.

I can&#039;t say that I agree with you on this one.  From a user perspective typing &#039;load&#039; or &#039;prefer&#039; are both easier to use than &#039;round-robin&#039;; fewer characters ;-)  But seriously, in my desktop machine I have a duplexed gmirror built off of 2 disks that have the same geometry but one is udma66 and the other is udma100, I&#039;m pretty sure using &#039;load&#039; is better in this situation and probably others too.

Regardless, the how-to is still a wonderful thing.  I certainly don&#039;t want to take anything away from it.  However, a little constructive criticism can be a good thing, so....

If I may suggest, although the how-to tells you how to set-up the mirror, it never mentions what to do when an actual disaster happens (i.e. when a disk needs to be changed).

Some things to consider:

1. Most modern disks will not be the same size even if &quot;you have a pair of identical IDE ... drives&quot;.  This is because the integrated drive electronics account for imperfections in the media (bad tracks/sectors).  Thus the command &quot;gmirror label -v -b round-robin gm0 /dev/ad4&quot; in step 4 should *i think* be more like &quot;gmirror label -v -b round-robin gm0 /dev/ad6 /dev/ad4&quot;.  This will create a mirror only as big as the smallest drive.  If you don&#039;t do this, you just might see a message that says you can&#039;t insert ad6 because it&#039;s too small (even though the disks are &#039;identical&#039;).  In addition, to quote the gmirror manpage: &quot;The order of components is important, because a component&#039;s priority is based on its position (starting from 0).  The component with the biggest priority is used by the prefer balance algorithm and is also used as a master component when resynchronization is needed, e.g. after a power failure when the device was open for writing.&quot;  In light of this, I&#039;m not sure if the command should be &quot;gmirror label -v -b round-robin gm0 /dev/ad6 /dev/ad4&quot; or &quot;gmirror label -v -b round-robin gm0 /dev/ad4 /dev/ad6&quot; - but one may be better than the other.  I mean... the gmirror manpage does say order is important, right?

2. When installing the system (in step 1) it might not be a bad idea to create a slice that is actually smaller (by say 32-128mb) than the drive allows - or to install the system to the truly smallest drive.  This will insure that when/if a drive needs to be replaced you can simply use the same make and model (or a drive with the same physical geometry) and not worry about size discrepencies.

3. Replacing a drive can be simple if you have a new one on hand.  If it isn&#039;t the boot drive that has failed (or the mirror is already running and you have hot-swap hardware) then it&#039;s just a matter of &#039;gmirror forgeting/removing&#039; the old disk and &#039;gmirror inserting&#039; the new disk.  If you have hot-swappable hardware you shouldn&#039;t even have to reboot.  If the boot drive failed (and you can&#039;t [re]boot) you&#039;ll need the fix-it cd as you recommend to &#039;forget/remove&#039; the drive, and &#039;insert&#039; another.  Use &#039;gmirror status&#039; to wait until the mirror rebuilds itself before exiting fixit (since it was the boot drive that failed).  Booting a partially rebuilt disk simply can&#039;t be a good idea imho.

4.  The crib sheet assumes you have a pair of identical IDE disk drives, which is a good thing.  Assuming otherwise would introduce too much complexity for a simple how-to.  However, this just makes the previous three considerations that much more important.  After all, what good is having a mirror if you can&#039;t rebuild it after a failure?

Now, as you can probably tell, I&#039;m not 100% sure about a lot of this.  And I may not have written it out completely or perfectly clear.  But hopefully these suggestions can make a good how-to even better!</description>
		<content:encoded><![CDATA[<p>&gt;&gt;&gt;I chose round-robin because I figured if you have two disks in a mirror, they’re both under the same &#8220;load&#8221; constraints, and it is best to KISS.</p>
<p>I can&#8217;t say that I agree with you on this one.  From a user perspective typing &#8216;load&#8217; or &#8216;prefer&#8217; are both easier to use than &#8217;round-robin&#8217;; fewer characters ;-)  But seriously, in my desktop machine I have a duplexed gmirror built off of 2 disks that have the same geometry but one is udma66 and the other is udma100, I&#8217;m pretty sure using &#8216;load&#8217; is better in this situation and probably others too.</p>
<p>Regardless, the how-to is still a wonderful thing.  I certainly don&#8217;t want to take anything away from it.  However, a little constructive criticism can be a good thing, so&#8230;.</p>
<p>If I may suggest, although the how-to tells you how to set-up the mirror, it never mentions what to do when an actual disaster happens (i.e. when a disk needs to be changed).</p>
<p>Some things to consider:</p>
<p>1. Most modern disks will not be the same size even if &#8220;you have a pair of identical IDE &#8230; drives&#8221;.  This is because the integrated drive electronics account for imperfections in the media (bad tracks/sectors).  Thus the command &#8220;gmirror label -v -b round-robin gm0 /dev/ad4&#8243; in step 4 should *i think* be more like &#8220;gmirror label -v -b round-robin gm0 /dev/ad6 /dev/ad4&#8243;.  This will create a mirror only as big as the smallest drive.  If you don&#8217;t do this, you just might see a message that says you can&#8217;t insert ad6 because it&#8217;s too small (even though the disks are &#8216;identical&#8217;).  In addition, to quote the gmirror manpage: &#8220;The order of components is important, because a component&#8217;s priority is based on its position (starting from 0).  The component with the biggest priority is used by the prefer balance algorithm and is also used as a master component when resynchronization is needed, e.g. after a power failure when the device was open for writing.&#8221;  In light of this, I&#8217;m not sure if the command should be &#8220;gmirror label -v -b round-robin gm0 /dev/ad6 /dev/ad4&#8243; or &#8220;gmirror label -v -b round-robin gm0 /dev/ad4 /dev/ad6&#8243; &#8211; but one may be better than the other.  I mean&#8230; the gmirror manpage does say order is important, right?</p>
<p>2. When installing the system (in step 1) it might not be a bad idea to create a slice that is actually smaller (by say 32-128mb) than the drive allows &#8211; or to install the system to the truly smallest drive.  This will insure that when/if a drive needs to be replaced you can simply use the same make and model (or a drive with the same physical geometry) and not worry about size discrepencies.</p>
<p>3. Replacing a drive can be simple if you have a new one on hand.  If it isn&#8217;t the boot drive that has failed (or the mirror is already running and you have hot-swap hardware) then it&#8217;s just a matter of &#8216;gmirror forgeting/removing&#8217; the old disk and &#8216;gmirror inserting&#8217; the new disk.  If you have hot-swappable hardware you shouldn&#8217;t even have to reboot.  If the boot drive failed (and you can&#8217;t [re]boot) you&#8217;ll need the fix-it cd as you recommend to &#8216;forget/remove&#8217; the drive, and &#8216;insert&#8217; another.  Use &#8216;gmirror status&#8217; to wait until the mirror rebuilds itself before exiting fixit (since it was the boot drive that failed).  Booting a partially rebuilt disk simply can&#8217;t be a good idea imho.</p>
<p>4.  The crib sheet assumes you have a pair of identical IDE disk drives, which is a good thing.  Assuming otherwise would introduce too much complexity for a simple how-to.  However, this just makes the previous three considerations that much more important.  After all, what good is having a mirror if you can&#8217;t rebuild it after a failure?</p>
<p>Now, as you can probably tell, I&#8217;m not 100% sure about a lot of this.  And I may not have written it out completely or perfectly clear.  But hopefully these suggestions can make a good how-to even better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krisna</title>
		<link>http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/comment-page-1/#comment-9480</link>
		<dc:creator>Krisna</dc:creator>
		<pubDate>Wed, 10 Aug 2005 17:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-9480</guid>
		<description>Great &amp; Nice Danny.

But how about remote administrator? That doesn&#039;t have acces to server hardware, only network connection with SSH access?</description>
		<content:encoded><![CDATA[<p>Great &amp; Nice Danny.</p>
<p>But how about remote administrator? That doesn&#8217;t have acces to server hardware, only network connection with SSH access?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/22 queries in 0.052 seconds using disk: basic
Object Caching 437/439 objects using disk: basic

Served from: dannyman.toldme.com @ 2012-02-09 09:36:26 -->
