From owner-freebsd-current@FreeBSD.ORG Wed Oct 21 23:35:20 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 729D01065670 for ; Wed, 21 Oct 2009 23:35:20 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 13E5B8FC14 for ; Wed, 21 Oct 2009 23:35:20 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id n9LNZIq7007536 for ; Wed, 21 Oct 2009 18:35:18 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Wed, 21 Oct 2009 18:35:18 -0500 (CDT) From: "Sean C. Farley" To: freebsd-current@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: Subject: Trouble booting system with root within gvinum volume X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 23:35:20 -0000 I have been trying to setup a system (testing with VirtualBox) using gvinum. Here are the basics for the setup. Some steps skipped for the install, as they look good. Unfortunately, I only get (F1, F2 and F3). Pressing F3 only provided a '#'. I have the two "drives" connected to SATA ports within VirtualBox. I originally tried to add the fake root via gpart, but it has no mechanism to create a partition that overlaps another one. gpart show does not show the fake root (should be partition 1 in ad4s3 and ad6s3), so I am suspicious that it is not seen. The idea for the Vinum root was taken from here: http://www.freebsd.org/doc/en/books/handbook/vinum-root.html Also, would the swap below be able to accept a core dump from a panic? # Create two MBR-based drives with three slices each. Two for Windows7 # (if I ever find the desire to do that) and one for FreeBSD. gvinum # uses the 'h' partition for both. gpart create -s mbr ad4 gpart create -s mbr ad6 gpart add -s 100M -t '!7' ad4 # Windows7 stuff; ignore gpart add -s 100M -t '!7' ad6 # Windows7 stuff; ignore gpart add -s 20G -t '!7' ad4 # Windows7 stuff; ignore gpart add -s 20G -t '!7' ad6 # Windows7 stuff; ignore gpart add -t freebsd ad4 gpart add -t freebsd ad6 gpart create -s bsd ad4s3 gpart create -s bsd ad6s3 gpart add -b 16 -t freebsd-vinum -i 8 ad4s3 gpart add -b 16 -t freebsd-vinum -i 8 ad6s3 # vinum.conf (gvinum create vinum.conf). Mirror /, /tmp, /usr and /var. # Stripe swap. drive a device /dev/ad4s3h drive b device /dev/ad6s3h volume root plex org concat sd length 1g drive a plex org concat sd length 1g drive b volume swap plex org striped 256k sd length 2g drive a sd length 2g drive b volume tmp plex org concat sd length 1g drive a plex org concat sd length 1g drive b volume var plex org concat sd length 2g drive a plex org concat sd length 2g drive b volume usr plex org concat sd drive a plex org concat sd drive b # Add the 'a' partition as a fake root for the boot loader to find to # both drives (only the first show below). # Offset is offset of 'h' partition plus offset of root subdisk (16 + # 265). # Size is size of root subdisk. # /dev/ad4s3: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 281 4.2BSD 2048 16384 0 c: 83681262 0 unused 0 0 # "raw" part, don't edit h: 83681246 16 vinum # Add bootstrap code to both drives. gpart bootcode -b /boot/boot0 ad4 gpart bootcode -b /boot/boot0 ad6 Sean -- scf@FreeBSD.org