From owner-freebsd-geom@FreeBSD.ORG Sun Jul 9 01:57:10 2006 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 EBEC216A4DE for ; Sun, 9 Jul 2006 01:57:09 +0000 (UTC) (envelope-from sullrich@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D22B43D46 for ; Sun, 9 Jul 2006 01:57:09 +0000 (GMT) (envelope-from sullrich@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so1204781uge for ; Sat, 08 Jul 2006 18:57:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bFBNS7D6HXjjxhsPskAhzdf4w4nEHAKRCp8YD2fyzJWKZIAc4BXwT1WqR4xiOEUdAxWemCrxPO+Mmi7yJtFg6j7rWZPR9YRlOC4su7P1qNrUFfEwC7owZElOo9Y9m9wcWnZSx05u0dXlPq1cGXfEMv7sXX/kdVKEATJzLZ/ln9k= Received: by 10.67.24.13 with SMTP id b13mr3504125ugj; Sat, 08 Jul 2006 18:57:08 -0700 (PDT) Received: by 10.67.105.8 with HTTP; Sat, 8 Jul 2006 18:57:07 -0700 (PDT) Message-ID: Date: Sat, 8 Jul 2006 21:57:07 -0400 From: "Scott Ullrich" To: "Eric Anderson" In-Reply-To: <44AEC9E1.50002@centtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44AEBEF3.6010703@rogers.com> <44AEC9E1.50002@centtech.com> Cc: Mike Jakubik , freebsd-geom@freebsd.org Subject: Re: Detecting GMIRROR volumes without using gmirror utility 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: Sun, 09 Jul 2006 01:57:10 -0000 On 7/7/06, Eric Anderson wrote: > The problem with the sysctl, is that it doesn't know about the GEOM > markers that don't have kernel modules loaded. For instance, I have a > drive that is part of a geom_journal. Without geom_journal loaded, the > conftxt reports: > > 0 DISK da0 400088457216 512 hd 255 sc 63 > 1 MBR da0s2 24281026560 512 i 1 o 375804817920 ty 6 > 1 MBR da0s1 375804785664 512 i 0 o 32256 ty 165 > 2 BSD da0s1e 5363856384 512 i 4 o 370440929280 ty 7 > 3 LABEL label/journal 5363855872 512 i 0 o 0 > 2 BSD da0s1d 370440929280 512 i 3 o 0 ty 7 > 3 LABEL label/backup 370440928768 512 i 0 o 0 > 2 BSD da0s1c 375804785664 512 i 2 o 0 ty 0 > 0 DISK ad0 100030242816 512 hd 16 sc 63 > 1 MBR ad0s2 69791500800 512 i 1 o 16162675200 ty 165 > 2 BSD ad0s2e 11020913152 512 i 4 o 58770587648 ty 7 > 3 LABEL ufs/alt 11020913152 512 i 0 o 0 > 2 BSD ad0s2d 19922944000 512 i 3 o 38847643648 ty 7 > 3 LABEL ufs/home 19922944000 512 i 0 o 0 > 2 BSD ad0s2c 69791500800 512 i 2 o 0 ty 0 > 2 BSD ad0s2b 2147483648 512 i 1 o 0 ty 1 > 2 BSD ad0s2a 36700160000 512 i 0 o 2147483648 ty 7 > 1 MBR ad0s1 16162642944 512 i 0 o 32256 ty 12 > > see the da0s* stuff? That is actually part of a geom_journal, but since > the kernel module isn't loaded, it doesn't taste for it. Now, I simply > load the geom_journal module, and check the sysctl again: > > 0 DISK da0 400088457216 512 hd 255 sc 63 > 1 MBR da0s2 24281026560 512 i 1 o 375804817920 ty 6 > 1 MBR da0s1 375804785664 512 i 0 o 32256 ty 165 > 2 BSD da0s1e 5363856384 512 i 4 o 370440929280 ty 7 > 3 LABEL label/journal 5363855872 512 i 0 o 0 > 4 JOURNAL label/backup.journal 370440928256 512 > 5 BSD label/backup.journale 5363856384 512 i 4 o 370440929280 ty 7 > 5 BSD label/backup.journald 370440929280 512 i 3 o 0 ty 7 > 5 BSD label/backup.journalc 375804785664 512 i 2 o 0 ty 0 > 2 BSD da0s1d 370440929280 512 i 3 o 0 ty 7 > 3 LABEL label/backup 370440928768 512 i 0 o 0 > 4 JOURNAL label/backup.journal 370440928256 512 > 5 BSD label/backup.journale 5363856384 512 i 4 o 370440929280 ty 7 > 5 BSD label/backup.journald 370440929280 512 i 3 o 0 ty 7 > 5 BSD label/backup.journalc 375804785664 512 i 2 o 0 ty 0 > 2 BSD da0s1c 375804785664 512 i 2 o 0 ty 0 > 0 DISK ad0 100030242816 512 hd 16 sc 63 > 1 MBR ad0s2 69791500800 512 i 1 o 16162675200 ty 165 > 2 BSD ad0s2e 11020913152 512 i 4 o 58770587648 ty 7 > 3 LABEL ufs/alt 11020913152 512 i 0 o 0 > 2 BSD ad0s2d 19922944000 512 i 3 o 38847643648 ty 7 > 3 LABEL ufs/home 19922944000 512 i 0 o 0 > 2 BSD ad0s2c 69791500800 512 i 2 o 0 ty 0 > 2 BSD ad0s2b 2147483648 512 i 1 o 0 ty 1 > 2 BSD ad0s2a 36700160000 512 i 0 o 2147483648 ty 7 > 1 MBR ad0s1 16162642944 512 i 0 o 32256 ty 12 > > > Now it sees the journal. > > I think you will not be able to get away from loading the geom modules, > because they are what do the tasting for their class. I see what you mean. I've got it working!! I've got a bit of cleanup to do but should be able to post a FreeSBIE test ISO in the next week. Thanks to everyone that replied. This feature is quite handy!! Scott