From owner-freebsd-geom@FreeBSD.ORG Wed Jan 10 07:08:18 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8C7616A412; Wed, 10 Jan 2007 07:08:18 +0000 (UTC) (envelope-from vd@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B43D113C44C; Wed, 10 Jan 2007 07:08:18 +0000 (UTC) (envelope-from vd@FreeBSD.org) Received: from freefall.freebsd.org (vd@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0A78Iu4033296; Wed, 10 Jan 2007 07:08:18 GMT (envelope-from vd@freefall.freebsd.org) Received: (from vd@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0A78HOR033295; Wed, 10 Jan 2007 07:08:17 GMT (envelope-from vd) Date: Wed, 10 Jan 2007 07:08:17 +0000 From: Vasil Dimov To: "R. B. Riddick" Message-ID: <20070110070817.GA33206@freefall.freebsd.org> References: <45965441.6010002@fer.hr> <36644.58831.qm@web30303.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36644.58831.qm@web30303.mail.mud.yahoo.com> Cc: Ivan Voras , freebsd-geom@FreeBSD.org Subject: Re: graid3 device gives "Invalid argument" when requested to read>=128kb X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 07:08:18 -0000 On Sat, Dec 30, 2006 at 04:39:39AM -0800, R. B. Riddick wrote: > --- Ivan Voras wrote: > > No, probably not. The whole thing was my very first attempt at doing > > anything with GEOM (ggcomp - it still exists somewhere), which wasn't > > very usable :) "Normal" file system operations worked, though I think > > there were problems even here with 16 KB sectors. > > > Sector size seems to be not the reason (at least with gnop and dd on R6.1): > > neo# gnop create -S 16384 md0 > neo# dd if=/dev/md0.nop of=/dev/null > dd: /dev/md0.nop: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.000155 secs (0 bytes/sec) This is because default dd's read block size is 512b > neo# dd if=/dev/md0.nop of=/dev/null bs=16k > 1024+0 records in > 1024+0 records out > 16777216 bytes transferred in 0.398660 secs (42084027 bytes/sec) > > Just UFS seems to have a problem: > > neo# newfs /dev/md0.nop > /dev/md0.nop: 16.0MB (32768 sectors) block size 16384, fragment size 16384 > using 4 cylinder groups of 4.02MB, 257 blks, 128 inodes. > newfs: can't read old UFS1 superblock: read error from block device: Invalid > argument Look at newfs's -S switch, this is the same issue as with dd above. -- Vasil Dimov gro.DSBeerF@dv