From owner-freebsd-geom@FreeBSD.ORG Sun May 15 13:44:57 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E728A1065673 for ; Sun, 15 May 2011 13:44:57 +0000 (UTC) (envelope-from uncle@devio.us) Received: from wolfman.devio.us (devious-1-pt.tunnel.tserv12.mia1.ipv6.he.net [IPv6:2001:470:4:2a5::2]) by mx1.freebsd.org (Postfix) with ESMTP id C60FE8FC0C for ; Sun, 15 May 2011 13:44:57 +0000 (UTC) Received: by wolfman.devio.us (Postfix, from userid 3773) id 532061A90ED; Sun, 15 May 2011 09:44:57 -0400 (EDT) Date: Sun, 15 May 2011 09:44:57 -0400 From: Nick Ulen To: freebsd-geom@freebsd.org Message-ID: <20110515134457.GA19169@wolfman.devio.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: GELI,unexpectedly last close. 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: Sun, 15 May 2011 13:44:58 -0000 There is zfs on label/tank.eli # grep geli /etc/rc.conf geli_devices="label/tank" geli_label_tank_flags="-k /root/keys/label_tank.key" Immediately after booting: # geli status label/tank.eli Name Status Components label/tank.eli ACTIVE label/tank After performing any of the commands zfs or zpool, e.g. zfs list zpool import etc,(ttyv0) show: GEOM_ELI: Detached label/tank.eli on last close. and indeed: # ls -l /dev/label/tank.eli ls: /dev/label/tank.eli: No such file or directory It's weird for me, but not critical.The geli rc.d script works fine.Also geli_autodetach="NO" solves the problem. FreeBSD 9.0-CURRENT,zfs v.28 Just a note. Regards, Nick From owner-freebsd-geom@FreeBSD.ORG Sun May 15 20:52:09 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50B38106566B for ; Sun, 15 May 2011 20:52:09 +0000 (UTC) (envelope-from ac@belngo.info) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 19FE98FC1A for ; Sun, 15 May 2011 20:52:08 +0000 (UTC) Received: by gyg13 with SMTP id 13so1673223gyg.13 for ; Sun, 15 May 2011 13:52:08 -0700 (PDT) Received: by 10.150.136.20 with SMTP id j20mr2798393ybd.113.1305491410138; Sun, 15 May 2011 13:30:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.106.10 with HTTP; Sun, 15 May 2011 13:29:50 -0700 (PDT) In-Reply-To: References: From: Alaksiej C Date: Sun, 15 May 2011 23:29:50 +0300 Message-ID: To: Greg Rivers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Lucas Reddinger , freebsd-geom@freebsd.org Subject: Re: Simple question regarding GPT and UFS for data only 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: Sun, 15 May 2011 20:52:09 -0000 > What you did is fine. =A0Don't forget to update /etc/fstab. =A0You're not > booting from this device, so you do not need boot blocks. =A0In fact, sin= ce > you only want a single file system on the mirror, you don't need to > partition it. True. But I know a men, who's hard drive was recognized as empty by his motherboard, because there was no MBR, and then manipulated by allocation of HPA on the disk to backup mb's ROM. As for me, I would rather partition. From owner-freebsd-geom@FreeBSD.ORG Mon May 16 04:10:59 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D00641065670; Mon, 16 May 2011 04:10:59 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id F09408FC08; Mon, 16 May 2011 04:10:58 +0000 (UTC) Received: by wyf23 with SMTP id 23so4158389wyf.13 for ; Sun, 15 May 2011 21:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=+9c3MVD5atlCtVjZsGxRXKq6VGJTYSU4KpXFV3ijBEA=; b=fKuKvnquhTyv55hY1326LfxeqaqBe/OCEB2rjtbIJF2G84ye7141G+gwAed9iV8NNL EymkHjRbzUT7+UUL3I8+hB+V7P+fsmj8o5ekfvzsJqQAMJ4xS9ctTApKIbF9LCJyStE9 sFTRfI5lufHe2eXqdMGHHgokxG5KbUyYGOxS4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XIBcFN0jvHGfR8Uwlk48Kl1vBkxmOrpFJWvRfMsnWfIIDjEWviC/knyIRvbZcbYsoQ MjULZ88kbbBcgHK6XEtNNAGGYJ32i9PHOtuGyJ+E/xLqSI5KGlxUF+1Aqf8+4o7e4qrs uqtNEJNZ9xsbFY2g0Ob+BtvGQ67G4Q+QcM2vc= MIME-Version: 1.0 Received: by 10.216.234.80 with SMTP id r58mr3558213weq.109.1305517732505; Sun, 15 May 2011 20:48:52 -0700 (PDT) Received: by 10.216.180.71 with HTTP; Sun, 15 May 2011 20:48:52 -0700 (PDT) Date: Mon, 16 May 2011 03:48:52 +0000 Message-ID: From: Brandon Gooch To: freebsd-geom@freebsd.org, ae@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: SVN r221788: GEOM_PART: integrity check failed (da0, MBR); Western Digital "My Book" 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: Mon, 16 May 2011 04:10:59 -0000 After r221788, I'm unable to mount my Western Digital "My Book" NTFS-formatted USB hard drive. This unit is straight-from-the-box; nothing has been configured/reconfigured. It mounts successfully and functions correctly in other OS environments I've tried (Windows 7 64-bit, Ubuntu 10.10 64-bit, PC-BSD 9-CURRENT snapshot from early May, FreeBSD 9-CURRENT snapshot from early May, etc...). The reason I'm pointing to the revision mentioned (from dmesg output): ... ugen1.3: at usbus1 umass0: on usb us1 umass0:6:0:-1: Attached to scbus6 (probe0:umass-sim0:0:0:0): SCSI status error (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:4,1 (Logical unit is in pro cess of becoming ready) (probe0:umass-sim0:0:0:0): Polling device for readiness pass2 at umass-sim0 bus 0 scbus6 target 0 lun 0 pass2: Fixed Direct Access SCSI-6 device pass2: Serial Number 5743415A4134343831393132 pass2: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus6 target 0 lun 0 da0: Fixed Direct Access SCSI-6 device da0: Serial Number 5743415A4134343831393132 da0: 40.000MB/s transfers da0: 1907697MB (3906963456 512 byte sectors: 255H 63S/T 243197C) ses0 at umass-sim0 bus 0 scbus6 target 0 lun 1 ses0: Fixed Enclosure Services SCSI-6 device ses0: Serial Number 5743415A4134343831393132 ses0: 40.000MB/s transfers ses0: SCSI-3 SES Device pass3 at umass-sim0 bus 0 scbus6 target 0 lun 1 pass3: Fixed Enclosure Services SCSI-6 device pass3: Serial Number 5743415A4134343831393132 pass3: 40.000MB/s transfers GEOM_PART: integrity check failed (da0, MBR) ... The message regarding the integrity check seems to be emitted by code from that revision. What information can I provide to help troubleshoot the issue? I'm new to GEOM troubleshooting... -Brandon From owner-freebsd-geom@FreeBSD.ORG Mon May 16 05:00:27 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62D121065675; Mon, 16 May 2011 05:00:27 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0FC728FC12; Mon, 16 May 2011 05:00:22 +0000 (UTC) Received: by wwc33 with SMTP id 33so4481403wwc.31 for ; Sun, 15 May 2011 22:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=uf/Oa5YHgUQGq4yflQXDpm8pNqBbBFkBaNpepKurcjk=; b=hT+OnLhdCfen+tABL7qAFIY4kqTCTVLpJJXySBZSRNaNRWybLZMl9bGuP9guzFzFQz /dFIrFkYVGHO1yfjltCbwWrDN+UeJzdJZ2ksmZRt+jFoDDeeBSCxLtxOWhNdeqlOiIxn ibMH2jqeOl88ZVFhNzkpIbtePI8fG0OFYN0Bg= 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 :cc:content-type; b=r4nFNN8MP1l2rC9zMr4C8UcXznl+yxuxE8K9ZdZJsV/p4Uk91v3tJ9Vo777dfZhm+4 3b63IsUKSgRuZlbF+ohHknj33bhN80YjPoNj2fWSkSZHPq8+M5QLdQCVtxyAraKBqKvs FlYAQN7mHXX0AOzY2dfjuAbX1MS5/xRJY7cvQ= MIME-Version: 1.0 Received: by 10.216.68.18 with SMTP id k18mr1803434wed.109.1305522021856; Sun, 15 May 2011 22:00:21 -0700 (PDT) Received: by 10.216.180.71 with HTTP; Sun, 15 May 2011 22:00:21 -0700 (PDT) In-Reply-To: <4DD0A7A3.6020002@FreeBSD.org> References: <4DD0A7A3.6020002@FreeBSD.org> Date: Mon, 16 May 2011 05:00:21 +0000 Message-ID: From: Brandon Gooch To: "Andrey V. Elsukov" Content-Type: multipart/mixed; boundary=000e0cdfca4e5bf85604a35d880a X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: SVN r221788: GEOM_PART: integrity check failed (da0, MBR); Western Digital "My Book" 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: Mon, 16 May 2011 05:00:27 -0000 --000e0cdfca4e5bf85604a35d880a Content-Type: text/plain; charset=ISO-8859-1 2011/5/16 Andrey V. Elsukov : > On 16.05.2011 7:48, Brandon Gooch wrote: >> GEOM_PART: integrity check failed (da0, MBR) >> ... >> >> The message regarding the integrity check seems to be emitted by code >> from that revision. >> >> What information can I provide to help troubleshoot the issue? I'm new >> to GEOM troubleshooting... > > Can you show output of `gpart list da0` from the last worked kernel, > or make a copy of first sector and send it to me. > You can do it with this command: > # dd if=/dev/da0 of=~/mbr count=1 > > MBR will be saved in your home directory. > Also, recently i added a workaround in r221972, you can disable > integrity checking with sysctl kern.geom.part.check_integrity=0 > > -- > WBR, Andrey V. Elsukov Thanks for the sysctl tunable, I hadn't noticed that commit before sending my message. As expected, setting the sysctl as provided above allowed the filesystem to be mounted. As requested, I've attached the MBR from the device in question. Let me know if it doesn't come through. Thank you! -Brandon --000e0cdfca4e5bf85604a35d880a-- From owner-freebsd-geom@FreeBSD.ORG Mon May 16 06:31:46 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 884FC106566C; Mon, 16 May 2011 06:31:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward1.mail.yandex.net (forward1.mail.yandex.net [77.88.46.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0512C8FC14; Mon, 16 May 2011 06:31:45 +0000 (UTC) Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward1.mail.yandex.net (Yandex) with ESMTP id 14C1A1241D48; Mon, 16 May 2011 10:31:44 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1305527504; bh=IgFdquTTfeSbBC0je6o9K6Kvogtts1wJ+nZ8GvO+fwE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=gotQHkBuEaGzXFvcI0NhIa0YIivCk9XU/kMR56lSkHfbibi7D7+6xU8jIklHUVnfC Q6+jIZ1l4QW9aPgOlcwg77uuChOuddnDu0OgucAeGBEduYbBh3C5TLElOwZmO+TXz3 bNkoTr9my/tY34jQ9BxKtxD/Q4WbREAGEAFCfFtY= Received: from [127.0.0.1] (ns.kirov.so-ups.ru [77.72.136.145]) by smtp4.mail.yandex.net (Yandex) with ESMTPSA id A8574649806F; Mon, 16 May 2011 10:31:43 +0400 (MSD) Message-ID: <4DD0C4CA.6040604@yandex.ru> Date: Mon, 16 May 2011 10:31:38 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Brandon Gooch References: <4DD0A7A3.6020002@FreeBSD.org> <4DD0B274.8080209@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7C84C65D30DE91B44A7A4151" X-Yandex-Spam: 1 Cc: "Andrey V. Elsukov" , Marcel Moolenaar , freebsd-geom@FreeBSD.org Subject: Re: SVN r221788: GEOM_PART: integrity check failed (da0, MBR); Western Digital "My Book" 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: Mon, 16 May 2011 06:31:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7C84C65D30DE91B44A7A4151 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 16.05.2011 9:35, Brandon Gooch wrote: > Woah. OK, so: >=20 > $ sudo geom disk list da0 > Geom name: da0 > Providers: > 1. Name: da0 > Mediasize: 2000365289472 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 > descr: WD My Book 1130 > ident: 5743415A4134343831393132 > fwsectors: 63 > fwheads: 255 >=20 > Not seeing much from this. What exactly do you mean by the partition > being "out of bounds"? Do you mean that the partition has been > configured to be larger than the actual size of the disk? So, i reproduce your problem: # dd if=3D/dev/zero of=3D./disk oseek=3D3906963455 count=3D1 # mdconfig -f ./disk # dd if=3D./mbr of=3D/dev/md0 # geom md list Geom name: md0 Providers: 1. Name: md0 Mediasize: 2000365289472 (1.8T) Sectorsize: 512 Mode: r0w0e0 file: /usr/home/devel/disk type: vnode length: 2000365289472 fwsectors: 0 fwheads: 0 unit: 0 Your disk has mediasize =3D 2000365289472 bytes. This is 2000365289472/512 =3D 3906963456 sectors. This means that the first usable sector is 0 and the last =3D 3906963456 - 1 =3D 3906963455. But MBR does recalculation of available space and aligns it to SectorsPerTrack: last =3D 3906963456 - (3906963456 % 63) - 1 =3D 3906963395 sectors. This value is smaller than value specified in MBR and integrity check fails. #gpart list md0 Geom name: md0 modified: false state: CORRUPT fwheads: 255 fwsectors: 63 >>>>>>>>>last: 3906963395 >>>>>>>>>first: 63 entries: 4 scheme: MBR Providers: 1. Name: md0s1 Mediasize: 2000364240896 (1.8T) Sectorsize: 512 Mode: r0w0e0 rawtype: 7 length: 2000364240896 offset: 1048576 type: ntfs index: 1 >>>>>>>>> end: 3906963455 >>>>>>>>> start: 2048 Consumers: 1. Name: md0 Mediasize: 2000365289472 (1.8T) Sectorsize: 512 Mode: r0w0e0 --=20 WBR, Andrey V. Elsukov --------------enig7C84C65D30DE91B44A7A4151 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJN0MTOAAoJEAHF6gQQyKF6o9cIAIs9HPocqS3vihL/0g71OMYM QrW9EJeCqGLQIExJwwVV6FaKUVn1vStdCe4hc9iYl+DAAPH9pixKtJc0mCirbTCr 4imGkwSx8cWhgRdZKsFrPEOtCtTnFwYMr7rNML8sTUkib8MvSp2pdaCdIrI04BLm uzGZ12IuV3MB+OTTOb4/OXoTitycQpwWoMoQtl0W3HeqihR0Ebl7eTUxO6wlCBI2 Oze60f+apWYr7lxPYEa/WoXIkaLyA7HtPd30OtvEZ5T9pV++DGK+B0/eSZ0mNQAR F2t59JmZ+arnQkIzgqyMjwtsqxCo2bLJHs1SKmo+JJxp/pV1MQXtgUISfoGipvc= =6d0B -----END PGP SIGNATURE----- --------------enig7C84C65D30DE91B44A7A4151-- From owner-freebsd-geom@FreeBSD.ORG Mon May 16 07:27:39 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49DCB1065673 for ; Mon, 16 May 2011 07:27:39 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mgat.kirov.so-cdu.ru (mgat.kirov.so-cdu.ru [77.72.136.147]) by mx1.freebsd.org (Postfix) with ESMTP id 7CF018FC0A for ; Mon, 16 May 2011 07:27:38 +0000 (UTC) Received: from kirov.so-cdu.ru ([172.21.81.1]RDNS failed) by mgat.kirov.so-cdu.ru with InterScan Message Security Suite; Mon, 16 May 2011 08:27:22 +0400 Received: by ns.kirov.so-cdu.ru (Postfix, from userid 1010) id 5F54CB83D9; Mon, 16 May 2011 08:27:20 +0400 (MSD) Received: from [10.118.3.52] (elsukov.kirov.oduur.so [10.118.3.52]) by ns.kirov.so-cdu.ru (Postfix) with ESMTP id 2BC03B83D4; Mon, 16 May 2011 08:27:20 +0400 (MSD) Message-ID: <4DD0A7A3.6020002@FreeBSD.org> Date: Mon, 16 May 2011 08:27:15 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Brandon Gooch References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5ADF545AC305FD50514D8AB2" Cc: freebsd-geom@freebsd.org Subject: Re: SVN r221788: GEOM_PART: integrity check failed (da0, MBR); Western Digital "My Book" 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: Mon, 16 May 2011 07:27:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5ADF545AC305FD50514D8AB2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 16.05.2011 7:48, Brandon Gooch wrote: > GEOM_PART: integrity check failed (da0, MBR) > ... >=20 > The message regarding the integrity check seems to be emitted by code > from that revision. >=20 > What information can I provide to help troubleshoot the issue? I'm new > to GEOM troubleshooting... Can you show output of `gpart list da0` from the last worked kernel, or make a copy of first sector and send it to me. You can do it with this command: # dd if=3D/dev/da0 of=3D~/mbr count=3D1 MBR will be saved in your home directory. Also, recently i added a workaround in r221972, you can disable integrity checking with sysctl kern.geom.part.check_integrity=3D0 --=20 WBR, Andrey V. Elsukov --------------enig5ADF545AC305FD50514D8AB2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJN0KeoAAoJEAHF6gQQyKF6ae8H/3vHd2JCNME833yvVb6+ivhN eBEByEsHy5AZL9AOES6oG9ZznPclSVDhCPru7IgyT4wLLUlMYEl7L5QTMGe0l8G/ xgLtH/LP540oqQCyWR+L0cDVJ+eNj/vSzgqV8Xow580hAfGAJy1Y70Ve6f4g4cmb QuTqq5lE7pw4nja1VpVjWi+hsvPsAHvxHMLEY3kgUyCZO0TuKeyhQDv5pQSJwEs7 7Yi3+46otRqVzCJ+nt7gXRIT7atrS5lZeZUCYHKj7Z4MfvYFHH8JAhcjjjpq889E veXKvBFXAKs8EMiKrsbSC5s+k0WfLFV7HSIxIiZbxJfC3n3CuWe6jRpbIx+6zsY= =gn03 -----END PGP SIGNATURE----- --------------enig5ADF545AC305FD50514D8AB2-- From owner-freebsd-geom@FreeBSD.ORG Mon May 16 08:44:41 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCA48106566B; Mon, 16 May 2011 08:44:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 588B98FC14; Mon, 16 May 2011 08:44:39 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p4G8EWuo025178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 May 2011 11:14:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p4G8EWQU023858; Mon, 16 May 2011 11:14:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p4G8EWB5023857; Mon, 16 May 2011 11:14:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 16 May 2011 11:14:32 +0300 From: Kostik Belousov To: "Andrey V. Elsukov" Message-ID: <20110516081432.GH48734@deviant.kiev.zoral.com.ua> References: <4DD0A7A3.6020002@FreeBSD.org> <4DD0B274.8080209@FreeBSD.org> <4DD0C4CA.6040604@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jX8Pshh5UTBtMvDS" Content-Disposition: inline In-Reply-To: <4DD0C4CA.6040604@yandex.ru> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Brandon Gooch , "Andrey V. Elsukov" , Marcel Moolenaar , freebsd-geom@freebsd.org Subject: Re: SVN r221788: GEOM_PART: integrity check failed (da0, MBR); Western Digital "My Book" 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: Mon, 16 May 2011 08:44:41 -0000 --jX8Pshh5UTBtMvDS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 16, 2011 at 10:31:38AM +0400, Andrey V. Elsukov wrote: > On 16.05.2011 9:35, Brandon Gooch wrote: > > Woah. OK, so: > >=20 > > $ sudo geom disk list da0 > > Geom name: da0 > > Providers: > > 1. Name: da0 > > Mediasize: 2000365289472 (1.8T) > > Sectorsize: 512 > > Mode: r0w0e0 > > descr: WD My Book 1130 > > ident: 5743415A4134343831393132 > > fwsectors: 63 > > fwheads: 255 > >=20 > > Not seeing much from this. What exactly do you mean by the partition > > being "out of bounds"? Do you mean that the partition has been > > configured to be larger than the actual size of the disk? >=20 > So, i reproduce your problem: > # dd if=3D/dev/zero of=3D./disk oseek=3D3906963455 count=3D1 > # mdconfig -f ./disk > # dd if=3D./mbr of=3D/dev/md0 > # geom md list > Geom name: md0 > Providers: > 1. Name: md0 > Mediasize: 2000365289472 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 > file: /usr/home/devel/disk > type: vnode > length: 2000365289472 > fwsectors: 0 > fwheads: 0 > unit: 0 >=20 > Your disk has mediasize =3D 2000365289472 bytes. > This is 2000365289472/512 =3D 3906963456 sectors. > This means that the first usable sector is 0 and > the last =3D 3906963456 - 1 =3D 3906963455. >=20 > But MBR does recalculation of available space and > aligns it to SectorsPerTrack: > last =3D 3906963456 - (3906963456 % 63) - 1 =3D 3906963395 sectors. >=20 > This value is smaller than value specified in MBR and integrity > check fails. >=20 > #gpart list md0 > Geom name: md0 > modified: false > state: CORRUPT > fwheads: 255 > fwsectors: 63 > >>>>>>>>>last: 3906963395 > >>>>>>>>>first: 63 > entries: 4 > scheme: MBR > Providers: > 1. Name: md0s1 > Mediasize: 2000364240896 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 > rawtype: 7 > length: 2000364240896 > offset: 1048576 > type: ntfs > index: 1 > >>>>>>>>> end: 3906963455 > >>>>>>>>> start: 2048 > Consumers: > 1. Name: md0 > Mediasize: 2000365289472 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 Could you, please, add the appropriate diagnostic to the kernel output for each failure case ?=20 --jX8Pshh5UTBtMvDS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3Q3OgACgkQC3+MBN1Mb4iIjwCgsXDnwg/NkamAPDmUqEbil+mx S/QAn1DBTOdFSv6DEPrOapTWk2fznxKg =nStk -----END PGP SIGNATURE----- --jX8Pshh5UTBtMvDS-- From owner-freebsd-geom@FreeBSD.ORG Mon May 16 11:07:04 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F1521065670 for ; Mon, 16 May 2011 11:07:04 +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 225668FC24 for ; Mon, 16 May 2011 11:07:04 +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 p4GB74Lj071208 for ; Mon, 16 May 2011 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4GB73CY071206 for freebsd-geom@FreeBSD.org; Mon, 16 May 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 May 2011 11:07:03 GMT Message-Id: <201105161107.p4GB73CY071206@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org 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: Mon, 16 May 2011 11:07:04 -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/155994 geom [geom] Long "Suspend time" when reading large files fr o kern/154226 geom [geom] GEOM label does not change when you modify them o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/144905 geom [geom][geom_part] panic in gpart_ctlreq when unpluggin o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134922 geom [gmirror] [panic] kernel panic when use fdisk on disk o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a p kern/132273 geom glabel(8): [patch] failing on journaled partition o kern/131353 geom [geom] gjournal(8) kernel lock o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile f kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o bin/86388 geom [geom] [geom_part] periodic(8) daily should backup gpa o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. 52 problems total. From owner-freebsd-geom@FreeBSD.ORG Wed May 18 16:10:07 2011 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B81B41065670 for ; Wed, 18 May 2011 16:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F13F8FC1A for ; Wed, 18 May 2011 16:10:07 +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 p4IGA7au011925 for ; Wed, 18 May 2011 16:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4IGA725011924; Wed, 18 May 2011 16:10:07 GMT (envelope-from gnats) Date: Wed, 18 May 2011 16:10:07 GMT Message-Id: <201105181610.p4IGA725011924@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/132273: commit references a PR X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 16:10:07 -0000 The following reply was made to PR kern/132273; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/132273: commit references a PR Date: Wed, 18 May 2011 16:07:43 +0000 (UTC) Author: ae Date: Wed May 18 16:07:24 2011 New Revision: 222064 URL: http://svn.freebsd.org/changeset/base/222064 Log: MFC r221433: When checking existence of providers skip those which are orphaned. PR: kern/132273 Modified: stable/8/sys/geom/label/g_label.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/geom/label/g_label.c ============================================================================== --- stable/8/sys/geom/label/g_label.c Wed May 18 16:01:29 2011 (r222063) +++ stable/8/sys/geom/label/g_label.c Wed May 18 16:07:24 2011 (r222064) @@ -162,6 +162,8 @@ g_label_create(struct gctl_req *req, str pp2 = LIST_FIRST(&gp->provider); if (pp2 == NULL) continue; + if ((pp2->flags & G_PF_ORPHAN) != 0) + continue; if (strcmp(pp2->name, name) == 0) { G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).", label, name, pp->name); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Wed May 18 16:29:21 2011 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AACE21065673; Wed, 18 May 2011 16:29:21 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 82F058FC18; Wed, 18 May 2011 16:29:21 +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 p4IGTLoT050214; Wed, 18 May 2011 16:29:21 GMT (envelope-from ae@freefall.freebsd.org) Received: (from ae@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4IGTLDm050210; Wed, 18 May 2011 16:29:21 GMT (envelope-from ae) Date: Wed, 18 May 2011 16:29:21 GMT Message-Id: <201105181629.p4IGTLDm050210@freefall.freebsd.org> To: nsayer@kfu.com, ae@FreeBSD.org, freebsd-geom@FreeBSD.org From: ae@FreeBSD.org Cc: Subject: Re: kern/132273: glabel(8): [patch] failing on journaled partition 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: Wed, 18 May 2011 16:29:21 -0000 Synopsis: glabel(8): [patch] failing on journaled partition State-Changed-From-To: patched->closed State-Changed-By: ae State-Changed-When: Wed May 18 16:28:47 UTC 2011 State-Changed-Why: Merged to stable/8 and stable/7. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=132273 From owner-freebsd-geom@FreeBSD.ORG Wed May 18 16:30:15 2011 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCAEF106564A for ; Wed, 18 May 2011 16:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CD6C58FC0A for ; Wed, 18 May 2011 16:30:15 +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 p4IGUFJ4050475 for ; Wed, 18 May 2011 16:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4IGUFtX050472; Wed, 18 May 2011 16:30:15 GMT (envelope-from gnats) Date: Wed, 18 May 2011 16:30:15 GMT Message-Id: <201105181630.p4IGUFtX050472@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/132273: commit references a PR X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 16:30:15 -0000 The following reply was made to PR kern/132273; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/132273: commit references a PR Date: Wed, 18 May 2011 16:28:47 +0000 (UTC) Author: ae Date: Wed May 18 16:28:28 2011 New Revision: 222067 URL: http://svn.freebsd.org/changeset/base/222067 Log: MFC r221433: When checking existence of providers skip those which are orphaned. PR: kern/132273 Modified: stable/7/sys/geom/label/g_label.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/geom/label/g_label.c ============================================================================== --- stable/7/sys/geom/label/g_label.c Wed May 18 16:20:28 2011 (r222066) +++ stable/7/sys/geom/label/g_label.c Wed May 18 16:28:28 2011 (r222067) @@ -161,6 +161,8 @@ g_label_create(struct gctl_req *req, str pp2 = LIST_FIRST(&gp->provider); if (pp2 == NULL) continue; + if ((pp2->flags & G_PF_ORPHAN) != 0) + continue; if (strcmp(pp2->name, name) == 0) { G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).", label, name, pp->name); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Thu May 19 14:55:55 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EE2C106564A; Thu, 19 May 2011 14:55:55 +0000 (UTC) (envelope-from jwd@SlowBlink.Com) Received: from nmail.slowblink.com (rrcs-24-199-145-34.midsouth.biz.rr.com [24.199.145.34]) by mx1.freebsd.org (Postfix) with ESMTP id 10FC08FC14; Thu, 19 May 2011 14:55:54 +0000 (UTC) Received: from nmail.slowblink.com (localhost [127.0.0.1]) by nmail.slowblink.com (8.14.3/8.14.3) with ESMTP id p4JEdZEQ083204; Thu, 19 May 2011 10:39:35 -0400 (EDT) (envelope-from jwd@nmail.slowblink.com) Received: (from jwd@localhost) by nmail.slowblink.com (8.14.3/8.14.3/Submit) id p4JEdZmd083203; Thu, 19 May 2011 10:39:35 -0400 (EDT) (envelope-from jwd) Date: Thu, 19 May 2011 10:39:35 -0400 From: John D To: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Message-ID: <20110519143935.GA83122@slowblink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash 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: Thu, 19 May 2011 14:55:55 -0000 Hi Folks, Looking for a bit of help to debug a sas interconnect, gmultipath, and zfs filesystem crash when the 2nd cable is pulled. Apologies for the cross post to geom & fs, hoped I would catch the right folks. In general, I have two systems each with an LSI 9200-8e sas hba installed. Each adapter has two cables going to shelf 1, then to shelf 2, then to the second system. System1 <---> Shelf1 <---> Shelf2 <---> System2 System1 <---> Shelf1 <---> Shelf2 <---> System2 Typical stuff, system1 & 2 are carp'd together, if one system goes down, the second zfs imports the pools and takes over. If I do a test pull of one of the cables, multipath removes the failed providers correctly with no interupt to the filesystem. Reinstalling the cable causes the providers to be re-integrated. This cable can be pull/reinstalled multiple times with no problem. However, pulling the 2nd causes a kernel crash. I have the configuration/logs/screen shots here: http://people.freebsd.org/~jwd/lsi_gmultipath_zfs.html I can replicate the problem on demand. Any help debugging this problem is appreciated. Thanks! john From owner-freebsd-geom@FreeBSD.ORG Thu May 19 16:28:33 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EFF51065670 for ; Thu, 19 May 2011 16:28:33 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9DCDE8FC14 for ; Thu, 19 May 2011 16:28:32 +0000 (UTC) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id p4JFrsDa092213 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 May 2011 08:53:54 -0700 (PDT) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.4/8.14.4/Submit) with ESMTP id p4JFrqHY092210; Thu, 19 May 2011 08:53:53 -0700 (PDT) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Thu, 19 May 2011 08:53:50 -0700 (PDT) From: mjacob@freebsd.org To: John D In-Reply-To: <20110519143935.GA83122@slowblink.com> Message-ID: References: <20110519143935.GA83122@slowblink.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [127.0.0.1]); Thu, 19 May 2011 08:53:54 -0700 (PDT) Cc: freebsd-geom@freebsd.org Subject: Re: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mj@feral.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2011 16:28:33 -0000 On Thu, 19 May 2011, John D wrote: >.. Not a zfs issue I believe, so dropping them -fs the thread. When you do the cable pull, is any I/O active? From owner-freebsd-geom@FreeBSD.ORG Thu May 19 21:20:35 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45CF0106566B for ; Thu, 19 May 2011 21:20:35 +0000 (UTC) (envelope-from jwd@SlowBlink.Com) Received: from nmail.slowblink.com (rrcs-24-199-145-34.midsouth.biz.rr.com [24.199.145.34]) by mx1.freebsd.org (Postfix) with ESMTP id E8CA38FC13 for ; Thu, 19 May 2011 21:20:34 +0000 (UTC) Received: from nmail.slowblink.com (localhost [127.0.0.1]) by nmail.slowblink.com (8.14.3/8.14.3) with ESMTP id p4JLKNAh085271; Thu, 19 May 2011 17:20:24 -0400 (EDT) (envelope-from jwd@nmail.slowblink.com) Received: (from jwd@localhost) by nmail.slowblink.com (8.14.3/8.14.3/Submit) id p4JLKMx2085270; Thu, 19 May 2011 17:20:22 -0400 (EDT) (envelope-from jwd) Date: Thu, 19 May 2011 17:20:22 -0400 From: John D To: mj@feral.com Message-ID: <20110519212022.GA84918@slowblink.com> References: <20110519143935.GA83122@slowblink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-geom@freebsd.org Subject: Re: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash 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: Thu, 19 May 2011 21:20:35 -0000 ----- mjacob@freebsd.org's Original Message ----- > > On Thu, 19 May 2011, John D wrote: > > >.. > > Not a zfs issue I believe, so dropping them -fs the thread. > > When you do the cable pull, is any I/O active? Yes, I have about 600MB/s running to the array: dd if=/dev/zero bs=1m | mbuffer -m 64m -o /lsi/bigfile with mbuffer reporting the following in @ 697 MiB/s, out @ 697 MiB/s, 11.8 GiB total, buffer 100% full when I pull the cable. Playing with it today, I'm wondering if the 1st cable actually has any active providers on it (luck of the draw that I pulled it first), and the 2nd has all the active providers on it. I have not explicity tried to balance the i/o on the two cables with gmultipath rotate. Having a bit of trouble getting a good objdump of g_multipath.o so I may do a new src update. Thx From owner-freebsd-geom@FreeBSD.ORG Thu May 19 21:58:31 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DF9F1065670 for ; Thu, 19 May 2011 21:58:31 +0000 (UTC) (envelope-from mjacob@freebsd.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 5358E8FC0A for ; Thu, 19 May 2011 21:58:31 +0000 (UTC) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id p4JLmGAp094905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 May 2011 14:48:17 -0700 (PDT) (envelope-from mjacob@freebsd.com) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.4/8.14.4/Submit) with ESMTP id p4JLmG0j094902; Thu, 19 May 2011 14:48:16 -0700 (PDT) (envelope-from mjacob@freebsd.com) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Thu, 19 May 2011 14:48:16 -0700 (PDT) From: Matthew Jacob To: John D In-Reply-To: <20110519212022.GA84918@slowblink.com> Message-ID: References: <20110519143935.GA83122@slowblink.com> <20110519212022.GA84918@slowblink.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [127.0.0.1]); Thu, 19 May 2011 14:48:17 -0700 (PDT) Cc: freebsd-geom@freebsd.org Subject: Re: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2011 21:58:31 -0000 > dd if=/dev/zero bs=1m | mbuffer -m 64m -o /lsi/bigfile > > with mbuffer reporting the following > > in @ 697 MiB/s, out @ 697 MiB/s, 11.8 GiB total, buffer 100% full > > when I pull the cable. Playing with it today, I'm wondering if the > 1st cable actually has any active providers on it (luck of the > draw that I pulled it first), and the 2nd has all the active > providers on it. I have not explicity tried to balance the i/o > on the two cables with gmultipath rotate. > > Having a bit of trouble getting a good objdump of g_multipath.o > so I may do a new src update. I had to do a wad of changes at Panasas to cover this kind of case. I have had some troubles getting these changes into -head (lack of time, differences from the RELENG_7 code I was working with, etc), but I think that there are still issues at play here. From owner-freebsd-geom@FreeBSD.ORG Fri May 20 00:08:11 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CE4B1065686 for ; Fri, 20 May 2011 00:08:11 +0000 (UTC) (envelope-from jwd@SlowBlink.Com) Received: from nmail.slowblink.com (rrcs-24-199-145-34.midsouth.biz.rr.com [24.199.145.34]) by mx1.freebsd.org (Postfix) with ESMTP id EF0D78FC12 for ; Fri, 20 May 2011 00:08:10 +0000 (UTC) Received: from nmail.slowblink.com (localhost [127.0.0.1]) by nmail.slowblink.com (8.14.3/8.14.3) with ESMTP id p4K089kE085993; Thu, 19 May 2011 20:08:10 -0400 (EDT) (envelope-from jwd@nmail.slowblink.com) Received: (from jwd@localhost) by nmail.slowblink.com (8.14.3/8.14.3/Submit) id p4K089XQ085992; Thu, 19 May 2011 20:08:09 -0400 (EDT) (envelope-from jwd) Date: Thu, 19 May 2011 20:08:09 -0400 From: John De Boskey To: mjacob@freebsd.org Message-ID: <20110520000809.GA85914@slowblink.com> References: <20110519143935.GA83122@slowblink.com> <20110519212022.GA84918@slowblink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-geom@freebsd.org Subject: Re: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash 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: Fri, 20 May 2011 00:08:11 -0000 ----- Matthew Jacob's Original Message ----- > >dd if=/dev/zero bs=1m | mbuffer -m 64m -o /lsi/bigfile > > > >with mbuffer reporting the following > > > >in @ 697 MiB/s, out @ 697 MiB/s, 11.8 GiB total, buffer 100% full > > > >when I pull the cable. Playing with it today, I'm wondering if the > >1st cable actually has any active providers on it (luck of the > >draw that I pulled it first), and the 2nd has all the active > >providers on it. I have not explicity tried to balance the i/o > >on the two cables with gmultipath rotate. > > > >Having a bit of trouble getting a good objdump of g_multipath.o > >so I may do a new src update. Sources are up-to-date as of revision 222104. buildworld/buildkernel. I'll rerun tests and pull the cables. > I had to do a wad of changes at Panasas to cover this kind of case. I have > had some troubles getting these changes into -head (lack of time, > differences from the RELENG_7 code I was working with, etc), but I think > that there are still issues at play here. Do you still have changes to integrate? Anything I can do to help? Any best debugging practices for this area? Sorry, lots of questions. Thx From owner-freebsd-geom@FreeBSD.ORG Fri May 20 16:34:09 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B3B8106566B for ; Fri, 20 May 2011 16:34:09 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 01F468FC14 for ; Fri, 20 May 2011 16:34:08 +0000 (UTC) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id p4KGY7AA042004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 May 2011 09:34:08 -0700 (PDT) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.4/8.14.4/Submit) with ESMTP id p4KGY7GD042001; Fri, 20 May 2011 09:34:07 -0700 (PDT) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Fri, 20 May 2011 09:34:07 -0700 (PDT) From: mjacob@freebsd.org To: John De Boskey In-Reply-To: <20110520000809.GA85914@slowblink.com> Message-ID: References: <20110519143935.GA83122@slowblink.com> <20110519212022.GA84918@slowblink.com> <20110520000809.GA85914@slowblink.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [127.0.0.1]); Fri, 20 May 2011 09:34:08 -0700 (PDT) Cc: freebsd-geom@freebsd.org Subject: Re: LSI 9200-8e/gmultipath/ZFS cable pull kernel crash X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 16:34:09 -0000 > > Do you still have changes to integrate? Anything I can do to help? Any > best debugging practices for this area? Sorry, lots of questions. > Just need to get time for it. From owner-freebsd-geom@FreeBSD.ORG Sat May 21 22:14:59 2011 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 188721065670; Sat, 21 May 2011 22:14:59 +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 E55D28FC08; Sat, 21 May 2011 22:14:58 +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 p4LMEwCx032066; Sat, 21 May 2011 22:14:58 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4LMEwZG032062; Sat, 21 May 2011 22:14:58 GMT (envelope-from linimon) Date: Sat, 21 May 2011 22:14:58 GMT Message-Id: <201105212214.p4LMEwZG032062@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/157108: [gjournal] dumpon(8) fails on gjournal providers 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: Sat, 21 May 2011 22:14:59 -0000 Old Synopsis: dumpon fails on gjournal providers New Synopsis: [gjournal] dumpon(8) fails on gjournal providers Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sat May 21 22:13:55 UTC 2011 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=157108