From owner-freebsd-questions@freebsd.org Sun Oct 16 12:45:44 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 B4629C11A9A for ; Sun, 16 Oct 2016 12:45:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B15915C1 for ; Sun, 16 Oct 2016 12:45:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 9D9DE41F1 for ; Sun, 16 Oct 2016 12:45:33 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/9D9DE41F1; dkim=none; dkim-atps=neutral Subject: Re: Help finding out find why a ZFS pool vanished. To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: <0b913867-fd96-521d-7981-da7485fd2230@FreeBSD.org> Date: Sun, 16 Oct 2016 13:45:27 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CFnm6pRafGjcfNFuUn4vuagiBt1GddrqS" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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: Sun, 16 Oct 2016 12:45:44 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CFnm6pRafGjcfNFuUn4vuagiBt1GddrqS Content-Type: multipart/mixed; boundary="hJTh4vbD0TFllfuTOUlmpsIJFFJcdIw18"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <0b913867-fd96-521d-7981-da7485fd2230@FreeBSD.org> Subject: Re: Help finding out find why a ZFS pool vanished. References: In-Reply-To: --hJTh4vbD0TFllfuTOUlmpsIJFFJcdIw18 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 16/10/2016 01:56, Greg Marsh wrote: > A couple days ago, when trying to copy my desktop files to my backup > system, I got NFS mount errors. I was quite sore & tired from work (aft= er > 25 years of sysadmining, I'm now doing home renovations), so I went wit= h > the Windows admin response of 'reboot everything', on both my desktop a= nd > server. Then when trying to remount the NFS shares from my FreeBSD syst= em > didn't work, I df'd on my FreeBSD server to find the /storage pool was = not > there. >=20 > I was eventually able to get my storage pool back through 'zpool import= > -af' Have you examined the log from the zpool that mysteriously vanished? # zpool history -il poolname This will record every zfs(8) or zpool(8) command affecting the pool. You should also examine any command histories you have for actions affecting /boot/zfs/zpool.cache -- while the system nowadays will generally be able to find your boot pool without this, it may not be able to find /other/ pools. Lots of recipes for manual intervention with ZFS systems rely on manipulating this file, but they frequently do not warn against /removing/ the working copy before rebooting, something that tends to catch out the tidier amongst us. Cheers, Matthew --hJTh4vbD0TFllfuTOUlmpsIJFFJcdIw18-- --CFnm6pRafGjcfNFuUn4vuagiBt1GddrqS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJYA3ZtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATzLIP/jzfc5Rsgv7mHc3cRaLGr+XI 1M/zewgHAhScUZC3HKehyA0N8Hgo2SjerodU4ZfCfkkr23TVuseaq9dpTtdjgDFT 25jM0Lor7AQna9J0fdMds6Nhy3NnFS3Bq/ICREn3EQXPkrZRPA7YwkdthTfnFgTK 8tcR6EweDGqogvDla3/s/4jAl4TXLAiTQGapWf43vOgcba+5k7DNGkrJcpknIS8M d9zb1/QKvMmwYU+GJ7FRMVtXNYt5Kob2x9ECeev4LBemek+FO2fiKE9IKI/hYHMu xpAp8FWVQx8ImL5lW2BT60ffereZQjo2WDv34214T8V4HqdmwQn5rFX4fmP7uOXP Kk87E9xZ/ZTszjg8RmyRbQrYw1skCQxlebeUB5qOyFDbfT69lZiPJetToa9MmsRQ o4emuCubxCFtk5T0nPT+yrVP2PlvXncHyB9tpJoUcgjlu4JXK74qOdQT6rl9LTN0 T5uJLQBp2NNAU/rueSnzNtDe/eAVE3qoL3S3HlAe5VUKJPqvSauJoFsS0ABAjjeY JjsKmvzZP6fpPTboq++evJZXO+oUQhkKtnaMSqoJ01lG43ycDMdK+XjoZ7zVvzTc VVGLv4sRrbIQWHi+hGnpkrLgYD55HFKsQvhQRhYCQqRwDJfzmfpZ/OZ6PJcwpIqs Gm2BkB8La94sae9L1T+A =x/dL -----END PGP SIGNATURE----- --CFnm6pRafGjcfNFuUn4vuagiBt1GddrqS--