From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 16:07:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A64A816A4CE for ; Mon, 8 Nov 2004 16:07:45 +0000 (GMT) Received: from shepherd2.hurlburt.af.mil (shepherd2.hurlburt.af.mil [151.166.15.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B39A43D1F for ; Mon, 8 Nov 2004 16:07:45 +0000 (GMT) (envelope-from M.Keith.Thompson@hurlburt.af.mil) Received: from excncc1.hurlburt.af.mil (excncc1.hurlburt.af.mil [151.166.24.49]) by shepherd2.hurlburt.af.mil with ESMTP id iA8GFPQA023383 for ; Mon, 8 Nov 2004 10:15:25 -0600 (CST) Received: by excncc1.hurlburt.af.mil with Internet Mail Service (5.5.2657.72) id ; Mon, 8 Nov 2004 10:08:12 -0600 Message-ID: From: M.Keith.Thompson@hurlburt.af.mil To: freebsd-questions@freebsd.org Date: Mon, 8 Nov 2004 10:08:07 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Subject: Booting w/gvinum X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 16:07:45 -0000 I have read all of the messages on this board pertaining to vinum & gvinum and I am still having problems. I re-installed and started from scratch, but gvinum starts and says my plexes are stale. I am following the instructions in Chapter 12 of online docs. I am trying to mirror 2 drives. I am just trying to get the boot drive up and running before I start the mirror. Does the partition need to be called gvinum in the bsdlabel program? Output from bsdlabel before changes: # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 1050624 4.2BSD 2048 16384 28552 b: 1050624 0 swap c: 17774160 0 unused 0 0 # "raw" part, don't edit d: 262144 3147776 4.2BSD 2048 16384 16392 e: 6291456 3409920 4.2BSD 2048 16384 28552 f: 8072784 9701376 4.2BSD 2048 16384 28552 Output from bsdlabel after changes: # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 1050624 4.2BSD 2048 16384 28552 b: 1050343 281 swap c: 17774160 0 unused 0 0 # "raw" part, don't edit d: 262144 3147776 4.2BSD 2048 16384 16392 e: 6291456 3409920 4.2BSD 2048 16384 28552 f: 8072784 9701376 4.2BSD 2048 16384 28552 h: 17774144 16 vinum Create.foo: drive foo device /dev/da0s1h volume root plex org concat # a: 2097152 1050624 4.2BSD sd len 2097152s driveoffset 1050608s drive foo volume swap plex org concat # b: 1050343 281 swap sd len 1050343s driveoffset 265s drive foo volume tmp plex org concat # d: 262144 3147776 4.2BSD sd len 262144s driveoffset 3147760s drive foo volume var plex org concat # e: 6291456 3409920 4.2BSD sd len 6291456s driveoffset 3409904s drive foo volume usr plex org concat # f: 8072784 9701376 4.2BSD sd len 8072784s driveoffset 9701360s drive foo Here is the error I get at boot: GEOM_VINUM: subdisk swap.p0.s0 is stale GEOM_VINUM: subdisk root.p0.s0 is stale GEOM_VINUM: subdisk tmp.p0.s0 is stale GEOM_VINUM: subdisk var.p0.s0 is stale GEOM_VINUM: subdisk usr.p0.s0 is stale Mounting root from ufs:/dev/da0s1a gvinum: lost drive 'foo' GEOM_VINUM: subdisk swap.p0.s0 is down GEOM_VINUM: plex swap.p0 is down GEOM_VINUM: subdisk root.p0.s0 is down GEOM_VINUM: plex root.p0 is down GEOM_VINUM: subdisk tmp.p0.s0 is down GEOM_VINUM: plex tmp.p0 is down GEOM_VINUM: subdisk var.p0.s0 is down GEOM_VINUM: plex var.p0 is down GEOM_VINUM: subdisk usr.p0.s0 is down GEOM_VINUM: plex usr.p0 is down Fstab before vinum: # Device Mountpoint FStype Options Dump Pass# /dev/da0s1b none swap sw 0 0 /dev/da1s1b none swap sw 0 0 /dev/da0s1a / ufs rw 1 1 /dev/da1s1d /nofuture ufs rw 2 2 /dev/da0s1d /tmp ufs rw 2 2 /dev/da0s1f /usr ufs rw 2 2 /dev/da0s1e /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 Fstab after vinum: # Device Mountpoint FStype Options Dump Pass# /dev/gvinum/swap none swap sw 0 0 /dev/da1s1b none swap sw 0 0 /dev/gvinum/root / ufs rw 1 1 /dev/da1s1d /nofuture ufs rw 2 2 /dev/gvinum/tmp /tmp ufs rw 2 2 /dev/gvinum/usr /usr ufs rw 2 2 /dev/gvinum/var /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 Result of gvinum l: 1 drive: D foo State: down /dev/da0h A: 0/8678 MB (0%) 5 volumes: V root State: down Plexes: 1 Size: 1024 MB V swap State: down Plexes: 1 Size: 512 MB V tmp State: down Plexes: 1 Size: 128 MB V var State: down Plexes: 1 Size: 3072 MB V usr State: down Plexes: 1 Size: 3941 MB 5 plexes: P root.p0 C State: down Subdisks: 1 Size: 1024 MB P swap.p0 C State: down Subdisks: 1 Size: 512 MB P tmp.p0 C State: down Subdisks: 1 Size: 128 MB P var.p0 C State: down Subdisks: 1 Size: 3072 MB P usr.p0 C State: down Subdisks: 1 Size: 3941 MB 5 subdisks: S root.p0.s0 State: down D: foo Size: 1024 MB S swap.p0.s0 State: down D: foo Size: 512 MB S tmp.p0.s0 State: down D: foo Size: 128 MB S var.p0.s0 State: down D: foo Size: 3072 MB S usr.p0.s0 State: down D: foo Size: 3941 MB