From owner-freebsd-fs@freebsd.org Tue Oct 10 17:36:08 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3766BE38441 for ; Tue, 10 Oct 2017 17:36:08 +0000 (UTC) (envelope-from juan@kognito.com) Received: from mail-lf0-x22c.google.com (mail-lf0-x22c.google.com [IPv6:2a00:1450:4010:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA36A655B2 for ; Tue, 10 Oct 2017 17:36:07 +0000 (UTC) (envelope-from juan@kognito.com) Received: by mail-lf0-x22c.google.com with SMTP id d10so29593743lfg.11 for ; Tue, 10 Oct 2017 10:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kognito-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mGyUVyP/YIilROi09JLAsVYF0Cnc1Gto1FL7/yIdvWI=; b=AS/YTG/orUFhY8Zq3PafJxeJzhOejaUkPaHiF1y9PrF5I4vP/weG5FAE2GRg6pIy9V Xkv2tbsCVXq+686hNh3s81Y2FNgvDpJYr87dYW8Ev+sZWoWoXn0fEUIGOVpeskcDnceT tzuSk2EiLUP1Z/c16DHsXl1kPRmiM/JmkKyQ/rTcOqqnVmqxLq+oW0HyAda6mEBJKsCY JpFfx543B7e84Lm5dLMbp+1bjcNR1Dx3r7o1EqRjLYwQY4sjpZysAXI5i++yu6VdZ8Ge HAMNGc+PgEU6fJ0RXU0rOq9WbBkp6fOxNY6dzgbqJLCN3/X6cKIvcV2E6oQCEjSW0/yU qm5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mGyUVyP/YIilROi09JLAsVYF0Cnc1Gto1FL7/yIdvWI=; b=pszfATKZGoLvS2z3z6FIBkB699mS8P14SyMZPlvMHBifR6xK4C9yxxTQRCg5Xkkl1x Zu9DFJ0OH1rX4oL65tWbjViJzlBnq1YJtYFslX599j5+LkhMwqi57T3lxltsAuySynhP UqTr2V1ZUY0rdULambEcZb+myWc6O7Oa4+tTlmh6JtwgXpebJMRGWRfVUNWGa1FVZvms QCuBrsvZlC3uETbMQPf20HjDU7G/Db6UKX4Irqx+t+fNwiWrj6lonDVGFKrmkPNlgvj1 LIYSGrwgvK2KfKIN/xLDwnpYJpAJQZEP1MR7zzLeYb7l6u46Fp1DxZRiu2tdJgACnGBr uU+Q== X-Gm-Message-State: AMCzsaVBI8RFpY38Swg1t3OVBe/OrfrlLV+U0lqqosDkW70ddoI6Dmo8 +PI65ueJg86+ePBsVufwYDhLbPHgwFJk+jJSUZBh X-Google-Smtp-Source: AOwi7QDjmhR3suys2TaMVwdpRjd8G15Yt+FgqM8pUnWOa1TkilrsE1jHmM2iHDpxZurLyfvRINsX+sk+XgpUERx3Ues= X-Received: by 10.46.3.1 with SMTP id 1mr6337068ljd.147.1507656965486; Tue, 10 Oct 2017 10:36:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.38.146 with HTTP; Tue, 10 Oct 2017 10:35:34 -0700 (PDT) In-Reply-To: References: From: Juan Manuel Palacios Date: Tue, 10 Oct 2017 13:35:34 -0400 Message-ID: Subject: Re: Trying to understand confusing 'zfs diff' output To: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 17:36:08 -0000 Hi everyone, I sent this question some weeks ago but got no response. Pinging again to see if anyone has any clues, thanks! On Tue, Sep 19, 2017 at 12:13 PM, Juan Manuel Palacios wrote: > Hi everyone, > > I'm trying to understand a result I'm seeing when comparing the diff of > two local ZFS snapshots that were successfully replicated to a remote pool > over SSH against the diff of their remote counterparts. The latter shows > three files as having been deleted, while the local diff of the exact same > two snapshots doesn't. > > Following are those diffs, with empty lines entered manually into the > local diff where the remote one shows the deleted files; moreover, lines > right above & below this confusing part of the diffs have been trimmed for > brevity's sake, since they were identical across both outputs. > > 1) Local diff (FreeBSD 10.3-RELEASE-p21 system): > > -> zfs diff zroot/mysql@automated_2017-07-31_23:45:04-EDT > zroot/mysql@automated_2017-08-01_23:45:03-EDT | gawk '{ match($2, > /\/(.*)/, matches); printf "%s\t%s\n", $1, matches[1]; }' > (trimmed) > M mysql/data/knet@002dlrs/lrs_providers.ibd > > M mysql/data/snap/sessions.ibd > M mysql/data/knet@002dlrs/sessions.ibd > M mysql/data/leads/demo_requests.ibd > M mysql/tmp/nk-dev.sql.gz > > > M mysql/data/knet/account_manager_memberships.ibd > (trimmed) > > > 2) Remote diff (FreeBSD 10.3-RELEASE-p19 system): > > -> zfs diff backup/mysql@automated_2017-07-31_23:45:04-EDT > backup/mysql@automated_2017-08-01_23:45:03-EDT | gawk '{ match($2, > /\/mnt\/backup\/(.*)/, matches); printf "%s\t%s\n", $1, matches[1]; }' > (trimmed) > M mysql/data/knet@002dlrs/lrs_providers.ibd > - mysql/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql > M mysql/data/snap/sessions.ibd > M mysql/data/knet@002dlrs/sessions.ibd > M mysql/data/leads/demo_requests.ibd > M mysql/tmp/nk-dev.sql.gz > - mysql/replication/mysql-bin.001241 > - mysql/replication/mysql-bin.001242 > M mysql/data/knet/account_manager_memberships.ibd > (trimmed) > > So, as I was saying, the remote diff shows these three files as having > been deleted, because they were: > > 1) Locally: > > -> ls -l /mysql/.zfs/snapshot/automated_2017-07-31_23\:45\:04-EDT/ > tmp/nk-dump--2017-07-19_01\:32\:16-EDT.sql > -rw-r--r-- 1 jmpp jmpp 46M Jul 19 01:32 /mysql/.zfs/snapshot/automated > _2017-07-31_23:45:04-EDT/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql > > -> ls -l /mysql/.zfs/snapshot/automated_2017-08-01_23\:45\:03-EDT/ > tmp/nk-dump--2017-07-19_01\:32\:16-EDT.sql > ls: /mysql/.zfs/snapshot/automated_2017-08-01_23:45:03-EDT/tmp/ > nk-dump--2017-07-19_01:32:16-EDT.sql: No such file or directory > > > 2) On the remote pool: > > -> ls -l /mnt/backup/mysql/.zfs/snapshot/automated_2017-07-31_23\:45\ > :04-EDT/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql > -rw-r--r-- 1 1001 1001 48288840 Jul 18 22:32 > /mnt/backup/mysql/.zfs/snapshot/automated_2017-07-31_23:45: > 04-EDT/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql > > -> ls -l /mnt/backup/mysql/.zfs/snapshot/automated_2017-08-01_23\:45\ > :03-EDT/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql > ls: /mnt/backup/mysql/.zfs/snapshot/automated_2017-08-01_23:45: > 03-EDT/tmp/nk-dump--2017-07-19_01:32:16-EDT.sql: No such file or directory > > And so for the other two files. > > So, my question is, if the remote diff is correct in showing these files > as having been deleted between the two snapshots (it *is* correct in doing > that, right?), why does the local diff not show it also? > > Thanks in advance for any help! > > -- > Juan Palacios > Senior Software Architect > > 135 West 26th St l 12th Floor l NY, NY 10001 > 212.675.9234 <(212)%20675-9234> l 646.217.3677 <(646)%20217-3677> > > Register for our upcoming webinar with The Healthy Minds Network and > AUCCCD: > Trends in Higher Education Mental Health: Research Highlights > > > Connect with us! > > > > -- Juan Palacios Senior Software Architect 135 West 26th St l 12th Floor l NY, NY 10001 212.675.9234 l 646.217.3677 Register for our upcoming webinar with The Healthy Minds Network and AUCCCD: Trends in Higher Education Mental Health: Research Highlights Connect with us!