From owner-freebsd-questions@FreeBSD.ORG Sun Dec 7 17:15:08 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7158DD9 for ; Sun, 7 Dec 2014 17:15:08 +0000 (UTC) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DD9CA80 for ; Sun, 7 Dec 2014 17:15:08 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id tr6so3236017ieb.7 for ; Sun, 07 Dec 2014 09:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=O77yfwGTM3fXfpUEx7a96Z9fU9rTvrPUomgK+ZE6vX4=; b=IrwwdkJIV0ZSwroIm91bGMH0cbt/JV6rBrLOyhePLM1bfFcqgL+CwgZfZolS8EQZg0 6kpxE9rPHoLz2IDOTniL3kV5tNF/giXf3lrL9/rkx2P6BqRI57aZgqgGI2xcB/XuEKYL 9XHzHeKu04jDZUwgwD2J9zQgyU1xW+UxjpqDtfdzw8HA1K+V2yPr6U2ARvzX1Y0gAvpU PXE0QLOuL2a25GtmOI9JYYbKgH/fJnT9p46gJPs3viIK7gw8p/pTqDZOTeGAmxi77ecl BHxhkGWgoDo6xUOSfE1LA0PGi7lISnXwS4CUHWJ58a31TkWy/CxDUHXHFSogJxaOrYgg Px2w== MIME-Version: 1.0 X-Received: by 10.107.34.201 with SMTP id i192mr7598553ioi.40.1417972507933; Sun, 07 Dec 2014 09:15:07 -0800 (PST) Received: by 10.50.164.233 with HTTP; Sun, 7 Dec 2014 09:15:07 -0800 (PST) In-Reply-To: References: Date: Sun, 7 Dec 2014 17:15:07 +0000 Message-ID: Subject: Re: ZFS create crashes my system. From: Pierre Ancelot To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2014 17:15:09 -0000 So, for anyone who may be impacted by this later, this is how I solved it. The goal is to put those in your /boot/loader.conf vfs.zfs.vdev.trim_on_init=3D0 vfs.zfs.trim.enabled=3D0 At least until the patch is released. When I booted up, my system was constantly crashing, so I booted in single user mode. If you mount your / partition rw now, it will crash. I had to: zpool destroy tank (tank is my zpool name here) mount -o rw zroot/ROOT/default / Then, put the lines above in your /boot/loader.conf. reboot! Should be set. After reboot, your zpool should be there because the destroy command was done when the FS was read-only so the changes have been done in memory only. Thanks. On Sun, Dec 7, 2014 at 2:04 PM, Pierre Ancelot wrote: > I have found the solution, I will post it here shortly (busy with > something else now). > Pointers, > http://lists.freebsd.org/pipermail/freebsd-stable/2014-November/081024.ht= ml > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D195061 > > > On Sun, Dec 7, 2014 at 11:36 AM, Pierre Ancelot wro= te: >> Hello, >> >> I'm trying to figure out how to get out of this situation and most >> importantly, to learn from it: >> >> In order to use poudriere, I attempted to create a zpool on a file vdev. >> Here is what I did. >> >> mkdir /vdev >> mkfile 8g /vdev/disk1 # I was surprised that the space >> wasn't showing as used by df >> zpool create tank /vdev/disk1 >> >> Then, my system crashed and every reboot kept on crashing. >> So I started it in single user mode and seen the "tank" pool was >> listed as "unavail". >> >> Single user mode won't crash until I mount -rw / >> >> Did I create a race condition having my vdev on / (which uses ZFS)? >> >> How can I recover from this? Cancel my create request (which is >> certainly trying to complete everytime it has a chance but never get >> there because of the crash)? >> >> Thank you. >> Pierre. > > > > -- > http://www.neko-consulting.com > > =E2=80=9CLive as if you were to die tomorrow. Learn as if you were to liv= e forever.=E2=80=9D > =E2=80=95 Mahatma Gandhi --=20 http://www.neko-consulting.com =E2=80=9CLive as if you were to die tomorrow. Learn as if you were to live = forever.=E2=80=9D =E2=80=95 Mahatma Gandhi