From owner-freebsd-questions@freebsd.org Thu Feb 21 07:09:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20AE714FA3C3 for ; Thu, 21 Feb 2019 07:09:35 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BACD92BC1 for ; Thu, 21 Feb 2019 07:09:34 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: by mail-qk1-x743.google.com with SMTP id p15so3690501qkl.5 for ; Wed, 20 Feb 2019 23:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fH2NWFepu4BABmMxInQNFP8Zvb7smEgRNtDZuGf6QxU=; b=rlE8JFGmMHsijTewUDl1DunH0jxp0c7DgYvZliQixiw/YzGWCgMh8Jq7qO/cWTPp4X SKoa1P1QSxvoZ3uvMHJbvjAT4j/Zw7ITQn3n9FWbHW8WH/PG+FlmYF2TJRNlBRr1OlO7 +wAFY6lBA/FwZ4/91NtznnEDKHdghAsvGkyTZU8QjGv9BdpVWaz8YntMhEdEP/XzN6yx UKbznoMaDGxuZDAu4ByBeCiUvPGHB0UjFeQHChZkt426x2jtJBHCl4H6ZgueDvbS9oYC nIOQmQkSzCEyOOZmzFvl9X4pdVIIAWMlD2o8Wp9AIEVeIH0ps/YeALACL5cKR1OY+Quy qJDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fH2NWFepu4BABmMxInQNFP8Zvb7smEgRNtDZuGf6QxU=; b=T5fzLcNNxIGA1cROvzoqgAg07R1Hlk0bJEi/UsYGIjZuQnImPg3GvBL/jypZN6e38W RM2Iosg994/XTvrXNwyfoJbwCoT4nZRrJ3krIYH49wo7sBkn6UhSNVWDWNODFYWmQuQ0 BiSZE/DEDf4wtThIiMJOXdSBHGI3PXoG1XLPFZNTn96+h7JTqKe77rDtpeisK9IAPJy1 CdkM87DRgqlY00cw6vZpFR0wK62P5/K2vriRTTSbi+LKyFd2KpHhnDJ+UPQ23Ws3jyrE T/vSptG6JA4MPBFP0x2iGo+8Ef7N/wtHp39F5SXqpi5PjjeFbS/zegSxKH/FXRjIhlQB nw/Q== X-Gm-Message-State: AHQUAubwXefzMCckKSNnYcwb4hIqjP5cB9qH6TJOplPTNmOAg/EmN9Hy UL+e6RZ1B4Ex4QlUNnjDbG+os0QUR4JcUYi8B2s= X-Google-Smtp-Source: AHgI3IZJW3DvYIZdlztEJqrqPhlgimbB1VJxbC0A4tLDa/4sS7USXb2+FJd/9o7qjCMIP6BwFBSxnD7lS1IYnJcrPi8= X-Received: by 2002:a37:b046:: with SMTP id z67mr26963121qke.350.1550732973236; Wed, 20 Feb 2019 23:09:33 -0800 (PST) MIME-Version: 1.0 References: <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> <32153EA7-4BC5-4EE2-98FA-5BDEE1903BA3@cretaforce.gr> <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr> <0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657@kreme.com> <20190221032121.c0006dfe.freebsd@edvax.de> <20190221075515.c815b269.freebsd@edvax.de> In-Reply-To: <20190221075515.c815b269.freebsd@edvax.de> From: "Jack L." Date: Wed, 20 Feb 2019 23:08:57 -0800 Message-ID: Subject: Re: Duplicating file system To: Polytropon Cc: "@lbutlr" , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 0BACD92BC1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=rlE8JFGm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of xxjack12xx@gmail.com designates 2607:f8b0:4864:20::743 as permitted sender) smtp.mailfrom=xxjack12xx@gmail.com X-Spamd-Result: default: False [-2.56 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.48)[0.484,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.04)[ip: (4.47), ipnet: 2607:f8b0::/32(-2.62), asn: 15169(-1.99), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2019 07:09:35 -0000 I missed the original thread but if I want to duplicate my filesystem, i usually use the dump and restore method cd targetdir;dump -0f - /dev/device|restore -rf - that will dump the /dev/device to stdout and then restore stdout to the target. Very quick. On Wed, Feb 20, 2019 at 11:00 PM Polytropon wrote: > > On Wed, 20 Feb 2019 20:59:21 -0700, @lbutlr wrote: > > On 20 Feb 2019, at 19:21, Polytropon wrote: > > > With this in mind, I'd start with an 1:1 copy using dd, and from that > > > point on, have a scheduled job of rsync or cpdup in place to have any > > > source changes affect the "copy drive". > > > > I will try cpdup as I have tried rsync already and it is too > > resource intensive to run it constantly. Even with a 5 minute > > delay sometimes a task will not finish before the next one > > starts and then a cascade will bring the system down as more > > and more processes get stuck. > > This makes the scenario even more look like a situation where > a mirrored approach (like software RAID, gmirror) is a good > solution; writes will happen in quasi-parallel and transparent > to the writing process, so those race conditions won't appear. > > But definitely try cpdup, it might work fast enough to fit > the time window. :-) > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"