Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2014 17:15:07 +0000
From:      Pierre Ancelot <pierreact@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: ZFS create crashes my system.
Message-ID:  <CAGC2t-g=DbOoPyyQOc7Ehw8yG8Bdh=TCFxEy2b0HR1bDdvMcMA@mail.gmail.com>
In-Reply-To: <CAGC2t-gMzgDcvqtk6u%2BZx0q0OBG-iGhhdnScefCubE1f2%2BiKfw@mail.gmail.com>
References:  <CAGC2t-g5PSeutDR8U2J2-c5MbaWTv%2Bm8U2m=a7-QZ0w-Fn=Oiw@mail.gmail.com> <CAGC2t-gMzgDcvqtk6u%2BZx0q0OBG-iGhhdnScefCubE1f2%2BiKfw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <pierreact@gmail.com> 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 <pierreact@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGC2t-g=DbOoPyyQOc7Ehw8yG8Bdh=TCFxEy2b0HR1bDdvMcMA>