From owner-freebsd-current@FreeBSD.ORG Fri Jun 8 15:39:03 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9161816A400 for ; Fri, 8 Jun 2007 15:39:03 +0000 (UTC) (envelope-from kazuaki@aliceblue.jp) Received: from pd5f7be.tokyff01.ap.so-net.ne.jp (pd5f7be.tokyff01.ap.so-net.ne.jp [202.213.247.190]) by mx1.freebsd.org (Postfix) with ESMTP id 5D23113C44B for ; Fri, 8 Jun 2007 15:39:03 +0000 (UTC) (envelope-from kazuaki@aliceblue.jp) Received: from eyes.aliceblue.jp (dhcp21.aliceblue.jp [192.168.11.21]) by pd5f7be.tokyff01.ap.so-net.ne.jp (Postfix) with ESMTP id A30EF597C28; Sat, 9 Jun 2007 00:19:06 +0900 (JST) Message-ID: <46697315.1040104@aliceblue.jp> Date: Sat, 09 Jun 2007 00:17:41 +0900 From: Kazuaki ODA User-Agent: Thunderbird 2.0.0.0 (X11/20070522) MIME-Version: 1.0 To: "illoai@gmail.com" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "youshi10@u.washington.edu" , current@freebsd.org Subject: Re: md(4) broken on CURRENT? 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: Fri, 08 Jun 2007 15:39:03 -0000 illoai@gmail.com wrote: > On 06/06/07, youshi10@u.washington.edu wrote: > >> > On Thu, 7 Jun 2007, Kazuaki ODA wrote: >> > >> >> On CURRENT amd64 cvsup'ed yesterday: >> >> >> >> # dd if=/dev/zero of=/var/tmp/disk1.img bs=1k count=1m >> >> 1048576+0 records in >> >> 1048576+0 records out >> >> 1073741824 bytes transferred in 29.206387 secs (36763939 bytes/sec) >> >> # dd if=/dev/zero of=/var/tmp/disk2.img bs=1k count=1m >> >> 1048576+0 records in >> >> 1048576+0 records out >> >> 1073741824 bytes transferred in 27.405935 secs (39179171 bytes/sec) >> >> # mdconfig -a -t vnode -f /var/tmp/disk1.img >> >> md0 >> >> # mdconfig -a -t vnode -f /var/tmp/disk2.img >> >> md1 >> >> # mdconfig -l >> >> >> >> # gmirror load >> >> # gmirror label data md0 md1 >> >> # gmirror status >> >> gmirror: Cannot get GEOM tree: Unknown error: -1 >> >> >> >> Hmm, is md(4) broken on CURRENT? Or is this a problem only on amd64? >> >> > . . . >> Works for me on 7-CURRENT/amd64 cvsup'ed and completely rebuilt Sunday. >> -Garrett > > With csup as of late in the day 07jun (built last night), > on i386, it works as expected. > Thanks for your trial and information. I finally found the reason why I cannot get GEOM tree. That was a problem specific for my environment. I ran the commands described in my previous post with a DVD-ROM in a drive, and the DVD-ROM had a label (GEOM_LABEL) encoded in Shift_JIS, which is one of popular encodings in Japan. Since the XML parser used for parsing GEOM XML tree does not expect the encoding (probably it expects UTF-8), geom_xml2tree() defined in libgeom considers it invalid and the function fails, so I cannot get GEOM tree. Now I can easily reproduce the same issue. For example: # dd if=/dev/zero of=/var/tmp/disk1.img bs=1k count=1k # mdconfig -a -t vnode -f /var/tmp/disk1.img md0 # glabel create md0 # glabel list glabel: Cannot get GEOM tree: Unknown error: -1 -- Kazuaki ODA