Date: Wed, 15 Jan 2014 15:05:05 -0800 From: Xin Li <delphij@delphij.net> To: Ulysse 31 <ulysse31@gmail.com>, Freddie Cash <fjwcash@gmail.com> Cc: FreeBSD Filesystems <freebsd-fs@freebsd.org> Subject: Re: zpool import taking weeks ... Message-ID: <52D71421.3030103@delphij.net> In-Reply-To: <CAFSDvD25ceAZT_WBj9yFfh13KrVeqVtcNHWB85B3rNzk1b_Ang@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, On 01/15/14 00:29, Ulysse 31 wrote: > Thanks for the answer. > > I was beginning to ... well ... have a little start of panic ^^' > The import still running but no real activity on disks : > sometimes, maybe something like each hour, there is some really > brief led activity on the hdd, but nothing more. one thing that > would be great is to have an overall percentage or just counting of > what is done or what is left ... for now i don't even know if it's > gonna end on the next 5 mins or on the next 5 weeks :s So now since > i have no real activity on the actual zpool import (the last import > started a week ago, it do not have go out of swap since i added lot > of swap (260G HDD swap)), should i just let it run, or make a > reboot and start over ? Also once imported, and since i don't care > about the data actually on the incriminated dataset (the one that > crashed with the recv/rollback), I was planning to simply delete > that dataset and make a new full sync, what do you think about it > ? Thanks again for your help. TL;DR version: no, you have to wait. However there is an alternative if you have enough resources (hardware, etc.) to do it. Longer version: 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). 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: zdb -u -e tank ('tank' is your zpool name) zdb -hh -e tank This would show a history of your pool with a txg number associated. Take a guess (yes, a guess), then try: zdb -u -e -t <txg number> tank If the output is sane, try: zpool import -o readonly=on -f -R /mnt -F -T <txg number> tank 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). 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. Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- 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 =83LS -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52D71421.3030103>