Date: Thu, 16 Jan 2014 08:00:47 +0100 From: Gomes do Vale Victor <ulysse31@gmail.com> To: "d@delphij.net" <d@delphij.net> Cc: FreeBSD Filesystems <freebsd-fs@freebsd.org> Subject: Re: zpool import taking weeks ... Message-ID: <D9EA3D38-07DD-49D7-AFCE-BAA362398916@gmail.com> In-Reply-To: <52D71421.3030103@delphij.net> References: <CAFSDvD2hLNN_CupeVKu02bLLUS1EFuTdZZw5Z9xoiNFZ0p4_fg@mail.gmail.com> <CAOjFWZ5dgw0nZzWFhWOCS-HSseBC=uavc=aQM%2Byht-R5a4Xfow@mail.gmail.com> <CAB7-odmXb%2B0KvEh6vDPstt89-O=ccL81MAtX2hRLWk%2BRcVZzUA@mail.gmail.com> <CAOjFWZ6r2LYWAw_eB4f9AEoy_w313rRy44t9uBdNMK2MJTmQwg@mail.gmail.com> <CAFSDvD25ceAZT_WBj9yFfh13KrVeqVtcNHWB85B3rNzk1b_Ang@mail.gmail.com> <52D71421.3030103@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Le 16 janv. 2014 =C3=A0 00:05, Xin Li <delphij@delphij.net> 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 <txg number> tank >=20 > If the output is sane, try: >=20 > zpool import -o readonly=3Don -f -R /mnt -F -T <txg number> 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 <delphij@delphij.net> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9EA3D38-07DD-49D7-AFCE-BAA362398916>