Comments (7)
Here's a patch which deals with this:
https://gist.github.com/1619096
It simply keeps trying to import the zpool, sleeping 1 second between attempts, up to a maximum of 10 times (10 seconds). If/when the import succeeds, it breaks out of the loop immediately. So it's adding essentially zero delay to existing working cases, and it fixes my case.
from pkg-zfs.
I switched to the linux-virtual kernel package and the delay is gone. Now the initramfs works great, even without the sleep. If you want to skip this patch, that's fine by me. But it does add some robustness.
from pkg-zfs.
If I add this patch, then I will change it to require a kernel option in the /etc/default/grub
file so that the problem isn't masked. My perspective on this ticket is:
- Ubuntu has a history of breaking -virtual and making -generic unnecessarily incompatible with VMs. (eg: LP #546929 and LP #658461)
- Keeping the bug latent could induce somebody to figure out why
udevadm settle
is inadequate and fix the problem more generally.
Right now, I'm thinking that the root cause is an Ubuntu-specific kernel quirk.
from pkg-zfs.
Since the -virtual kernel works fine, I'll just close the issue.
I definitely hear you on the first point. We're both subscribers on the second bug. On the second, though, I'm not sure that udevadm settle is doing anything wrong. From udev's point of view, and probably even the kernels', there simply is no sda at that point. It spontaneously appears (as if plugged in, I suppose) later. At least that's how it appears to behave to me. There's nothing for about 3 seconds and then all of a sudden, there's more dmesg output for a SCSI drive.
from pkg-zfs.
Okay, and the problem could also be in KVM because boot devices should never be a hotplug event after POST.
I noticed that you are working on the virt-manager backend. Note that the qemu-kvm stack in Oneiric has some unusual bugs running on ZFS. I've noticed that:
- qcow2 images are sometimes truncated; the UI creates them and immediately complains that they are malformed.
- zvols are sometimes reported as zero size.
from pkg-zfs.
What do you mean "reported as zero size"? It's zvols that I'm mainly concerned with supporting in a storage backend, at least initially.
from pkg-zfs.
When I tried to migrate my VBox and VMware data, KVM would spontaneously fail to start virtual machines that had devices backed by zvols. The log said something about the zvol being too small, and debugging messages said zero bytes.
This happened a few months ago on Natty and Oneiric, and qemu-kvm was generally too incomplete for me to put any time into diagnosis. No other application would choke on a zvol, so I figured that the problem was in KVM.
I will open a ticket with a useful error transcript if I try your branch and get this behavior. :)
from pkg-zfs.
Related Issues (20)
- PPA packages for xenial / yakkety HOT 2
- Ubuntu 17.04, initramfs zfs script does not honor datasets with canmount property set to none HOT 6
- Ubuntu 14.04 ubuntu-zfs Depends: zfs-dkms but it is not installable HOT 3
- 0.6.5.11 hasn't been built for Ubuntu stable ppa HOT 1
- zfs-mount.service Working Directory Issue
- ZFS daily/stable PPA for Ubuntu 16.04 xenial possible? HOT 4
- CentsOS 7 not booting after 'yum update' - zfs kernel module missing (using zfs-kmod)
- Root on Ubuntu 18.04 "recordsize" too large?
- Problem EL7 (CentOS RHEL) to a Native ZFS Root Filesystem HOT 4
- zvol for swap and sync=? HOT 5
- Repository ubuntu server 18.04 no release file found
- EL7 (CentOS 7.6) After Native ZFS Installation, Second Array causes grub to fail: No Device found HOT 2
- Can the root be on a RAID-Z1?
- Missing command detecting ZFS-ID
- Error during upgrade to 0.8.1-1ubuntu14.2 HOT 1
- ZFS on Ubuntu16 (booting from non-zfs volume) does not mount /var from ZFS-Dataset HOT 1
- ZFS_INITRD_ADDITIONAL_DATASETS does not work
- Importing multiple encrypted pools at boot HOT 3
- compatibility with `openrc` (Devuan) HOT 1
- Undeclared dependency on GNU awk asort() in vdev_id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkg-zfs.