public inbox for discuss@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
From: "Joshua M. Clulow" <josh@sysmgr.org>
To: illumos-discuss <discuss@lists.illumos.org>
Subject: Re: [discuss] Cannot receive older ZFS dumps
Date: Mon, 5 Aug 2024 14:33:35 -0700	[thread overview]
Message-ID: <CAEwA5nKFF-pGWLwzfczwe=VKnzwXQG4iX8XNboGyMaJm39vwsw@mail.gmail.com> (raw)
In-Reply-To: <c576df9d-c4d6-bc54-bca4-7906a459270c@kit.edu>

On Mon, 5 Aug 2024 at 05:03, Udo Grabowski (IMK) <udo.grabowski@kit.edu> wrote:
> On 05/08/2024 10:57, Toomas Soome via illumos-discuss wrote:
> > So one test scenario would be to test newer build, but with those features
> > disabled, if receive is good, then enable one feature and re-test, till we have
> > suspect:)
> Doesn't help at all, so that problem does not seem to be related to features:

Whether features are turned on or off, the _code_ has changed in the
meantime.  It seems like it would be possible on some level to bisect
back to previous package versions, but I expect it would be very
tedious, especially if they've been pruned from the repository in the
meantime, etc.

> # cat /home/lsdf/SAT/Processor/Results/imk/32@20100825 | zfs receive -d test
> cannot receive new filesystem stream: invalid backup stream

As I suggested earlier, I think it's best to start by looking at what
the current version of the software is actually doing and work
backwards to the problem; e.g.,

  * What code produces that error message?
    (presumably in zfs, the command, or libzfs)

  * What causes it to produce that error message?
    (presumably some errno returned from the kernel)

  * What causes the errno to be returned by the kernel?
    (presumably it's occuring in the attempt to process
     one of the stream records being fed in from usermode)

  * etc, until we find the reason it's confused

You should be able to catch the issue as it occurs with DTrace and a
little reading of the code, etc.  I would start by locating in the
source the specific error message you see, i.e., "invalid backup
stream", and see where it is printed, etc.


Cheers.

-- 
Joshua M. Clulow
http://blog.sysmgr.org

  reply	other threads:[~2024-08-05 21:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-01 10:38 Udo Grabowski (IMK)
2024-08-01 10:53 ` [discuss] " Toomas Soome
2024-08-01 12:26   ` Udo Grabowski (IMK)
2024-08-02  4:55     ` Joshua M. Clulow
2024-08-02 17:09     ` John D Groenveld
2024-08-02 17:21       ` Toomas Soome
2024-08-02 19:28         ` Richard Lowe
2024-08-05  8:03         ` Udo Grabowski (IMK)
2024-08-05  8:57           ` Toomas Soome
2024-08-05 12:03             ` Udo Grabowski (IMK)
2024-08-05 21:33               ` Joshua M. Clulow [this message]
2024-08-05  7:42       ` Udo Grabowski (IMK)

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='CAEwA5nKFF-pGWLwzfczwe=VKnzwXQG4iX8XNboGyMaJm39vwsw@mail.gmail.com' \
    --to=josh@sysmgr.org \
    --cc=discuss@lists.illumos.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).