From owner-freebsd-geom@FreeBSD.ORG Tue Dec 20 19:48:15 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62F0516A41F for ; Tue, 20 Dec 2005 19:48:15 +0000 (GMT) (envelope-from michael.lea@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5735343D6D for ; Tue, 20 Dec 2005 19:48:02 +0000 (GMT) (envelope-from michael.lea@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so1115728wxc for ; Tue, 20 Dec 2005 11:48:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nMKeJA5BWuPIiw89k4oiqKDmFf0xxjOprqi4kTAy4OLzuXfQPyMlOhHu1rbs7Yf3xjDSnaWQNisas2/3o5jzYw+n+eo/qXP45AE6b5O/9guLC8qZEpAu1eEdiKDkl8BLbwvqhhr500bqqUyPWZq2Bx55gi5iPMWKwMfTZP789X0= Received: by 10.70.87.2 with SMTP id k2mr6037152wxb; Tue, 20 Dec 2005 11:48:01 -0800 (PST) Received: by 10.70.19.15 with HTTP; Tue, 20 Dec 2005 11:48:01 -0800 (PST) Message-ID: <9c393a720512201148g13819dc2u9730a5c7a77ca814@mail.gmail.com> Date: Tue, 20 Dec 2005 13:48:01 -0600 From: Michael Lea To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: issues setting up gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 19:48:15 -0000 Hi, I'm having some issues setting up gvinum on a new system. My ultimate goals are to: a) leave some free space on the disk for me to grow into (either with new filesystems or using growfs) as needed, and b) mirror essential filesystems (/, /usr, etc) onto a second disk But at this point I can't even get the gvinum configuration to survive a re= boot. Here's my info: -- CUT HERE -- Fixit# uname -a FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 Fixit# kldstat Id Refs Address Size Name 1 4 0xc0400000 63070c kernel 2 1 0xc0e69000 fc5c geom_vinum.ko 3 16 0xc0e79000 568dc acpi.ko Fixit# fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=3D17753 heads=3D15 sectors/track=3D63 (945 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D17753 heads=3D15 sectors/track=3D63 (945 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 16776522 (8191 Meg), flag 80 (active) =09beg: cyl 0/ head 1/ sector 1; =09end: cyl 344/ head 14/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: Fixit# disklabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 16776522 0 unused 0 0 # "raw" part, don't= edit d: 16776506 16 vinum Fixit# gvinum printconfig # Vinum configuration of , saved at Tue Dec 20 12:28:05 2005 drive d0 device /dev/ad0s1d volume usr volume tmp volume var volume swap volume root plex name usr.p0 org concat vol usr plex name tmp.p0 org concat vol tmp plex name var.p0 org concat vol var plex name swap.p0 org concat vol swap plex name root.p0 org concat vol root sd name usr.p0.s0 drive d0 len 2097152s driveoffset 3068169s plex usr.p0 plexoffset 0s sd name tmp.p0.s0 drive d0 len 524288s driveoffset 2543881s plex tmp.p0 plexoffset 0s sd name var.p0.s0 drive d0 len 524288s driveoffset 2019593s plex var.p0 plexoffset 0s sd name swap.p0.s0 drive d0 len 970752s driveoffset 1048841s plex swap.p0 plexoffset 0s sd name root.p0.s0 drive d0 len 1048576s driveoffset 265s plex root.p0 plexoffset 0s -- CUT HERE -- However, following a reboot, my gvinum config looks like: -- CUT HERE -- Fixit# gvinum printconfig # Vinum configuration of , saved at Tue Dec 20 13:41:03 2005 drive d0 device /dev/ad0s1d volume usr volume tmp volume var volume swap volume root plex name usr.p0 org concat plex name tmp.p0 org concat plex name var.p0 org concat plex name swap.p0 org concat plex name root.p0 org concat sd name usr.p0.s0 drive d0 len 2097152s driveoffset 3068169s sd name tmp.p0.s0 drive d0 len 524288s driveoffset 2543881s sd name var.p0.s0 drive d0 len 524288s driveoffset 2019593s sd name swap.p0.s0 drive d0 len 970752s driveoffset 1048841s sd name root.p0.s0 drive d0 len 1048576s driveoffset 265s -- CUT HERE -- The subdisks seem to be getting detached from the plexes, which are getting detached from the volumes. The "attach" command doesn't seem to be supported in 6.0's vinum implementation, so at this point I need to recreate the plexes & subdisks. Any thoughts? Am I missing something? Thanks. - Mike