From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 13 11:08:26 2010 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 311791065703 for ; Mon, 13 Dec 2010 11:08:26 +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 1EC458FC18 for ; Mon, 13 Dec 2010 11:08:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBDB8QmT045613 for ; Mon, 13 Dec 2010 11:08:26 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBDB8PKk045610 for freebsd-scsi@FreeBSD.org; Mon, 13 Dec 2010 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Dec 2010 11:08:25 GMT Message-Id: <201012131108.oBDB8PKk045610@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, 13 Dec 2010 11:08:26 -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/152250 scsi [ciss] [patch] Kernel panic when hw.ciss.expose_hidden o kern/151564 scsi [ciss] ciss(4) should increase CISS_MAX_LOGICAL to 10 o docs/151336 scsi Missing documentation of scsi_ and ata_ functions in c o kern/148083 scsi [aac] Strange device reporting o kern/147704 scsi [mpt] sys/dev/mpt: new chip revision, partially unsupp o kern/146287 scsi [ciss] ciss(4) cannot see more than one SmartArray con o kern/145768 scsi [mpt] can't perform I/O on SAS based SAN disk in freeb o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/144301 scsi [ciss] [hang] HP proliant server locks when using ciss o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/141934 scsi [cam] [patch] add support for SEAGATE DAT Scopion 130 o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 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/127717 scsi [ata] [patch] [request] - support write cache toggling o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123520 scsi [ahd] unable to boot from net while using ahd 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/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 bin/57088 scsi [cam] [patch] for a possible fd leak in libcam.c 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/35234 scsi World access to /dev/pass? (for scanner) requires acce 44 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 14 14:14:49 2010 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 DC89B106566B for ; Tue, 14 Dec 2010 14:14:48 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 878A28FC0C for ; Tue, 14 Dec 2010 14:14:48 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1PSVeQ-0007EF-89; Tue, 14 Dec 2010 16:14:46 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Pavel Timofeev In-reply-to: References: Comments: In-reply-to Pavel Timofeev message dated "Tue, 14 Dec 2010 17:01:20 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 14 Dec 2010 16:14:46 +0200 From: Daniel Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Tue, 14 Dec 2010 14:14:49 -0000 > --0022152d5de95b793a04975f41ca > Content-Type: text/plain; charset=UTF-8 > > Good day to all! > I`m trying work with a volume on Clariion CX3-40 via iSCSI on new FreeBSD > 8.2-BETA1 i386 (net.iscsi_initiator.driver_version: 2.2.4.2) > > iSCSI discovery works. And `iscontrol -n iscsitrg_name` works fine. > Then I make `newfs -U /dev/da0` and `mount /dev/da0 /mnt/iscsi`. IMHO you are playing with fire :-). At first glance it doesn't look as an iscsi bug, but firstly use gpart(8) to get a valid label or use sade(8). > All is well at first glance. > I can copy files from local hdd to /mnt/iscsi, and can read from /mnt/iscsi, > but not small files only. > When I want to make some action with many small files like `cp -r /usr/src > /mnt/iscsi/` my system crashes. > > /var/log/messages contain lines like this > Dec 14 12:04:05 timbsd syslogd: kernel boot file is /boot/kernel/kernel > Dec 14 12:04:05 timbsd kernel: > g_vfs_done():da0a[READ(offset=18014398509481984, length=16384)]error = 5 > Dec 14 12:04:05 timbsd kernel: mode = 017776, inum = 1201220, fs = > /mnt/iscsi > Dec 14 12:04:05 timbsd kernel: panic: ffs_valloc: dup alloc > or > Dec 13 15:44:45 timbsd kernel: bad block 2147483904, ino 612416 > Dec 13 15:44:45 timbsd kernel: pid 1528 (bsdtar), uid 0 inumber 612416 on > /mnt/iscsi: bad block > Dec 13 15:44:45 timbsd kernel: dev = da0a, block = 404104882969600, fs = > /mnt/iscsi > Dec 13 15:44:45 timbsd kernel: panic: ffs_blkfree: freeing free block > Dec 13 15:44:45 timbsd kernel: #3 0xc0ae236f at > handle_workitem_freeblocks+0x2cf > Dec 13 15:44:45 timbsd kernel: #4 0xc0aead4f at > softdep_setup_freeblocks+0xd3f > Dec 13 15:56:42 timbsd kernel: panic: handle_written_inodeblock: bad size > > What other information should I provide for debug? > > P.S. sorry for my bad english. I am learning. > > --0022152d5de95b793a04975f41ca > Content-Type: text/html; charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > Good day to all!
I`m trying work with a volume on Clariion CX3-40 via iS= > CSI on new FreeBSD 8.2-BETA1 i386 (net.iscsi_initiator.driver_version: 2.2.= > 4.2)

iSCSI discovery works. And `iscontrol -n iscsitrg_name` works f= > ine.
> Then I make `newfs -U /dev/da0` and `mount /dev/da0 /mnt/iscsi`.
All is = > well at first glance.
I can copy files from local hdd to /mnt/iscsi, and= > can read from /mnt/iscsi, but not small files only.
When I want to make= > some action with many small files like `cp -r /usr/src /mnt/iscsi/` my sys= > tem crashes.
>
/var/log/messages contain lines like this
Dec 14 12:04:05 timbsd sys= > logd: kernel boot file is /boot/kernel/kernel
Dec 14 12:04:05 timbsd ker= > nel: g_vfs_done():da0a[READ(offset=3D18014398509481984, length=3D16384)]err= > or =3D 5
> Dec 14 12:04:05 timbsd kernel: mode =3D 017776, inum =3D 1201220, fs =3D /m= > nt/iscsi
Dec 14 12:04:05 timbsd kernel: panic: ffs_valloc: dup alloc
= > or
Dec 13 15:44:45 timbsd kernel: bad block 2147483904, ino 612416
De= > c 13 15:44:45 timbsd kernel: pid 1528 (bsdtar), uid 0 inumber 612416 on /mn= > t/iscsi: bad block
> Dec 13 15:44:45 timbsd kernel: dev =3D da0a, block =3D 404104882969600, fs = > =3D /mnt/iscsi
Dec 13 15:44:45 timbsd kernel: panic: ffs_blkfree: freein= > g free block
Dec 13 15:44:45 timbsd kernel: #3 0xc0ae236f at handle_work= > item_freeblocks+0x2cf
> Dec 13 15:44:45 timbsd kernel: #4 0xc0aead4f at softdep_setup_freeblocks+0x= > d3f
Dec 13 15:56:42 timbsd kernel: panic: handle_written_inodeblock: bad= > size

What other information should I provide for debug?

> P.S. sorry for my bad english. I am learning.
> > --0022152d5de95b793a04975f41ca-- From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 14 14:15:11 2010 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 9F8FB10656C0 for ; Tue, 14 Dec 2010 14:15:11 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 687978FC15 for ; Tue, 14 Dec 2010 14:15:11 +0000 (UTC) Received: by iyb26 with SMTP id 26so338597iyb.13 for ; Tue, 14 Dec 2010 06:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=QKXrO6sXnC10oVPbt6iaNnyp0EuWAuqkcG1u8r0izIQ=; b=MYJ1vDjo0AQZYJXMHPqpEn6CwHzpKiyq3+2ljR+fyPEUHKDJeIemFN0Ve0vbUObPoP R95EycuR2PkgDF25KmP/z6LYKG2rbRraMbB4BzrZ2Qsl65jgN+dUWtZNNdTBM4zvpmYy HoRX4cb2eBrRSZBt4/7oC9W0wP4HTtLT3HImE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Mks84cdlzyh7mZnue8qsf8BsS5gKciYvhWNAt/7wtAhomxkjDJeDab8zUq2k2mUXXw 7mjof1xaNxbRkTRIq8fgMnMzp5738lLxDLkqm/R1OKmbY2+dGrgnVfla7RdLtY96xqR8 svHJzI8YGt4xLgpt98qXCqOBP6bkYkv9GqIeE= MIME-Version: 1.0 Received: by 10.231.37.69 with SMTP id w5mr3270395ibd.102.1292335281043; Tue, 14 Dec 2010 06:01:21 -0800 (PST) Received: by 10.231.38.10 with HTTP; Tue, 14 Dec 2010 06:01:20 -0800 (PST) Date: Tue, 14 Dec 2010 17:01:20 +0300 Message-ID: From: Pavel Timofeev To: freebsd-scsi@freebsd.org, danny@cs.huji.ac.il Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Tue, 14 Dec 2010 14:15:11 -0000 Good day to all! I`m trying work with a volume on Clariion CX3-40 via iSCSI on new FreeBSD 8.2-BETA1 i386 (net.iscsi_initiator.driver_version: 2.2.4.2) iSCSI discovery works. And `iscontrol -n iscsitrg_name` works fine. Then I make `newfs -U /dev/da0` and `mount /dev/da0 /mnt/iscsi`. All is well at first glance. I can copy files from local hdd to /mnt/iscsi, and can read from /mnt/iscsi, but not small files only. When I want to make some action with many small files like `cp -r /usr/src /mnt/iscsi/` my system crashes. /var/log/messages contain lines like this Dec 14 12:04:05 timbsd syslogd: kernel boot file is /boot/kernel/kernel Dec 14 12:04:05 timbsd kernel: g_vfs_done():da0a[READ(offset=18014398509481984, length=16384)]error = 5 Dec 14 12:04:05 timbsd kernel: mode = 017776, inum = 1201220, fs = /mnt/iscsi Dec 14 12:04:05 timbsd kernel: panic: ffs_valloc: dup alloc or Dec 13 15:44:45 timbsd kernel: bad block 2147483904, ino 612416 Dec 13 15:44:45 timbsd kernel: pid 1528 (bsdtar), uid 0 inumber 612416 on /mnt/iscsi: bad block Dec 13 15:44:45 timbsd kernel: dev = da0a, block = 404104882969600, fs = /mnt/iscsi Dec 13 15:44:45 timbsd kernel: panic: ffs_blkfree: freeing free block Dec 13 15:44:45 timbsd kernel: #3 0xc0ae236f at handle_workitem_freeblocks+0x2cf Dec 13 15:44:45 timbsd kernel: #4 0xc0aead4f at softdep_setup_freeblocks+0xd3f Dec 13 15:56:42 timbsd kernel: panic: handle_written_inodeblock: bad size What other information should I provide for debug? P.S. sorry for my bad english. I am learning. From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 14 14:25:27 2010 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 9DCD5106566B for ; Tue, 14 Dec 2010 14:25:27 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6267C8FC08 for ; Tue, 14 Dec 2010 14:25:27 +0000 (UTC) Received: by iwn39 with SMTP id 39so845618iwn.13 for ; Tue, 14 Dec 2010 06:25:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=YPajq4yUYN+Y3AwFKMMVqAMEok5K36U0/JwAignyWks=; b=rTWITOwp9fRpEQoKKX80VrAA9Dlb7Gmn4WAA5G1DuKvBfscg9bBj6OdAkPbtR9PNkW JL6ag1IDjsAoO+l7Ri5a5BD7DTRnDJj0sRz+0UuTBI66pfWvkFdX5BKE0jYQ9kenApBe LH/NZSZf/DlqeFycHS/QOGQoihwZb3ZiWMdJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qH0riaDBuaAVyQvkNhOdTtPeHncymg1b4ObyxDmd8RcNEUcJHytVqS3x2D5MZh8OV3 cHkWjWw8nOYqMKfn0QBJTXmm8DOfQ9f4S+iLY9hJRcqlPI+qN7/jqgRftTPWA/C//1hX J1bxnqpT6lhcj/Paem/NJ1EUPgvLXx5nvQAYg= MIME-Version: 1.0 Received: by 10.231.147.149 with SMTP id l21mr3279946ibv.152.1292336690369; Tue, 14 Dec 2010 06:24:50 -0800 (PST) Received: by 10.231.38.10 with HTTP; Tue, 14 Dec 2010 06:24:50 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Dec 2010 17:24:50 +0300 Message-ID: From: Pavel Timofeev To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Tue, 14 Dec 2010 14:25:27 -0000 Thank you for fast reply! =) 2010/12/14 Daniel Braniss > > --0022152d5de95b793a04975f41ca > > IMHO you are playing with fire :-). > At first glance it doesn't look as an iscsi bug, but firstly > use gpart(8) to get a valid label or use sade(8). > > Ok, I will try. If I format volume into msdos_fs all works fine, with all files. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 10:20:25 2010 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 0CE4910656C3 for ; Wed, 15 Dec 2010 10:20:25 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (216-139-236-26.aus.us.siteprotect.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id DAEF48FC1A for ; Wed, 15 Dec 2010 10:20:24 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PSoC8-0004Hz-Eh for freebsd-scsi@freebsd.org; Wed, 15 Dec 2010 02:02:48 -0800 Message-ID: <30462423.post@talk.nabble.com> Date: Wed, 15 Dec 2010 02:02:48 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 10:20:25 -0000 > IMHO you are playing with fire :-). > At first glance it doesn't look as an iscsi bug, but firstly > use gpart(8) to get a valid label or use sade(8). sade(8) does not help. Same error. Current partition and bsdlabel are made with sade(8): [root@timbsd ~]# fdisk /dev/da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1305 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=1305 heads=255 sectors/track=63 (16065 blks/cyl) 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 20964762 (10236 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: [root@timbsd ~]# bsdlabel /dev/da0s1 # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 20964762 0 4.2BSD 0 0 0 c: 20964762 0 unused 0 0 # "raw" part, don't edit I will try gpart(8). -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30462423.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 13:02:42 2010 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 08E6610656A5 for ; Wed, 15 Dec 2010 13:02:42 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (216-139-236-26.aus.us.siteprotect.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id D6EAF8FC18 for ; Wed, 15 Dec 2010 13:02:41 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PSr0C-0003zG-Rt for freebsd-scsi@freebsd.org; Wed, 15 Dec 2010 05:02:40 -0800 Message-ID: <30463576.post@talk.nabble.com> Date: Wed, 15 Dec 2010 05:02:40 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: <30462423.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: <30462423.post@talk.nabble.com> Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 13:02:42 -0000 > IMHO you are playing with fire :-). > At first glance it doesn't look as an iscsi bug, but firstly > use gpart(8) to get a valid label or use sade(8). gpart(8) doesn`t help too =(( Any ideas? -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30463576.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 13:07:27 2010 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 972B41065679 for ; Wed, 15 Dec 2010 13:07:27 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 230CE8FC17 for ; Wed, 15 Dec 2010 13:07:27 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 43F06E83CE; Wed, 15 Dec 2010 13:07:26 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=FvlsROiJ0lF9 AMv7cbd+oAY7pZo=; b=V5NfwzXThfiy0ugtOuC8wRdCG9V9XaEHIbkHWn3Mdxcp KFZD3n51R432n3sv6vV2PqdJ8AP2V+MZIsgb7XdMIF9xNI38Z2Dafao43wT/ZnXb rT/1/gBYrZ7oJYXFoUVSZW4fmeF9RbU085BVULQJ7aa6DXzx0wYitf73pPrhT6c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=xMZvPx thU601EemL/+aASDkSFJ7wi4HK/gUZZNnkKXlTW6PseFG0Z6axJJEFYKt6Qf+RZ0 bsQX+aLKU16/fMj7xZ8yS3uabz4N/4ElY/3wju8VqWlU58RQRj+pku8F5pfyunFi OGJ+/KoDlfgrIuQ2waiP2V/PoTRt2LJE2Vk3E= Received: from unknown (client-86-29-47-22.glfd.adsl.virginmedia.com [86.29.47.22]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id F2905E83CD; Wed, 15 Dec 2010 13:07:25 +0000 (GMT) Date: Wed, 15 Dec 2010 13:06:50 +0000 From: Bruce Cran To: Pavel Timofeev Message-ID: <20101215130650.00000fac@unknown> In-Reply-To: <30463576.post@talk.nabble.com> References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 13:07:27 -0000 On Wed, 15 Dec 2010 05:02:40 -0800 (PST) Pavel Timofeev wrote: > gpart(8) doesn`t help too =(( It's perfectly valid to put a filesystem on a raw disk so I wouldn't expect partitioning to help. -- Bruce Cran From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 13:32:51 2010 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 4A53F106564A for ; Wed, 15 Dec 2010 13:32:51 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (216-139-236-26.aus.us.siteprotect.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 22DD88FC08 for ; Wed, 15 Dec 2010 13:32:50 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PSrTO-0006VU-Ie for freebsd-scsi@freebsd.org; Wed, 15 Dec 2010 05:32:50 -0800 Message-ID: <30463775.post@talk.nabble.com> Date: Wed, 15 Dec 2010 05:32:46 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: <20101215130650.00000fac@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> <20101215130650.00000fac@unknown> Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 13:32:51 -0000 Bruce Cran wrote: > > On Wed, 15 Dec 2010 05:02:40 -0800 (PST) > Pavel Timofeev wrote: > >> gpart(8) doesn`t help too =(( > > It's perfectly valid to put a filesystem on a raw disk so I wouldn't > expect partitioning to help. > > -- > Bruce Cran > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > Excuse me, what do you mean? -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30463775.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 13:44:07 2010 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 3A0C61065670 for ; Wed, 15 Dec 2010 13:44:07 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id E336F8FC08 for ; Wed, 15 Dec 2010 13:44:06 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 1B608E83CE; Wed, 15 Dec 2010 13:44:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=R0B56UbhBTqF dxclvhJDaCsRvNc=; b=wo3krcisbpo3gFhjzgnGSL7Or88+u1yEniOKBaFBxhGL hv3NvFfG+VC1Wq6Z4uw2bJtSPbvfqUcpVvwQITV1v5jTbJk8SF4zM89K2nWo9Tu0 y2WjProUB0t3CTnbWXEmHq5HkEY1hH3dkUFErC49qmObddbOF7uAsRjdPRFnrPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=PbBDM9 4Wqyzka+96RfQmCe8dPH6sLaYgLAWLeUEyiHVhmYWPavHw+5LV+7nxk6nFnUIBxD RV7R6TgEReCtRHR8OL0QXYP9rPcgAK6QI63+P+0bKWsZyM7mynqa4Pc1ujXrGdKm KDnS1EbbxlaJryJtqUWBnr9HptDOdMOc6ycsw= Received: from unknown (client-86-29-47-22.glfd.adsl.virginmedia.com [86.29.47.22]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id CAAFAE83CD; Wed, 15 Dec 2010 13:44:05 +0000 (GMT) Date: Wed, 15 Dec 2010 13:43:30 +0000 From: Bruce Cran To: Pavel Timofeev Message-ID: <20101215134330.00007dec@unknown> In-Reply-To: <30463775.post@talk.nabble.com> References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> <20101215130650.00000fac@unknown> <30463775.post@talk.nabble.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 13:44:07 -0000 On Wed, 15 Dec 2010 05:32:46 -0800 (PST) Pavel Timofeev wrote: > Excuse me, what do you mean? I mean you don't have to create a filesystem within a partition. Instead of doing: gpart create -s mbr da0 gpart add -t freebsd-ufs da0 newfs /dev/da0s1 You can instead create the filesystem on the plain disk instead: newfs /dev/da0 The only issue I've had is when I forgot a disk had a filesystem and ended up repartitioning over it when I did a reinstall, because sysinstall showed the disk as being blank. -- Bruce Cran From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 13:58:04 2010 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 DFD7B106566C for ; Wed, 15 Dec 2010 13:58:04 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (216-139-236-26.aus.us.siteprotect.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id B72F78FC36 for ; Wed, 15 Dec 2010 13:58:04 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PSrro-0000TW-1b for freebsd-scsi@freebsd.org; Wed, 15 Dec 2010 05:58:04 -0800 Message-ID: <30463996.post@talk.nabble.com> Date: Wed, 15 Dec 2010 05:58:04 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: <20101215134330.00007dec@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> <20101215130650.00000fac@unknown> <30463775.post@talk.nabble.com> <20101215134330.00007dec@unknown> Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 13:58:05 -0000 Bruce Cran wrote: > > On Wed, 15 Dec 2010 05:32:46 -0800 (PST) > Pavel Timofeev wrote: > >> Excuse me, what do you mean? > > I mean you don't have to create a filesystem within a partition. > Instead of doing: > > gpart create -s mbr da0 > gpart add -t freebsd-ufs da0 > newfs /dev/da0s1 > > You can instead create the filesystem on the plain disk instead: > > newfs /dev/da0 > > > The only issue I've had is when I forgot a disk had a filesystem and > ended up repartitioning over it when I did a reinstall, because > sysinstall showed the disk as being blank. > > -- > Bruce Cran > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > I used `newfs -U /dev/da0` in topic start message without of any partitioning or bsd-labeling. And got an error. -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30463996.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 14:34:17 2010 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 0330F1065675 for ; Wed, 15 Dec 2010 14:34:17 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id ABC568FC12 for ; Wed, 15 Dec 2010 14:34:16 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id CF888E83CE; Wed, 15 Dec 2010 14:34:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=dTgJwfow4y1H 05OV9MziEvfca5c=; b=DCEZyIDduoAz7WNFudf+zsnNEj5MPUoQ7ST17aGiCz5a hQ7mlxC3eW+glCBbVok+5x9GAUYic6w85jOrABWBeCsB9eoqVg1yu3xoC3TIUyct GClGez4BQq6clNqFCwBQJjgqdLWL8U52mngjdBk7pawqd5u8M7/ywL489kE3hrg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=f5PLB2 lAGlL4Dkz4m3p34hR/SJ8N6RGgO+t0zEASiiTVkjly4764jE8mktvQNEIbgLW+/V fqQq4C3ngHzjX2XGR5zY3DqHgOCzdXMbuhoD72LwKp5LZ6ktUrS9dPs5r8Q0dO35 o8vLUmYkkQ9WTYn7UDqU0tGL7xBXQSUUvdA/w= Received: from unknown (client-86-29-47-22.glfd.adsl.virginmedia.com [86.29.47.22]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 8C6BFE83CD; Wed, 15 Dec 2010 14:34:15 +0000 (GMT) Date: Wed, 15 Dec 2010 14:33:39 +0000 From: Bruce Cran To: Pavel Timofeev Message-ID: <20101215143339.00001d0f@unknown> In-Reply-To: <30463996.post@talk.nabble.com> References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> <20101215130650.00000fac@unknown> <30463775.post@talk.nabble.com> <20101215134330.00007dec@unknown> <30463996.post@talk.nabble.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 14:34:17 -0000 On Wed, 15 Dec 2010 05:58:04 -0800 (PST) Pavel Timofeev wrote: > I used `newfs -U /dev/da0` in topic start message without of any > partitioning or bsd-labeling. And got an error. So partitioning fixed the error? Great! :) -- Bruce Cran From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 15 14:37:48 2010 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 C78EE106564A for ; Wed, 15 Dec 2010 14:37:48 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (216-139-236-26.aus.us.siteprotect.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7588FC23 for ; Wed, 15 Dec 2010 14:37:48 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PSsUF-0004Vy-QL for freebsd-scsi@freebsd.org; Wed, 15 Dec 2010 06:37:47 -0800 Message-ID: <30464342.post@talk.nabble.com> Date: Wed, 15 Dec 2010 06:37:47 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: <20101215143339.00001d0f@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: <30462423.post@talk.nabble.com> <30463576.post@talk.nabble.com> <20101215130650.00000fac@unknown> <30463775.post@talk.nabble.com> <20101215134330.00007dec@unknown> <30463996.post@talk.nabble.com> <20101215143339.00001d0f@unknown> Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Wed, 15 Dec 2010 14:37:49 -0000 Bruce Cran wrote: > > On Wed, 15 Dec 2010 05:58:04 -0800 (PST) > Pavel Timofeev wrote: > >> I used `newfs -U /dev/da0` in topic start message without of any >> partitioning or bsd-labeling. And got an error. > > So partitioning fixed the error? Great! :) > > -- > Bruce Cran > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > No =( With partitioning/labeling or without it I got same error. -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30464342.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 16 08:36:13 2010 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 C89FC106564A for ; Thu, 16 Dec 2010 08:36:13 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id A21368FC16 for ; Thu, 16 Dec 2010 08:36:13 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PT9Js-0004UR-VB for freebsd-scsi@freebsd.org; Thu, 16 Dec 2010 00:36:12 -0800 Message-ID: <30470851.post@talk.nabble.com> Date: Thu, 16 Dec 2010 00:36:12 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: Subject: Re: Fwd: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Thu, 16 Dec 2010 08:36:13 -0000 Pavel Timofeev wrote: > > Thank you for fast reply! =) > > 2010/12/14 Daniel Braniss > >> > --0022152d5de95b793a04975f41ca >> >> IMHO you are playing with fire :-). >> At first glance it doesn't look as an iscsi bug, but firstly >> use gpart(8) to get a valid label or use sade(8). >> > Ok, I will try. > If I format volume into msdos_fs all works fine, with all files. > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > And ZFS works fine too! -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30470851.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 16 08:46:54 2010 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 5C7F0106564A for ; Thu, 16 Dec 2010 08:46:54 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 35EB98FC20 for ; Thu, 16 Dec 2010 08:46:54 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PT9UD-0005Zt-MJ for freebsd-scsi@freebsd.org; Thu, 16 Dec 2010 00:46:53 -0800 Message-ID: <30470913.post@talk.nabble.com> Date: Thu, 16 Dec 2010 00:46:53 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: <30470851.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: <30470851.post@talk.nabble.com> Subject: Re: Fwd: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Thu, 16 Dec 2010 08:46:54 -0000 Pavel Timofeev wrote: > > > Pavel Timofeev wrote: >> >> Thank you for fast reply! =) >> >> 2010/12/14 Daniel Braniss >> >>> > --0022152d5de95b793a04975f41ca >>> >>> IMHO you are playing with fire :-). >>> At first glance it doesn't look as an iscsi bug, but firstly >>> use gpart(8) to get a valid label or use sade(8). >>> >> Ok, I will try. >> If I format volume into msdos_fs all works fine, with all files. >> _______________________________________________ >> freebsd-scsi@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi >> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" >> >> > > And ZFS works fine too! > Not yet. =( On ZFS sometimes I see message like .//src/crypto/openssh/auth-bsdauth.c: Illegal byte sequence while running `cp -r /usr/src /mnt/iscsi/` But system NOT crashes. =) -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30470913.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 16 13:30:53 2010 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 9A4AE106566B for ; Thu, 16 Dec 2010 13:30:53 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 6FBC18FC08 for ; Thu, 16 Dec 2010 13:30:53 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PTDv2-0004EN-Hj for freebsd-scsi@freebsd.org; Thu, 16 Dec 2010 05:30:52 -0800 Message-ID: <30472700.post@talk.nabble.com> Date: Thu, 16 Dec 2010 05:30:52 -0800 (PST) From: Pavel Timofeev To: freebsd-scsi@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com References: Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Thu, 16 Dec 2010 13:30:53 -0000 Daniel Braniss-2 wrote: > >> --0022152d5de95b793a04975f41ca >> Content-Type: text/plain; charset=UTF-8 >> >> Good day to all! >> I`m trying work with a volume on Clariion CX3-40 via iSCSI on new FreeBSD >> 8.2-BETA1 i386 (net.iscsi_initiator.driver_version: 2.2.4.2) >> >> iSCSI discovery works. And `iscontrol -n iscsitrg_name` works fine. >> Then I make `newfs -U /dev/da0` and `mount /dev/da0 /mnt/iscsi`. > > IMHO you are playing with fire :-). > At first glance it doesn't look as an iscsi bug, but firstly > use gpart(8) to get a valid label or use sade(8). > >> All is well at first glance. >> I can copy files from local hdd to /mnt/iscsi, and can read from >> /mnt/iscsi, >> but not small files only. >> When I want to make some action with many small files like `cp -r >> /usr/src >> /mnt/iscsi/` my system crashes. >> >> /var/log/messages contain lines like this >> Dec 14 12:04:05 timbsd syslogd: kernel boot file is /boot/kernel/kernel >> Dec 14 12:04:05 timbsd kernel: >> g_vfs_done():da0a[READ(offset=18014398509481984, length=16384)]error = 5 >> Dec 14 12:04:05 timbsd kernel: mode = 017776, inum = 1201220, fs = >> /mnt/iscsi >> Dec 14 12:04:05 timbsd kernel: panic: ffs_valloc: dup alloc >> or >> Dec 13 15:44:45 timbsd kernel: bad block 2147483904, ino 612416 >> Dec 13 15:44:45 timbsd kernel: pid 1528 (bsdtar), uid 0 inumber 612416 on >> /mnt/iscsi: bad block >> Dec 13 15:44:45 timbsd kernel: dev = da0a, block = 404104882969600, fs = >> /mnt/iscsi >> Dec 13 15:44:45 timbsd kernel: panic: ffs_blkfree: freeing free block >> Dec 13 15:44:45 timbsd kernel: #3 0xc0ae236f at >> handle_workitem_freeblocks+0x2cf >> Dec 13 15:44:45 timbsd kernel: #4 0xc0aead4f at >> softdep_setup_freeblocks+0xd3f >> Dec 13 15:56:42 timbsd kernel: panic: handle_written_inodeblock: bad size >> >> What other information should I provide for debug? >> >> P.S. sorry for my bad english. I am learning. >> >> --0022152d5de95b793a04975f41ca >> Content-Type: text/html; charset=UTF-8 >> Content-Transfer-Encoding: quoted-printable >> >> Good day to all!
I`m trying work with a volume on Clariion CX3-40 via >> iS= >> CSI on new FreeBSD 8.2-BETA1 i386 (net.iscsi_initiator.driver_version: >> 2.2.= >> 4.2)

iSCSI discovery works. And `iscontrol -n iscsitrg_name` works >> f= >> ine.
>> Then I make `newfs -U /dev/da0` and `mount /dev/da0 /mnt/iscsi`.
All >> is = >> well at first glance.
I can copy files from local hdd to /mnt/iscsi, >> and= >> can read from /mnt/iscsi, but not small files only.
When I want to >> make= >> some action with many small files like `cp -r /usr/src /mnt/iscsi/` my >> sys= >> tem crashes.
>>
/var/log/messages contain lines like this
Dec 14 12:04:05 timbsd >> sys= >> logd: kernel boot file is /boot/kernel/kernel
Dec 14 12:04:05 timbsd >> ker= >> nel: g_vfs_done():da0a[READ(offset=3D18014398509481984, >> length=3D16384)]err= >> or =3D 5
>> Dec 14 12:04:05 timbsd kernel: mode =3D 017776, inum =3D 1201220, fs =3D >> /m= >> nt/iscsi
Dec 14 12:04:05 timbsd kernel: panic: ffs_valloc: dup >> alloc
= >> or
Dec 13 15:44:45 timbsd kernel: bad block 2147483904, ino >> 612416
De= >> c 13 15:44:45 timbsd kernel: pid 1528 (bsdtar), uid 0 inumber 612416 on >> /mn= >> t/iscsi: bad block
>> Dec 13 15:44:45 timbsd kernel: dev =3D da0a, block =3D 404104882969600, >> fs = >> =3D /mnt/iscsi
Dec 13 15:44:45 timbsd kernel: panic: ffs_blkfree: >> freein= >> g free block
Dec 13 15:44:45 timbsd kernel: #3 0xc0ae236f at >> handle_work= >> item_freeblocks+0x2cf
>> Dec 13 15:44:45 timbsd kernel: #4 0xc0aead4f at >> softdep_setup_freeblocks+0x= >> d3f
Dec 13 15:56:42 timbsd kernel: panic: handle_written_inodeblock: >> bad= >> size

What other information should I provide for debug?

>> P.S. sorry for my bad english. I am learning.
>> >> --0022152d5de95b793a04975f41ca-- > > > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > I forgot to say: can`t kill iscontrol. `kill -9` or `kill -15` does not work for iscontrol -- View this message in context: http://old.nabble.com/iscsi_initiator-crashes-system-%28FreeBSD-8.2-BETA1%29-tp30455007p30472700.html Sent from the freebsd-scsi mailing list archive at Nabble.com. From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 16 14:28:09 2010 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 7A62A106566B for ; Thu, 16 Dec 2010 14:28:09 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id AA2FC8FC21 for ; Thu, 16 Dec 2010 14:28:07 +0000 (UTC) Received: (qmail 59805 invoked by uid 89); 16 Dec 2010 14:01:25 -0000 Received: by simscan 1.4.0 ppid: 59758, pid: 59803, t: 0.0176s scanners: clamav: 0.96.2/m:52/d:11967 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.3) by mail.dotcom.ts.it with SMTP; 16 Dec 2010 14:01:25 -0000 Message-ID: <4D0A1B82.7040000@dotcom.ts.it> Date: Thu, 16 Dec 2010 15:00:34 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; sl-SL; rv:1.9.2.13) Gecko/20101209 Thunderbird/3.1.7 MIME-Version: 1.0 To: Pavel Timofeev References: <30472700.post@talk.nabble.com> In-Reply-To: <30472700.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator crashes system (FreeBSD 8.2-BETA1) 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: Thu, 16 Dec 2010 14:28:09 -0000 At 16. 12. 2010 14:30, Pavel Timofeev wrote: > [...] > I forgot to say: can`t kill iscontrol. `kill -9` or `kill -15` does not work > for iscontrol Try wih `kill -1`. Only signal -1 stop iscsi deamon. -- Sossi Andrej ------------------------- DotCom Information technology Via Trento, 16 34132 - Trieste (TS) Italy tel: +39 040 9828090 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 16 17:14:22 2010 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 26A291065672 for ; Thu, 16 Dec 2010 17:14:22 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-245-Pennsylvania.hfc.comcastbusiness.net [75.149.8.245]) by mx1.freebsd.org (Postfix) with ESMTP id D98D48FC18 for ; Thu, 16 Dec 2010 17:14:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id 77EE68BC021 for ; Thu, 16 Dec 2010 11:54:06 -0500 (EST) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gx7ygvxgPn5P for ; Thu, 16 Dec 2010 11:54:04 -0500 (EST) Received: from riven.arriad.com (fw.arriad.com [10.0.0.16]) by zimbra.averesystems.com (Postfix) with ESMTPSA id AC5598BC01F for ; Thu, 16 Dec 2010 11:54:04 -0500 (EST) From: Andrew Boyer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Dec 2010 11:56:32 -0500 Message-Id: To: freebsd-scsi@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: Another mfi unexpected sense / SMART question 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: Thu, 16 Dec 2010 17:14:22 -0000 Hello SCSI people, I'm seeing an issue with SMART queries on SATA devices connected to = MegaRAID SAS9261-8i controllers. OS: FreeBSD 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #12: Wed Dec 15 = 01:16:54 EST 2010 amd64 Driver: dev.mfi.0.%pnpinfo: vendor=3D0x1000 device=3D0x0079 = subvendor=3D0x15d9 subdevice=3D0x0700 class=3D0x010400 dev.mfi.0.firmware: 12.11.0-0016 Disks: Intel X25-E, ATA SSDSA2SH064G1GC 8860 Seagate Barracuda.2 ES, ATA ST3250310NS SN06 Smartctl is correctly detecting that the device is a SAT-connected ATA = device, and can complete all of the other commands it tries (IDENTIFY = DEVICE, SMART READ ATTRIBUTE VALUES, etc). The SMART STATUS CHECK fails = every time, though, in exactly the same way. I've reproduced it on = multiple disks connected to multiple controllers. It happens with = smartctl 5.39.1 and 5.40. This is the command that fails: > REPORT-IOCTL: Device=3D/dev/pass14 Command=3DSMART STATUS CHECK > Input: FR=3D0xda, SC=3D...., LL=3D...., LM=3D0x4f, LH=3D0xc2, = DEV=3D...., CMD=3D0xb0 > [ata pass-through(16): 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 = 00 ] status=3D0 > Incoming data, len=3D0: > Error SMART Status command failed > Please get assistance from http://smartmontools.sourceforge.net/ > REPORT-IOCTL: Device=3D/dev/pass14 Command=3DSMART STATUS CHECK = returned -1 This appears in the log: > Dec 15 17:55:11 system13 kernel: mfi0: 3255 (345750911s/0x0002/info) -=20= > Unexpected sense: PD 07(e0xfc/s2) Path 4433221102000000,=20 > CDB: 00 00 00 00 00 00, Sense: 0/00/00 The CDB is empty - very odd. Any pointers on how I can begin to debug = this? Is it a driver or firmware issue? I don't think it's a smartctl issue because the same command works fine = on mpt-connected SATA devices. Thanks, Andrew P.S. Pulling in SVN 216235 didn't seem to make a difference. -------------------------------------------------- Andrew Boyer aboyer@averesystems.com From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 17 11:55:26 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id EFFF0106566B; Fri, 17 Dec 2010 11:55:26 +0000 (UTC) Date: Fri, 17 Dec 2010 11:55:26 +0000 From: Alexander Best To: freebsd-scsi@freebsd.org Message-ID: <20101217115526.GA20772@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: "camcontrol identify ada0" and "diskinfo -v ada0" reporting different cylinders count 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: Fri, 17 Dec 2010 11:55:27 -0000 hi there, "diskinfo -v ada0" reports: ada0 512 # sectorsize 250058268160 # mediasize in bytes (233G) 488395055 # mediasize in sectors 0 # stripesize 0 # stripeoffset 484518 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. S09QJ1GLB35451 # Disk ident. and "camcontrol identify ada0" reports: pass1: ATA-7 SATA 2.x device pass1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) protocol ATA/ATAPI-7 SATA 2.x device model SAMSUNG SP2504C firmware revision VT100-50 serial number S09QJ1GLB35451 cylinders 16383 heads 16 sectors/track 63 sector size logical 512, physical 512, offset 0 LBA supported 268435455 sectors LBA48 supported 488395055 sectors PIO supported PIO4 DMA supported WDMA2 UDMA6 Feature Support Enabled Value Vendor read ahead yes yes write cache yes yes flush cache yes yes overlap no Tagged Command Queuing (TCQ) no no Native Command Queuing (NCQ) yes 32 tags SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no automatic acoustic management yes yes 0/0x00 254/0xFE media status notification no no power-up in Standby no no write-read-verify no no unload no no free-fall no no data set management (TRIM) no ...so how many cylinders does my hdd have? cheers. alex -- a13x From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 17 12:10:00 2010 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 D1F0B1065670; Fri, 17 Dec 2010 12:10:00 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA8F8FC08; Fri, 17 Dec 2010 12:10:00 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 54131E61DE; Fri, 17 Dec 2010 12:09:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=nPcipAg/HfM7 4qjZb9vZfrfnMN8=; b=IllPKgY3BbLDHFf9Qiue1OGysw7XDEOvB2PXHXf0N1Qr yJxsMxwLUgX9Prwz5tAhfZBkRB1f31IOD17xQ/vfR77eLtRuIW3Mz0/oB9DTP2Hd 7sMZgsVOiM1EP6wQbceInK2nwGTg4+hVU5so6xFx22UtrEjETp35Ytf8A9+PbIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=AROE8Y M2F1sIp0n5B7vHlBhlO3dt8xNAToGfzuCNdtKlpF93hRdJ3XsKzDiIkZPiAaSfpa 7vIs4fU7gH5uE1AY0LWotAKNgwzXFCtwkFPdrFki/V7Op3N3EPlDfLrvmoMkt8iA rYUw5V4PGY7LH4YsY88QO49S5nGnqfWJSdBX0= Received: from unknown (client-86-29-47-22.glfd.adsl.virginmedia.com [86.29.47.22]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 1FE74E60D1; Fri, 17 Dec 2010 12:09:59 +0000 (GMT) Date: Fri, 17 Dec 2010 12:09:55 +0000 From: Bruce Cran To: Alexander Best Message-ID: <20101217120955.00005f5a@unknown> In-Reply-To: <20101217115526.GA20772@freebsd.org> References: <20101217115526.GA20772@freebsd.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: "camcontrol identify ada0" and "diskinfo -v ada0" reporting different cylinders count 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: Fri, 17 Dec 2010 12:10:00 -0000 On Fri, 17 Dec 2010 11:55:26 +0000 Alexander Best wrote: > 484518 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > ... > cylinders 16383 > heads 16 > sectors/track 63 > > ...so how many cylinders does my hdd have? It almost certainly doesn't have 8 platters for a start, and neither does it have 63 sectors per track. CHS is obsolete - the ATA-7 specification has marked the fields as obsolete and all disks made in the last 10 (maybe even 15?) years have used LBA. camcontrol displays what the disk reports via the IDENTIFY command (I'm not sure if it's the "current" or default geometry it reports): ATA says that disks larger than can be represented using CHS should report having 16383 cylinders, which is needed for compatibility with BIOSes. diskinfo just appears to take the size of the disk, assume 16 heads and 63 sectors per track and put the rest into cylinders. There's another set of CHS values, and that's in geom: check for "fwheads" and "fwsectors" in "gpart list". See http://lists.freebsd.org/pipermail/svn-src-head/2010-December/023134.html for a (very!) detailed discussion of the various ways of calculating CHS values. Unfortunately no decision was reached so it looks like we're going to have a mismatch between camcontrol, diskinfo, geom, cam and ata for a while yet. -- Bruce Cran From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 17 12:17:31 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B3DF51065672; Fri, 17 Dec 2010 12:17:31 +0000 (UTC) Date: Fri, 17 Dec 2010 12:17:31 +0000 From: Alexander Best To: Bruce Cran Message-ID: <20101217121731.GA29863@freebsd.org> References: <20101217115526.GA20772@freebsd.org> <20101217120955.00005f5a@unknown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101217120955.00005f5a@unknown> Cc: freebsd-scsi@freebsd.org Subject: Re: "camcontrol identify ada0" and "diskinfo -v ada0" reporting different cylinders count 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: Fri, 17 Dec 2010 12:17:31 -0000 On Fri Dec 17 10, Bruce Cran wrote: > On Fri, 17 Dec 2010 11:55:26 +0000 > Alexander Best wrote: > > > 484518 # Cylinders according to firmware. > > 16 # Heads according to firmware. > > 63 # Sectors according to firmware. > > ... > > cylinders 16383 > > heads 16 > > sectors/track 63 > > > > > > ...so how many cylinders does my hdd have? > > It almost certainly doesn't have 8 platters for a start, and neither > does it have 63 sectors per track. CHS is obsolete - the ATA-7 > specification has marked the fields as obsolete and all disks made in > the last 10 (maybe even 15?) years have used LBA. > > camcontrol displays what the disk reports via the IDENTIFY command > (I'm not sure if it's the "current" or default geometry it reports): > ATA says that disks larger than can be represented using CHS should > report having 16383 cylinders, which is needed for compatibility with > BIOSes. diskinfo just appears to take the size of the disk, > assume 16 heads and 63 sectors per track and put the rest into > cylinders. thanks for the explanation. > > There's another set of CHS values, and that's in geom: check for > "fwheads" and "fwsectors" in "gpart list". Geom name: ada0 state: OK fwheads: 16 fwsectors: 63 last: 488395021 first: 34 entries: 128 scheme: GPT > > See > http://lists.freebsd.org/pipermail/svn-src-head/2010-December/023134.html > for a (very!) detailed discussion of the various ways of calculating > CHS values. Unfortunately no decision was reached so it looks like > we're going to have a mismatch between camcontrol, diskinfo, geom, cam > and ata for a while yet. too bad. :( thanks for the link. i'll try to read through the entire thread, although i'm quite sure that the really techie details are too complicated for me to comprehend. > > -- > Bruce Cran -- a13x From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 17 14:09:47 2010 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 52A25106566C; Fri, 17 Dec 2010 14:09:47 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 68AA28FC13; Fri, 17 Dec 2010 14:09:46 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA01198; Fri, 17 Dec 2010 16:09:44 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D0B6F27.5020700@freebsd.org> Date: Fri, 17 Dec 2010 16:09:43 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Alexander Best References: <20101217115526.GA20772@freebsd.org> <20101217120955.00005f5a@unknown> <20101217121731.GA29863@freebsd.org> In-Reply-To: <20101217121731.GA29863@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: "camcontrol identify ada0" and "diskinfo -v ada0" reporting different cylinders count 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: Fri, 17 Dec 2010 14:09:47 -0000 on 17/12/2010 14:17 Alexander Best said the following: > On Fri Dec 17 10, Bruce Cran wrote: >> See >> http://lists.freebsd.org/pipermail/svn-src-head/2010-December/023134.html >> for a (very!) detailed discussion of the various ways of calculating >> CHS values. Unfortunately no decision was reached so it looks like >> we're going to have a mismatch between camcontrol, diskinfo, geom, cam >> and ata for a while yet. > > too bad. :( thanks for the link. i'll try to read through the entire thread, > although i'm quite sure that the really techie details are too complicated for > me to comprehend. Why do you care about $subj anyway? :) -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 17 14:21:29 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id F02B71065670; Fri, 17 Dec 2010 14:21:29 +0000 (UTC) Date: Fri, 17 Dec 2010 14:21:29 +0000 From: Alexander Best To: Andriy Gapon Message-ID: <20101217142129.GA25143@freebsd.org> References: <20101217115526.GA20772@freebsd.org> <20101217120955.00005f5a@unknown> <20101217121731.GA29863@freebsd.org> <4D0B6F27.5020700@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D0B6F27.5020700@freebsd.org> Cc: freebsd-scsi@freebsd.org Subject: Re: "camcontrol identify ada0" and "diskinfo -v ada0" reporting different cylinders count 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: Fri, 17 Dec 2010 14:21:30 -0000 On Fri Dec 17 10, Andriy Gapon wrote: > on 17/12/2010 14:17 Alexander Best said the following: > > On Fri Dec 17 10, Bruce Cran wrote: > >> See > >> http://lists.freebsd.org/pipermail/svn-src-head/2010-December/023134.html > >> for a (very!) detailed discussion of the various ways of calculating > >> CHS values. Unfortunately no decision was reached so it looks like > >> we're going to have a mismatch between camcontrol, diskinfo, geom, cam > >> and ata for a while yet. > > > > too bad. :( thanks for the link. i'll try to read through the entire thread, > > although i'm quite sure that the really techie details are too complicated for > > me to comprehend. > > Why do you care about $subj anyway? :) inconsistency. ;) > > -- > Andriy Gapon -- a13x