From owner-freebsd-doc@FreeBSD.ORG Wed Feb 8 02:33:04 2012 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D513A106567D; Wed, 8 Feb 2012 02:33:04 +0000 (UTC) (envelope-from mallen@vidnet.net) Received: from virtual2.vidnet.net (virtual2.vidnet.net [67.207.136.253]) by mx1.freebsd.org (Postfix) with ESMTP id AC83C8FC1E; Wed, 8 Feb 2012 02:33:03 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by virtual2.vidnet.net (Postfix) with ESMTP id C962E4B4082; Wed, 8 Feb 2012 02:17:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at vidnet.net Received: from virtual2.vidnet.net ([127.0.0.1]) by localhost (virtual2.vidnet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4J6EwwZVusY2; Tue, 7 Feb 2012 20:17:56 -0600 (CST) Received: from Notebook64 (h113.247.185.173.static.ip.windstream.net [173.185.247.113]) (Authenticated sender: mallen) by virtual2.vidnet.net (Postfix) with ESMTP id 2FB304B406A; Tue, 7 Feb 2012 20:17:55 -0600 (CST) From: "Morris Allen" To: Date: Tue, 7 Feb 2012 20:17:58 -0600 Message-ID: <004201cce607$e0c88920$a2599b60$@vidnet.net> MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_0043_01CCE5D5.96308A20" X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook 14.0 Thread-Index: AczmB9/CakzHmGeGTSGMReLDJlKtSg== Content-Language: en-us Importance: High Sensitivity: Private X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org, freebsd-geom@freebsd.org Subject: Need Help with a Raid 1 Time critical issue. X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 02:33:05 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0043_01CCE5D5.96308A20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To whom it may concern: I have been using the following instructions, I am unable to maintain a Raid1 installation. I have sent this to the Bug group and programming group ( docs/164620 : Raid 1 issues) and was told to contact your groups. During the initial 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. On reboot, it destroys the Raid that it indicated was present, before the reboot. I have listed my equipment below and have pasted a copy of the instructions I use to the letter. Your help would be greatly appreciated, as I have a time limit on this box and the clock is ticking. This unit must be working with all software before Feb. 28. Thanks Morris Allen (Moe) Environment Intel 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 initial 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 each time and I have the same results everytime I try to install the Raid1. No change.. this is the x64 BSD V9 Morris Allen (Moe) ___________________________ E-mail is a privilege. Not a right. Stop Spam now!!! ------=_NextPart_000_0043_01CCE5D5.96308A20--