From owner-freebsd-questions@FreeBSD.ORG Mon Sep 6 11:12:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC5E510656C9 for ; Mon, 6 Sep 2010 11:12:50 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 9D66D8FC19 for ; Mon, 6 Sep 2010 11:12:50 +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 o86BCmoT082519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 6 Sep 2010 04:12:49 -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 o86BCmjU082518 for freebsd-questions@freebsd.org; Mon, 6 Sep 2010 04:12:48 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA27393; Mon, 6 Sep 10 04:08:18 PDT Date: Mon, 06 Sep 2010 04:19:34 -0700 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Message-Id: <4c84ce46.sHyLaI+H+UzM+J/y%perryh@pluto.rain.com> References: <4c83190a.SG+LIhPWaGtmaaeL%perryh@pluto.rain.com> <4C835474.7060707@infracaninophile.co.uk> <4c8487cc.Rh42YL91jTIv09e0%perryh@pluto.rain.com> In-Reply-To: <4c8487cc.Rh42YL91jTIv09e0%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: More gmirror problems (Re: "gmirror load" broken in 8.1 memstick) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 11:12:50 -0000 I wrote: > The good news is ... > > Fixit# ln -s /dist/boot/kernel /boot > > after which "gmirror load" works, creating /dev/mirror/gm0{,a,b}. and the bad news is that it still doesn't work: * "gmirror load" did create /dev/mirror/gm0{,a,b}, and it produced no output on stdout or stderr, but it appended a couple of lines to dmesg and the second does not look at all promising: GEOM_MIRROR: Device mirror/gm0 launched (1/1). GEOM_MIRROR: Cannot add disk ad0s2a to gm0 (error=17). 17 is defined in sys/errno.h as EEXIST /* File exists */ What can this mean? Of course ad0s2a and gm0 exist: ad0s2a is the (so far only) provider for gm0, which was just instantiated. By a different test, that error message may be bogus (long lines reformatted): Fixit# ls -la /dev/mirror total 1 dr-xr-xr-x 2 root 0 512 Sep 6 08:18 ./ dr-xr-xr-x 8 root 0 512 Sep 6 08:08 ../ crw-r----- 1 root operator 0, 78 Sep 6 08:15 gm0 crw-r----- 1 root operator 0, 79 Sep 6 08:15 gm0a crw-r----- 1 root operator 0, 80 Sep 6 08:15 gm0b Fixit# file -s /dev/mirror/* /dev/ad0s2a /dev/mirror/gm0: Unix Fast File system [v2] (little-endian) last mounted on /mnt/z, last written at Sun Sep 5 03:24:40 2010, clean flag 1, readonly flag 0, number of blocks 154976879, number of data blocks 150098746, number of cylinder groups 1648, block size 16384, fragment size 2048, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization /dev/mirror/gm0a: Unix Fast File system [v2] (little-endian) last mounted on /mnt/z, last written at Sun Sep 5 03:24:40 2010, clean flag 1, readonly flag 0, number of blocks 154976879, number of data blocks 150098746, number of cylinder groups 1648, block size 16384, fragment size 2048, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization /dev/mirror/gm0b: ERROR: cannot read `/dev/mirror/gm0b' (Input/Output error) /dev/ad0s2a: Unix Fast File system [v2] (little-endian) last mounted on /mnt/z, last written at Sun Sep 5 03:24:40 2010, clean flag 1, readonly flag 0, number of blocks 154976879, number of data blocks 150098746, number of cylinder groups 1648, block size 16384, fragment size 2048, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization This sure _looks_ as if mirror/gm0 and mirror/gm0a are seeing the data on ad0s2a, so maybe it's working after all. But: * After exiting from Fixit, and having sysinstall rescan devices so as to become aware of /dev/mirror/gm0*, gm0 is not in the disk list for either Partition (slice) or Label. I even tried: Fixit# ( cd /dev && ln -s mirror/* . && ll gm* ) lrwxr-xr-x 1 root 0 10 Sep 6 10:48 gm0@ -> mirror/gm0 lrwxr-xr-x 1 root 0 10 Sep 6 10:48 gm0a@ -> mirror/gm0a lrwxr-xr-x 1 root 0 10 Sep 6 10:48 gm0b@ -> mirror/gm0b in case sysinstall looks only in /dev itself and not in any subdirectories, and gm0 is *still* not in either list. How do I get sysinstall to see it?