-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpool import lock up with "zavl: loading out-of-tree module taints kernel" and "PANIC: zfs: allocating allocated segment(offset=108513914880 size=131072)" in logs #9353
Comments
@tlvu based on the stack trace it looks like your system unfortunately hit a known bug in the older ZFS release included with Ubuntu 16.04. While it looks like Ubuntu 16.04 never got the fix for this, Ubuntu 18.04 includes a significantly newer version of ZFS which did. If possible I'd encourage you to upgrade your system. You may be able to resolve the issue by importing the pool under 18.04, mounting all of the ZFS filesystem and volumes, then exporting it. This will allow ZFS to replay all of its internal logs using the updated code, and leave the pool in a clean exported state. This should allow you to re-import it under 16.04. Sorry you got bit by this bug! |
@behlendorf unfortunately zpool export using a newer ubuntu distro then zpool import again on my problematic host did not work, same errors again in syslog. It feels like ZFS just plain do not want to work/run on my machine. It's not the problem of the data pool. Anything else I can do to help debug this weird before giving up and just upgrade my system? Can I have a link to this know issue? Maybe I discovered a new issue that is not that known issue? |
You'll want to additionally make sure all of the datasets get mounted then export the pool. This ensure's the per-dataset logs get replayed which doesn't occur until after the import.
Thanks for offering, but I think we have everything we need. The issue I'm specifically thinking of is #6477 which was fixed in v0.7.2. |
Confimed all the datasets of my pool were all mounted after
I am not sure that's the same issue as mine. I think mine has something to do with tainted kernel, see this line |
Sorry to re-resurrect an old thread but I am a bit desperate here, really don't want to lose data. So I upgraded to Ubuntu Bionic 18.04. Was able to import my pool. Used for a few weeks. Then out of the blue today I am again unable to import my pool on boot. Tried to use a Ubuntu 19.04 livecd and still unable to import my pool. Error in
Is there a way to recover my pool? I have data in there I really would not want to lose.
|
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
Just for the record, importing the pool in readonly mode ( |
System information
Describe the problem you're observing
zfs import <pool name>
just never return. Corresponding/var/log/syslog
below.Tried to completely uninstall zfs (
apt remove zfsutils-linux; apt autoremove
) and re-install from scratch, same problem. I notice after I re-installzfsutils-linux
the zfs kernel module is not loaded automatically, I had tomodprode zfs
to force load it. Humm now that I think about this, should uninstall, reboot, then re-install?Tried to boot using an older kernel that used to work, same problem.
Describe how to reproduce the problem
Not sure how to reproduce. Using a Live USB of a newer ubuntu (18.04), I installed
zfsutils-linux
and I was able tozfs import
fine. Then I ranzpool scrub
and no problems found.But if I boot my real system, this is reproducible 100%.
Prior to this event, I have been using ZFS on the same machine without any trouble for more than 2 years straight. I have zfs-auto-snapshot installed and configured ... just in case there is a relationship.
I have ZFS on other Ubuntu machines as well, never seen this problem.
Given that ZFS refuse to work on my system, sending my pools elsewhere and destroy/recreate my pools won't help me, I think.
So I am stuck, don't know how to get ZFS working on my system again. Ubuntu 16.04 is old, I can re-install a newer version but before I do this I am really curious as to how to diagnose this weird problem.
For me, the biggest selling point of ZFS is how solid it protects the data from bit rot and corruptions. But if ZFS suddenly die like this and there is no "easy" way to bring it back, then this solid reputation just lose a few Brownies point here.
Include any warning/errors/backtraces from the system logs
Logs in
/var/log/syslog
when I executezfs import
:The text was updated successfully, but these errors were encountered: