From owner-freebsd-fs@FreeBSD.ORG Thu Jan 16 07:00:54 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0DFB450 for ; Thu, 16 Jan 2014 07:00:53 +0000 (UTC) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8479B14AF for ; Thu, 16 Jan 2014 07:00:53 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id q58so2782356wes.35 for ; Wed, 15 Jan 2014 23:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:from:subject:date:to; bh=JWNHZcgxiKdVd6xB1tlTJE+ZEj3jWgzXW/Z4dZYgLyQ=; b=cC2YgrKAtNxirFliD3FAHV4iLv6uMlpWFdIqBd1C9jaHHh1it/RF/RaS97Uc66OtaQ kPJXHgy6hEWC974AIhHpD6KSdTDLWPOGtNqKaTF5RNuMDir2IK0HiWHmYqnie6THFu7E BHqbgGUKywgkwz9U1H8LYcnrFLh0M09EGVt8dHjpkHEJpsLBiiPYIYMJO63JBuC+avq+ xuiI/KLF53GbPQ5VQD74tE1vlxUXWhwVq1VBZ2ECOhLJWwD4T062PLho9HF0qLDjPPGU VEiObWKEVoGD3umDqDxRf6G78wGkCl6VZ+XuO+8ypBrNVTJlWYFFHYSggNtdVvdttzWg Q+PQ== X-Received: by 10.194.241.228 with SMTP id wl4mr6793966wjc.2.1389855651988; Wed, 15 Jan 2014 23:00:51 -0800 (PST) Received: from [192.168.0.10] (alf94-11-82-247-6-183.fbx.proxad.net. [82.247.6.183]) by mx.google.com with ESMTPSA id f7sm5197895wjb.7.2014.01.15.23.00.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 23:00:50 -0800 (PST) References: <52D71421.3030103@delphij.net> In-Reply-To: <52D71421.3030103@delphij.net> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: X-Mailer: iPhone Mail (9A405) From: Gomes do Vale Victor Subject: Re: zpool import taking weeks ... Date: Thu, 16 Jan 2014 08:00:47 +0100 To: "d@delphij.net" Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 07:00:54 -0000 Hi, Le 16 janv. 2014 =C3=A0 00:05, Xin Li a =C3=A9crit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > Hi, >=20 >=20 > TL;DR version: no, you have to wait. However there is an alternative > if you have enough resources (hardware, etc.) to do it. >=20 > Longer version: >=20 > You would have a way better situation with newer version of FreeBSD > *and* have upgraded your pool, but for now you may have to wait. > Maxing out your RAM may be helpful (but requires a reboot, which means > you have to start over). >=20 > There is another option, assuming you have another system and enough > disks, though. What you can do is basically boot the system without > ZFS enabled, move /boot/zfs/zpool.cache to somewhere else, then load > the kernel module, then: >=20 > zdb -u -e tank ('tank' is your zpool name) >=20 > zdb -hh -e tank >=20 > This would show a history of your pool with a txg number associated. > Take a guess (yes, a guess), then try: >=20 > zdb -u -e -t tank >=20 > If the output is sane, try: >=20 > zpool import -o readonly=3Don -f -R /mnt -F -T tank >=20 > This would import your pool read-only at that txg number. Now you > should be able to copy off data from the pool (maybe via network, etc). >=20 > Newer version of ZFS does have asynchronous destroy feature, faster > destroy (can be 100x faster than previous ZFS version), as well as > improvements to limit delete transaction to take too much of I/O > bandwidth, but you can only benefit from them when you have upgraded > the pool. >=20 Thanks a lot for this info ! I have read about the "-T" option on import wit= h tgx but it was with ZFS on Linux ... Don't knew it is available on newer i= mplementation under FreeBSD. Will so wait that it ends correctly and will th= ink on upgrading on the system (the rootfs is ZFS also ...) Thanks Cheers -- Ulysse31 > Cheers, > - --=20 > Xin LI https://www.delphij.net/ > FreeBSD - The Power to Serve! Live free or die > -----BEGIN PGP SIGNATURE----- >=20 > iQIcBAEBCgAGBQJS1xQhAAoJEJW2GBstM+nsXkQP/2ezsHdR+ave3OpxZj3V94Bw > s2nWrp3JWJKm5g4VqtpdUyBDADcmPT4ULJENNt3BNCNBVexZ9bAsbGjemVcNRoHP > +IuyCEgCAPuZ/yUrwJQHhc/iD/bq08yFv7zp7HKf0/pKNJvHb3PIW8MVdpAXO8Sa > 9GSTwxk09K9d3gpP9jBTN/qvWLbjPq1vKHtJj5aJ798WVDQL9SWpJaEqt+z4rGZI > 9xy5nHYpYfzFQ+zyOpGksnfWezddghMqUfxd4KIqqiUrZSDnMH/qqF/8TAJXHk37 > SHjy+Kjuicx6XfYxxdoXcQwPL3thq7cuuWgqWVxehxY94hd43EoORMPlysucVRQe > PkXuIZYF+gkHERVg7lrTXrTsGxYdzilM7QYl43+4RaMBSRZM/6XBOoN17oZVlVjs > s2SGeRK0SD/3ldYxdM5fdyMuU5PgPT2NREIiNUjN+RNfhw/zqimvbsoBhuD0uHnY > FWgSlTT9j2oTx1ZD86nTvV6r7ikBDOOOlZoCtOy3tWkpgXHJz5NgH3yJLtZdc248 > 3m85rMeZ3ohqB5DGc7vSkweaYW4692LH8DJY0RjZbBG0W/g6zAsklOHnvI/mo/kF > St7mLp9U4JTow+02A4WSRmbPFMxxhPh1ekwDB1rcoOEBZJrPt/ki4cfwVcaZ0DxO > yB/XzKYGUz7ks2r9HcPx > =3D83LS > -----END PGP SIGNATURE-----