From nobody@FreeBSD.org  Mon Jan 30 05:57:19 2012
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 4BC19106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jan 2012 05:57:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1D1B28FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jan 2012 05:57:19 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0U5vIeu011418
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jan 2012 05:57:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0U5vIX2011417;
	Mon, 30 Jan 2012 05:57:18 GMT
	(envelope-from nobody)
Message-Id: <201201300557.q0U5vIX2011417@red.freebsd.org>
Date: Mon, 30 Jan 2012 05:57:18 GMT
From: Morris Allen <mallen@vidnet.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Raid 1 issues
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164620
>Category:       docs
>Synopsis:       Raid 1 issues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 30 06:00:18 UTC 2012
>Closed-Date:    Mon Jan 20 20:59:04 UTC 2014
>Last-Modified:  Mon Jan 20 20:59:04 UTC 2014
>Originator:     Morris Allen
>Release:        V 9.0 x64
>Organization:
>Environment:
InDtel DQ 57Tm Motherboard  Intel Processor I5 650 8gb kingston mem 2- 1TB Sata 3 Hard Drives
>Description:
# sysctl kern.geom.debugflags=17

 Now create the mirror. Begin the process by storing meta-data information on the primary disk device, effectively creating the /dev/mirror/gm device using the following command:

 

Warning: Creating a mirror out of the boot drive may result in data loss if any data has been stored on the last sector of the disk. This risk is reduced if creating the mirror is done promptly after a fresh install of FreeBSD. The following procedure is also incompatible with the default installation settings of FreeBSD 9.X which use the new GPT partition scheme. GEOM will overwrite GPT metadata, causing data loss and possibly an unbootable system.
 # gmirror label -vb round-robin gm0 /dev/da0

 The system should respond with:
Metadata value stored on /dev/da0.
Done.

 Initialize GEOM, this will load the /boot/kernel/geom_mirror.ko kernel module:
# gmirror load

 

Note: When this command completes successfully, it creates the gm0 device node under the /dev/mirror directory.
 
Enable loading of the geom_mirror.ko kernel module during system initialization:
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf

 Edit the /etc/fstab file, replacing references to the old da0 with the new device nodes of the gm0 mirror device.

 

Note: If vi(1) is your preferred editor, the following is an easy way to accomplish this task:
# vi /etc/fstab

 In vi(1) back up the current contents of fstab by typing :w /etc/fstab.bak. Then replace all old da0 references with gm0 by typing :%s/da/mirror\/gm/g.

 
The resulting fstab file should look similar to the following. It does not matter if the disk drives are SCSI or ATA, the RAID device will be gm regardless.
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1b                       none            swap    sw              0       0
/dev/mirror/gm0s1a                      /               ufs     rw              1       1
/dev/mirror/gm0s1d              /usr        ufs rw      0   0
/dev/mirror/gm0s1f              /home       ufs rw      2   2
#/dev/mirror/gm0s2d                     /store          ufs     rw              2       2
/dev/mirror/gm0s1e                      /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0

 Reboot the system:
# shutdown -r now
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-doc 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Jan 31 06:36:38 UTC 2012 
Responsible-Changed-Why:  
This might be more something for the documentation team. 

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

From: "Morris Allen" <mallen@vidnet.net>
To: <bug-followup@FreeBSD.org>,
	<mallen@vidnet.net>
Subject: Re: i386/164620: Raid 1 issues
Date: Mon, 30 Jan 2012 16:07:03 -0600
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_000_0107_01CCDF69.35542990"

This is a multipart message in MIME format.

------=_NextPart_001_0108_01CCDF69.35542990
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

We downloaded the basic BSD 9.0 x64 and followed the instructions that I
submitted.  Intel Raid in bios degraded and system would not boot correctly.
O.S. fstab was not like I submitted.  Please make recommendations.  I pasted
the procedure I followed in the initial error report.

Morris Allen (Moe)
___________________________

E-mail is a privilege.  Not a right.

Stop Spam now!!!

------=_NextPart_000_0107_01CCDF69.35542990--
State-Changed-From-To: open->closed 
State-Changed-By: wblock 
State-Changed-When: Mon Jan 20 20:56:28 UTC 2014 
State-Changed-Why:  
The gmirror section of the GEOM chapter was completely rewritten in November 
2012, r39909, to use best practices for creating mirrors out of new or 
existing drives.  It will not cause the problems the old version did. 

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