ZFS create crashes my system.

Pierre Ancelot pierreact at gmail.com
Sun Dec 7 17:15:09 UTC 2014


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=0
vfs.zfs.trim.enabled=0
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 at 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.html
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195061
>
>
> On Sun, Dec 7, 2014 at 11:36 AM, Pierre Ancelot <pierreact at gmail.com> wrote:
>> 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
>
> “Live as if you were to die tomorrow. Learn as if you were to live forever.”
> ― Mahatma Gandhi



-- 
http://www.neko-consulting.com

“Live as if you were to die tomorrow. Learn as if you were to live forever.”
― Mahatma Gandhi


More information about the freebsd-questions mailing list