Can you guys check whether you have a /etc/zfs directory? A certain
version of the zfs-fuse install script was not creating that directory,
and it is what is responsible for "remembering" your pools between
invocations, AFAIK. If you don't have that directory, just create it and
do a zpool export; zpool import and it should be permanent.
and these got me back my pool.
That's all...
P.S.: I'm using version 0.5.0
What does 'zpool status' say?
> I tried it many times, with the same result; the only difference is
> that some times a simple 'zpool import data' (that tooks 3 to 5
> minutes) works fine
Note that 'zpool import' scans all the block devices in /dev.
If you have slow block devices (cdroms, floppies, network block
devices, ...) it's not surprising it takes a while.
However, a 'zpool import' is supposed to be a very rare operation and in
the future it will be much faster (once an updated e2fsprogs with a ZFS
patch in libblkid gets distributed on all major distros, and another
patch is integrated into zfs-fuse).
> , and other times I got the error "cannot import 'data': no such pool
> available", so I had to: 1) stop zfs-fuse 2) remove manually
> /etc/zfs/zpool.cache 3) restart zfs-fuse 4) run 'zpool import data'
> (that equally tooks 3 to 5 minutes)
Is it really necessary to do all that?
If you do 'zpool export data' and 'zpool import data', won't it work as
well?
>
> and these got me back my pool.
The problem you're experiencing may happen if either:
1) Your devices get renumbered when you reboot. You can solve this by
importing your pool with 'zpool import -d /dev/disk/by-id' (this is
recommended anyway). This should also speed up the import operation
quite a bit and should make this problem disappear.
Or 2) Your devices are not available by the time zfs-fuse starts.
There is no easy way to fix this one, besides making sure that this
doesn't happen. The workaround is running zpool export/import.
HTH,
Ricardo
Wow, you got it! :D
Maybe, being USB disks, they are renumbered at reboot. However, now it works perfectly! And the import operation was extremely fast: took only few seconds.
Now I can enjoy the power of ZFS ;)
Thank you a lot guys. Expecially to Ricardo: if we'll ever meet, I'll buy you a beer... or a pizza :D
Goodbye and thanks again!
Ricardo M. Correia wrote:
> The problem you're experiencing may happen if either:
> Or 2) Your devices are not available by the time zfs-fuse starts.
> There is no easy way to fix this one, besides making sure that this
> doesn't happen. The workaround is running zpool export/import.
As I setup my raidz1 on encrypted devices they aren't avaible on
zfs-fuse's start, but after they have been opend I only have to mount my
zfs-pool to get it online, no need to export or import them.
Greeting Ruben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJSlLPA71SGzTeS3ARAiUeAJ4pdZ8meu0MzOqu6Tnxlub1NfI/bwCfW+ZL
/q1tKi8WHOSsjq3xbX3xzXw=
=HOKs
-----END PGP SIGNATURE-----