From owner-freebsd-questions@freebsd.org Tue Mar 1 12:02:04 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 6BCF7ABF9CE for ; Tue, 1 Mar 2016 12:02:04 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1FD51DFC for ; Tue, 1 Mar 2016 12:02:03 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from moby.local ([79.107.48.254]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M6jIK-1ZeN9J2ZDo-00wW3v for ; Tue, 01 Mar 2016 13:02:01 +0100 From: Nikos Vassiliadis Subject: verifying two zfs filesystem hierarchies To: "freebsd-questions@freebsd.org Questions" Message-ID: <56D584A9.9020305@gmx.com> Date: Tue, 1 Mar 2016 14:01:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bncy1vS5u8i7z9hmPWTP261536p7K3zyJh13UgIY7hSUMvQQ1+h wLd3d6vt/RrJlSB2QibVMUvBzBvE4V/qOF1uT2lMBFycJCwgnkjXPHi5OWCmfg8Vo6OvTaC NEqTsvw/rwdnb8zqNTi/vUuGLmiFPxglHHCq/1yhYomQILuRt0JoGOW83q8D3b5l8o4HaIW VD023xLRXjo1nhNM0b50w== X-UI-Out-Filterresults: notjunk:1;V01:K0:mipkwv01TBc=:gGes3pBYEcCR9MS7/m0+Yg gr3pI5dNON+Kn8zP6tzBVQp9jVmYd+7/vd+iItIZoEDJbk03L83nrGxyF8nhF3a6excIMdUfj oHNNCLWYdx0Azc7GdZ4xSw4zwbosg74I1xhSnMky/Pwt/Y16eHBcjSVcvuy/i0if6A1Cn66TY 6Tjgf3gex4f1kQeOLhOGxnqUhUuMBsY4/1R+PJl7Fu7ZKySZqcwzt1Zpn8L5EbCJDo5EUwW0h mL+6D5LqrhHA0LuyKoYXdw3JK2GV101pzkYpnzJHzU+IsHAxrUHKmOHL9aObwjCfuws9/qShK e07PqzZWXegeX2JOTSTlL+OdTrXMieNHIr0fKKvm06BlZ7aPxpD0ynJDlirlBGEaUIse8dT1r fmu3/PQg/t/HDV6NkMs948kSscOBLtxJotaEQuFJYJJhCFb71WI18lcqIQy1XPmlIauaqALtz YcBoL0mlVBvvbTL7G5kibeWSWt9wCRkYisRh5xcibNn4nFBxtxrquI8hFBFoLVv3OrJvywrft vqkWMKMUc38EeaSl/M5Js2j4XeT2xP7vSnTV+NAd0+tFni7D4upXenR7EyNY7h5PyvN8TzZCT JM/bDvfY8QGgADGgXChDj1mjqLgh1yQ+CWlLEapMOD6glSlSbkW83EfEmbqV/CPBbZaSM4Ylu eW2LCejwv05ca9GnzDs1ZN0xYskg5UZyVvvff7J5MmA2ypn0ub8TSwoeWIUhY7zjb5tGcu0EV 6q4Xajb9u6B4Byy3fldB7CJs32YxXX+vdHIHHApIWGfE0SUUx11M+btAU7fFJVaXsqHG7Egbl rArXmnv X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 12:02:04 -0000 Hi, I would like to verify that my pool is correctly stored on a disk and haven't found a way to do so. I believe I can assume that it is OK since all snapshot names appear identical to the original pool. I was looking for something like "zfs send -R blah | sha256" and "zfs send -R USBDISKCOPY/blah | sha256" but this doesn't work for obvious reasons. Is there a tool that could do such a thing? My two candidates are: 1) zpool scrub USBDISKCOPY (will verify the pool). 2) zfs send -R USBDISKCOPY/blah (will send the filesystem hierarchy effectively reading and verifying everything. Since scrubbing is slower than sending I think of using "zfs send". Thoughts? Any other ways? Thanks in advance! Nikos