From owner-freebsd-fs@FreeBSD.ORG Mon Dec 19 07:05:29 2011 Return-Path: Delivered-To: fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D92D21065672; Mon, 19 Dec 2011 07:05:29 +0000 (UTC) (envelope-from Karli.Sjoberg@slu.se) Received: from Edge1-2.slu.se (edge1-2.slu.se [193.10.100.97]) by mx1.freebsd.org (Postfix) with ESMTP id 4180F8FC14; Mon, 19 Dec 2011 07:05:28 +0000 (UTC) Received: from Exchange1.ad.slu.se (193.10.100.94) by Edge1-2.slu.se (193.10.100.97) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 19 Dec 2011 08:05:25 +0100 Received: from exmbx3.ad.slu.se ([193.10.100.93]) by Exchange1.ad.slu.se ([193.10.100.94]) with mapi; Mon, 19 Dec 2011 08:05:25 +0100 From: =?Windows-1252?Q?Karli_Sj=F6berg?= To: Pawel Jakub Dawidek Date: Mon, 19 Dec 2011 08:05:24 +0100 Thread-Topic: Consistant panics trying to access zfs filesystems replicated from Sun/Oracle appliance Thread-Index: Acy+HJTS3cv68xpkQIitL8xpVNh+Kg== Message-ID: References: <82B38DBF-DD3A-46CD-93F6-02CDB6506E05@slu.se> <73B607D0-8C3E-4980-B901-B986E060D32E@slu.se> <4EE7754D.3050605@FreeBSD.org> <558C926F-14FA-458D-BB8E-D20BA46BE6D2@slu.se> <4EE9EC6F.2080808@FreeBSD.org> <20111218125212.GE1685@garage.freebsd.pl> In-Reply-To: <20111218125212.GE1685@garage.freebsd.pl> Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: sv-SE, en-US MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "fs@freebsd.org" , =?Windows-1252?Q?Martin_Matu=9Aka?= , Andriy Gapon Subject: Re: Consistant panics trying to access zfs filesystems replicated from Sun/Oracle appliance X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2011 07:05:29 -0000 Hi Pawel, thank you so much for the patch, I=B4ll try it right away. Do I need to rec= ompile anything afterwards, or does this patch just magically solve everyth= ing right away? /Karli 18 dec 2011 kl. 13.52 skrev Pawel Jakub Dawidek: On Thu, Dec 15, 2011 at 02:47:43PM +0200, Andriy Gapon wrote: on 15/12/2011 13:59 Karli Sj=F6berg said the following: Hi all, with the help of Andriy Gapon, I managed to capture what happened: # cd /export/Portfolio/ci (TAB) http://oi40.tinypic.com/b3lsog.jpg # cd /export/Portfolio/cifs_share http://oi42.tinypic.com/6e40op.jpg # ls /export/Portfolio/cifs_share http://oi42.tinypic.com/23rn60j.jpg And this was Andriy=B4s response: Hmm, so it adds the "FreeBSD" string twice. I am not sure what that means, consider sharing this result with the publi= c, maybe someone will have a better idea. Ah, hah, no wonder there is a panic: static __inline ksiddomain_t * ksid_lookupdomain(const char *domain) { ksiddomain_t *kd; kd =3D kmem_alloc(sizeof(*kd), KM_SLEEP); strlcpy(kd->kd_name, "FreeBSD", sizeof(kd->kd_name)); return (kd); } So, no matter what input domain value is, the returned ksiddomain_t is goin= g to have kd_name of "FreeBSD". Basically it means that if an on-disk fuid_nvli= st has more than one entry then we always are going to hit this panic. Not go= od. Yeah. Karli, could you try the patch below? http://people.freebsd.org/~pjd/patches/zfs_sid.h.patch -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com Med V=E4nliga H=E4lsningar ---------------------------------------------------------------------------= ---- Karli Sj=F6berg Swedish University of Agricultural Sciences Box 7079 (Visiting Address Kron=E5sv=E4gen 8) S-750 07 Uppsala, Sweden Phone: +46-(0)18-67 15 66 karli.sjoberg@slu.se