From nobody@FreeBSD.org Tue Feb 7 01:53:24 2012 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644A11065675 for ; Tue, 7 Feb 2012 01:53:24 +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 355B58FC0C for ; Tue, 7 Feb 2012 01:53:24 +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 q171rN3b018019 for ; Tue, 7 Feb 2012 01:53:23 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q171rNmn018010; Tue, 7 Feb 2012 01:53:23 GMT (envelope-from nobody) Message-Id: <201202070153.q171rNmn018010@red.freebsd.org> Date: Tue, 7 Feb 2012 01:53:23 GMT From: Morris Allen To: freebsd-gnats-submit@FreeBSD.org Subject: Unable to setup a Raid 1 x64 v9 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 164836 >Category: i386 >Synopsis: Unable to setup a Raid 1 x64 v9 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: closed >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 07 02:00:16 UTC 2012 >Closed-Date: Tue Feb 07 09:37:51 UTC 2012 >Last-Modified: Tue Feb 07 09:37:51 UTC 2012 >Originator: Morris Allen >Release: V 9.0 x64 >Organization: VidcomNet, Inc. >Environment: InDtel DQ 57Tm Motherboard Intel Processor I5 650 8gb kingston mem 2- 1TB Sata 3 Hard Drives Unable to install Raid1 >Description: Using the following instructions, I am unable to maintain a Raid1 installation. I have sent this to the programming group ( docs/164620: Raid 1 issues) and was told to contact document group. During the inititial setup the Raid appears to be there. But when I reboot, the system stops, and will not totally reboot. One issue is my fstab file, using basis install, does not look anything like the file listed below. I really need to get this going my time is getting short and I am in trouble on this box. This is the setup that I am trying to use. # 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: This is a clean install and I have the same results everytime I try to install the Raid1. No change.. this is the x64 BSD V9 >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: remko State-Changed-When: Tue Feb 7 09:37:50 UTC 2012 State-Changed-Why: Like last time, this is not a problem report but a request for help. On doc@FreeBSD.org there are people working with documentation, on freebsd-geom@freebsd.org there are people working with the GEOM framework (which could be used for RAID-1 for example) on questions@freebsd.org there are people that are willing to help you troubleshooting your problems. But as mentioned before, this is not a Problem Report so it shouldn't be in the GNATSdb at all. Thank you for using FreeBSD and I hope you find what you need on the various mailinglists. http://www.freebsd.org/cgi/query-pr.cgi?pr=164836 >Unformatted: