From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 18:21:13 2006 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 502AD16A412 for ; Tue, 19 Dec 2006 18:21:13 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from aposerv.p-i-n.com (aposerv.p-i-n.com [62.156.172.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9052A43CA0 for ; Tue, 19 Dec 2006 18:21:12 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (pinserv2.p-i-n.com [10.101.240.52]) by aposerv.p-i-n.com (8.12.11/8.12.11) with ESMTP id kBJHkNED032765 for ; Tue, 19 Dec 2006 18:46:23 +0100 (CET) (envelope-from rabe@p-i-n.com) Received: from pinserv2.p-i-n.com (localhost.p-i-n.com [127.0.0.1]) by p-i-n.com (8.13.6/8.13.6) with ESMTP id kBJHkIgB074009 for ; Tue, 19 Dec 2006 18:46:18 +0100 (CET) (envelope-from rabe@pinserv2.p-i-n.com) Received: (from rabe@localhost) by pinserv2.p-i-n.com (8.13.6/8.13.6/Submit) id kBJHkI0M074008 for freebsd-geom@freebsd.org; Tue, 19 Dec 2006 18:46:18 +0100 (CET) (envelope-from rabe) Resent-Message-Id: <200612191746.kBJHkI0M074008@pinserv2.p-i-n.com> Date: Thu, 14 Dec 2006 19:49:40 +0100 From: "Raphael H. Becker" To: freebsd-geom@freebsd.org Message-ID: <20061214184940.GA50750@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Resent-From: "Raphael H. Becker" Resent-Date: Tue, 19 Dec 2006 18:46:18 +0100 Resent-To: freebsd-geom@freebsd.org Subject: gstripe oder graid3 on USB-Sticks 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: Tue, 19 Dec 2006 18:21:13 -0000 Hello *, today I bought 3 USB sticks to find out, if there's something to play with GEOM on it. My FreeBSD ist 6.2-RC1. umass0: SanDisk Corporation Cruzer Micro, rev 2.00/0.10, addr 3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C) # graid3 status sticks Name Status Components raid3/sticks COMPLETE da1 da2 da0 I newfs'd this stick-RAID3 and dd'd about 1G /dev/zero into a file, gives me about 8MB/sec. Trying to read this file using dd seems to deadlock the device, dd is'nt interruptable by SIGHUP (^C) until removing one stick of the mounted raid3, which causes an error. umount /mnt works. umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: at uhub4 port 4 (addr 3) disconnected (da0:umass-sim0:0:0:0): lost device GEOM_RAID3: Device sticks: provider da0 disconnected. (da0:dead_sim0:0:0:0): Synchronize cache failed, status == 0x8, scsi status == 0x0 (da0:dead_sim0:0:0:0): removing device entry GEOM_RAID3: Request failed (error=22). da0[READ(offset=12872192, length=65536)] umass0: detached After reinserting the stick, the automatic rebuild begins and finishes successfully: umass0: SanDisk Corporation Cruzer Micro, rev 2.00/0.10, addr 3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C) GEOM_RAID3: Device sticks: provider da0 detected. GEOM_RAID3: Device sticks: rebuilding provider da0. GEOM_RAID3: Device sticks: rebuilding provider da0 finished. GEOM_RAID3: Device sticks: provider da0 activated. Remounting / umount works: root@daemon:~# mount /dev/raid3/stickss1 /mnt/ root@daemon:~# mount /dev/raid3/stickss1 on /mnt (ufs, local) root@daemon:~# umount ... but fsck the umounted filesystem root@daemon:~# fsck /dev/raid3/stickss1 fsck: Could not determine filesystem type Any idea about this? Is this geom-specific? Or USB-stick related? Can anyone else reproduce this behaviour (lock when reading)?