From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 22 05:32:30 2008 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0301065675; Mon, 22 Dec 2008 05:32:30 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E8E918FC1C; Mon, 22 Dec 2008 05:32:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBM5WTln080173; Mon, 22 Dec 2008 05:32:29 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBM5WTBX080169; Mon, 22 Dec 2008 05:32:29 GMT (envelope-from linimon) Date: Mon, 22 Dec 2008 05:32:29 GMT Message-Id: <200812220532.mBM5WTBX080169@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-scsi@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/129602: [ahd] ahd(4) gets confused and wedges SCSI bus X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 05:32:30 -0000 Synopsis: [ahd] ahd(4) gets confused and wedges SCSI bus Responsible-Changed-From-To: freebsd-i386->freebsd-scsi Responsible-Changed-By: linimon Responsible-Changed-When: Mon Dec 22 05:32:06 UTC 2008 Responsible-Changed-Why: Probably not i386-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=129602 From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 22 11:06:58 2008 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CD841065676 for ; Mon, 22 Dec 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7A7038FC16 for ; Mon, 22 Dec 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBMB6w6n060704 for ; Mon, 22 Dec 2008 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBMB6v8X060700 for freebsd-scsi@FreeBSD.org; Mon, 22 Dec 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Dec 2008 11:06:57 GMT Message-Id: <200812221106.mBMB6v8X060700@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/126866 scsi [isp] [panic] kernel panic on card initialization o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123666 scsi [aac] attach fails with Adaptec SAS RAID 3805 controll o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/38828 scsi [dpt] [request] DPT PM2012B/90 doesn't work o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 30 problems total. From owner-freebsd-scsi@FreeBSD.ORG Sat Dec 27 23:12:32 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19DE71065673 for ; Sat, 27 Dec 2008 23:12:32 +0000 (UTC) (envelope-from e.scholtz@argonsoft.de) Received: from coyote.quickmin.net (coyote.quickmin.net [217.14.112.24]) by mx1.freebsd.org (Postfix) with ESMTP id 73A058FC13 for ; Sat, 27 Dec 2008 23:12:31 +0000 (UTC) (envelope-from e.scholtz@argonsoft.de) Received: (qmail 5204 invoked from network); 27 Dec 2008 23:45:48 +0100 Received: by simscan 1.4.0 ppid: 5200, pid: 5202, t: 0.0246s scanners: clamav: 0.94.1/m:49/d:8609 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=argonsoft.de; b=RbJ1noXTXqh8Z+oy+i0Kpp/Ak876lZ2F2EGhsp3MbrdY1fWghnsvHgEfNpe2TXe3pd+oc7SMBIuvIaauv8Lol0bMgnkaXRK18C1d/pBiuYrJamIndBnVsXBkfXDJ2Cg+nZMAlK4DMzSOWVIDajc1oGeouli9pi42Ks1JgTyElEw= ; Received: from 163-170-20-212.dsl.globvill.net (HELO erik-scholtzs-macbook-pro-15.local) (00000150@212.20.170.163) by coyote.quickmin.net with SMTP; 27 Dec 2008 23:45:48 +0100 Message-ID: <4956B01B.3000509@argonsoft.de> Date: Sat, 27 Dec 2008 23:45:47 +0100 From: "Erik Scholtz, ArgonSoft GmbH" User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: multipart/mixed; boundary="------------040502050705080206050206" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problem with disklabel and filesystem over iSCSI X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2008 23:12:32 -0000 This is a multi-part message in MIME format. --------------040502050705080206050206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi, the last days I tried to get a 1TB SAN to work with FreeBSD 7.x. I tried it with the following releases: FreeBSD web3 7.0-RELEASE FreeBSD 7.0-RELEASE #0: i386 FreeBSD 7.1-RC1 amd64 FreeBSD 7.1-RC2 amd64 Unfortunatly I could not get it to work. I think there is a problem with the disklabels. The UFS could not be written successfully. So I tried the same with ZFS. ZFS seems to work. After creating a pool and mounting the FS it can be used normally. But after unmounting the FS and rebooting the system, the FS is corrupted. Remounting the FS without rebooting works without any problems. Here the "log": *********************************************************************************** (iSCSI Session successfully created, the device is known as da0) (creating the partition) web3# fdisk /dev/da0s1 ******* Working on device /dev/da0s1 ******* parameters extracted from in-core disklabel are: cylinders=99693 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=99693 heads=255 sectors/track=63 (16065 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 1601567982 (782015 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 364/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: (writeout the partition table) web3# dd if=/dev/da0 of=/partition1.bin bs=1 count=64 skip=446 seek=446 *********************************************************************************** (write the label) web3# bsdlabel -w /dev/da0s1 web3# bsdlabel /dev/da0s1 bsdlabel: /dev/da0s1: no valid label found (writeout the partition table) web3# dd if=/dev/da0 of=/partition2.bin bs=1 count=64 skip=446 seek=446 *********************************************************************************** (create the filesystem) newfs -O2 /dev/da0s1 /dev/da0s1: 782023.5MB (1601584044 sectors) block size 16384, fragment size 2048 using 4256 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, ... ... ... 1601377920 internal error: can't find block in cyl 0 (writeout the partition table) web3# dd if=/dev/da0 of=/partition3.bin bs=1 count=64 skip=446 seek=446 *********************************************************************************** (after the ufs was not successfull, the partition is destroyed again) (now trying to use a zfs) web3# zpool create tank da0 web3# zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 da0 ONLINE 0 0 0 errors: No known data errors *********************************************************************************** (list of mounted volumes) web3# mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) tank on /tank (zfs, local) *********************************************************************************** (copy a file to the zfs and check md5 before and after) web3# md5 /sbin/init MD5 (/sbin/init) = 6a374bc84a8b89822964e2a73ed2af18 web3# cp /sbin/init /tank/. web3# md5 /tank/init MD5 (/tank/init) = 6a374bc84a8b89822964e2a73ed2af18 (the zfs volume can be unmounted and mounted again - md5 still correct) *********************************************************************************** (system reboot) (iSCSI Session reinitiated) web3# zpool status pool: tank state: FAULTED status: One or more devices could not be used because the label is missing or invalid. There are insufficient replicas for the pool to continue functioning. action: Destroy and re-create the pool from a backup source. see: http://www.sun.com/msg/ZFS-8000-5E scrub: none requested config: NAME STATE READ WRITE CKSUM tank FAULTED 0 0 0 corrupted data da0 UNAVAIL 0 0 0 corrupted data (FS not useable anymore - files are lost) *********************************************************************************** In the attachment you'll find the results of the dd. Greetings, Erik ----- ArgonSoft GmbH | Im Ermlisgrund 3 | 76337 Waldbronn Tel: +49 7243 71520 | Fax: +49 7243 715222 | http://www.argonsoft.de Umsatzsteuer-Identnummer: DE205762306 | Handelsregister: HRB2372E Geschäftsführer: Erik Scholtz --------------040502050705080206050206--