From owner-freebsd-geom@FreeBSD.ORG Thu Jun 2 08:36:19 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD84D106566C for ; Thu, 2 Jun 2011 08:36:19 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id A0FEE8FC14 for ; Thu, 2 Jun 2011 08:36:19 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p528Aqs5084587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 2 Jun 2011 01:10:52 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p528ApFh084586 for freebsd-geom@freebsd.org; Thu, 2 Jun 2011 01:10:51 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA13501; Thu, 2 Jun 11 01:00:47 PDT Date: Thu, 02 Jun 2011 01:00:39 -0700 From: perryh@pluto.rain.com To: freebsd-geom@freebsd.org Message-Id: <4de74327.Sx2yo/9EIpKtIaJA%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 8.1 "gjournal status" wrongly claims "No such geom" 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: Thu, 02 Jun 2011 08:36:19 -0000 I have a gmirror partitioned into 3 gjournalled filesystems. The gmirror and gjournal modules have been loaded; the mirror and journals are reported in dmesg; the geoms appear in /dev and in the "gjournal status" summary; and "gjournal dump" finds the metadata. However, when I ask for individual status reports, gjournal claims that the geoms don't exist. What's going on? (This log shows gm0a as an example; the others behave the same way.) In case it matters, the partitions are not mounted. # dmesg | grep 'GEOM_' GEOM_MIRROR: Device mirror/gm0 launched (1/1). GEOM_JOURNAL: Journal 1528592465: mirror/gm0a contains data. GEOM_JOURNAL: Journal 1528592465: mirror/gm0a contains journal. GEOM_JOURNAL: Journal 742588070: mirror/gm0d contains data. GEOM_JOURNAL: Journal 742588070: mirror/gm0d contains journal. GEOM_JOURNAL: Journal mirror/gm0a consistent. GEOM_JOURNAL: Journal 1468104835: mirror/gm0e contains data. GEOM_JOURNAL: Journal 1468104835: mirror/gm0e contains journal. GEOM_JOURNAL: Journal mirror/gm0d consistent. GEOM_JOURNAL: Journal mirror/gm0e consistent. # disklabel /dev/mirror/gm0 # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 7340032 16 4.2BSD 1024 8192 0 c: 619907501 0 unused 0 0 # "raw" part, don't edit d: 25165824 7340048 4.2BSD 0 0 0 e: 587401629 32505872 4.2BSD 0 0 0 # ls -laR /dev/mirror total 1 dr-xr-xr-x 2 root 0 512 Jun 2 03:24 . dr-xr-xr-x 8 root 0 512 Jun 2 03:15 .. crw-r----- 1 root operator 0, 81 Jun 2 03:24 gm0 crw-r----- 1 root operator 0, 105 Jun 2 03:24 gm0a crw-r----- 1 root operator 0, 123 Jun 2 03:24 gm0a.journal crw-r----- 1 root operator 0, 121 Jun 2 03:24 gm0d crw-r----- 1 root operator 0, 124 Jun 2 03:24 gm0d.journal crw-r----- 1 root operator 0, 122 Jun 2 03:24 gm0e crw-r----- 1 root operator 0, 127 Jun 2 03:24 gm0e.journal # gjournal dump -v mirror/gm0a Read 512 bytes from offset 0xdffffe00 on /dev/mirror/gm0a. Metadata on mirror/gm0a: magic: GEOM::JOURNAL version: 0 id: 1528592465 type: 3 start: 1610612224 end: 3758095872 joffset: 1632963584 jid: 1692325236 flags: 1 hcprovider: provsize: 3758096384 MD5 hash: e568762b7c6dba3b75efb22f656d1de9 Done. # gjournal status Name Status Components mirror/gm0a.journal N/A mirror/gm0a mirror/gm0d.journal N/A mirror/gm0d mirror/gm0e.journal N/A mirror/gm0e # gjournal status mirror/gm0a gjournal: No such geom: mirror/gm0a. # gjournal status /dev/mirror/gm0a gjournal: No such geom: /dev/mirror/gm0a. # gjournal status mirror/gm0a.journal gjournal: No such geom: mirror/gm0a.journal. # gjournal status /dev/mirror/gm0a.journal gjournal: No such geom: /dev/mirror/gm0a.journal.