Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: newer releases of various kernels cause boot to hang with ZFS
Date: Wed, 19 Jun 2019 07:21:05 +0200	[thread overview]
Message-ID: <20190619052105.rYEAym5nKCVqE1x6UAZ6my03VmOuO60jAwOCyoFc0gg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12519@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1696 bytes --]

New comment by emacsomancer on void-packages repository

https://github.com/void-linux/void-packages/issues/12519#issuecomment-503410468
Comment:
Ok, so debugging this was a bit tricky. The gist is this: the recentness of the kernels was a red herring, the crucial factor was whether the kernel was installed before or after the zvol swap file was created. All kernels created after swap was created end up with a dracut configuration which (apparently by default) assumes that swap will be used for resume, and when booting any of these kernel results in dracut waiting about 2 minutes trying to finding the swap partition (so these kernels do *eventually* boot). 

So I'll close this issue (which wasn't what it appeared) but document a possible resolution:

One Potential Fix
==========
I don't really use resume, so at least one easy fix for this issue is to create a dracut conf file, e.g.:

/etc/dracut.conf.d/omit-resume-for-zvol-swap.conf containing:

`omit_dracutmodules+=" resume "`

and call `xbps-reconfigure -f` on the relevant kernels.

I'm not sure if a zvol swap can be used for resume/seen at the appropriate time by dracut or not.

Using Swap on ZFS root?
==============
It's possible that the location of the swap partition could be specified in a way that dracut could locate it (though, again, not using resume, I'm not sure about swap size requirements for using resume). zvol-type swap ends up being mounted on `/dev/zvol/<POOL-NAME>/swap`. I think dracut looks for the resume/swap to be located at `/dev/zd0`.

 I'll investigate further. But for now there's at least a clear fix for this issue, which turns out not to be at all what it first appeared.

  parent reply	other threads:[~2019-06-19  5:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18  0:28 [ISSUE] " voidlinux-github
2019-06-18 10:06 ` voidlinux-github
2019-06-18 17:54 ` voidlinux-github
2019-06-19  5:21 ` voidlinux-github [this message]
2019-06-19  5:21 ` [ISSUE] [CLOSED] " voidlinux-github
2019-06-19  5:21 ` voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190619052105.rYEAym5nKCVqE1x6UAZ6my03VmOuO60jAwOCyoFc0gg@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).