From owner-freebsd-questions@freebsd.org Tue Sep 27 16:11:07 2016 Return-Path: Delivered-To: freebsd-questions@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 29935BEC896; Tue, 27 Sep 2016 16:11:07 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-188.static.stls.mo.charter.com [24.240.198.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBAD89C0; Tue, 27 Sep 2016 16:11:06 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.local (localhost [10.9.5.2]) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPS id u8RGAw1q060746 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Sep 2016 11:10:59 -0500 (CDT) (envelope-from dweimer@dweimer.net) Received: (from www@localhost) by webmail.dweimer.local (8.15.2/8.15.2/Submit) id u8RGAwto060745; Tue, 27 Sep 2016 11:10:58 -0500 (CDT) (envelope-from dweimer@dweimer.net) X-Authentication-Warning: webmail.dweimer.local: www set sender to dweimer@dweimer.net using -f To: Mike Tancsa Subject: Re: complete clone/restore from a ZFS-based system replication stream MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2016 11:10:58 -0500 From: "Dean E. Weimer" Cc: Victor Sudakov , freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: <78faa2e2-0e44-27ef-eaf0-0f0fc358cc09@sentex.net> References: <20160926154720.GA75556@admin.sibptus.transneft.ru> <688eec35-bc7b-ae05-b765-106933b522d1@sentex.net> <20160927085322.GA96393@admin.sibptus.transneft.ru> <78faa2e2-0e44-27ef-eaf0-0f0fc358cc09@sentex.net> Message-ID: <01a14cd5b6d92250da5affd41b02be7b@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.2.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 16:11:07 -0000 On 2016-09-27 10:53 am, Mike Tancsa wrote: > On 9/27/2016 4:53 AM, Victor Sudakov wrote: >> >> 1. When you boot from this pool later on a restored system, don't the >> "-o altroot=/mnt2 -O canmount=off" options prevent it from >> working normally? I gather that "altroot" is not persistent across >> reboots, but "canmount" probably is. > > Its been a while, but when you do the zfs recv, I am guessing the > properties are restored with it ? > >> >> 2. If you wanted to check "zfs recv" without actually restoring it, >> what what you do? I keep getting the "cannot receive incremental >> stream" error: > > Not sure. When you did this, perhaps you are restoring from an > incremental send as opposed to a full send ? > > eg > > zfs snapshot -r zroot@backup > zfs send -R zroot@backup > > /nfs-mount-on-backup-server/zroot-full-snap.zfs > > > > ---Mike I believe you should be using a -p on the zfs send comand to have it send properties, otherwise you need to first create the dataset with the properties and use zfs receive -F to restore the dataset over the existing dataset which will then inherit those properties. -- Thanks, Dean E. Weimer http://www.dweimer.net/