Summary: | sys-fs/zfs-fuse-0.5.0 does not import/enable zpool at boot | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan G. Weichinger <lists> |
Component: | New packages | Assignee: | Christian Parpart (RETIRED) <trapni> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hind, martn, ssuominen, x |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | 0001-fix-for-gentoo-bug-260362.patch |
Description
Stefan G. Weichinger
2009-02-26 11:02:39 UTC
Well, if you outer volumes are up and mounted, at the time the inner volumes have to access them, it can’t be the problem, can it? Maybe you can check when the exporting command actually happens, by hooking into something, or easier: By making it log the exporting, and then look at what happened at the time it got logged. Should make it possible to pin down the place/code where it happens, and look into the script that is controlling that part. (In reply to comment #1) > Well, if you outer volumes are up and mounted, at the time the inner volumes > have to access them, it can’t be the problem, can it? You mean, zfs-fuse is started too early, before the LVM-volumes are available? Shouldn't the ebuild take care of this? I have zfs-fuse in runlevel boot, OK ? I got the same problem and solved it by creating the directory /etc/zfs, and then recreating the zpool. My understanding is: when /etc/zfs does not exist, "zpool create" cannot create the cachefile /etc/zfs/zpool.cache. It silently ignores the error and configures the pool as "temporary" (i.e. cachefile=none). Temporary pools don't get imported at boot. Would it be a solution to have the ebuild create /etc/zfs ? (In reply to comment #4) > I got the same problem and solved it by creating the directory /etc/zfs, and > then recreating the zpool. > > My understanding is: when /etc/zfs does not exist, "zpool create" cannot create > the cachefile /etc/zfs/zpool.cache. It silently ignores the error and > configures the pool as "temporary" (i.e. cachefile=none). Temporary pools don't > get imported at boot. > > Would it be a solution to have the ebuild create /etc/zfs ? > I can confirm creating the directory /etc/zfs indeed fixes the problem. It is not mandatory to re-create the pool. Just do: zpool export POOL zpool import POOL and /etc/zfs/zpool.cache gets generated. Maybe it's worth mentioning, I added "after fuse" in depend-class in the init-script /etc/init.d/zfs-fuse. It's a matter of preference of course how you want to load fuse. zfs-fuse depends on the fuse module, hence my suggestion. confirmation: created /etc/zfs as root, created new zfs-fuse-pool, it was up and mounted again after reboot. Why not let the ebuild create that dir? Seems logical to me ;) thx, Stefan Created attachment 208043 [details]
0001-fix-for-gentoo-bug-260362.patch
patch adds directory, and fixes fuse init script dependency.
Should be fixed now, with 0.6.9 |