Re: [developer] invalid or corrupt cache file contents: invalid or missing cache file

2018-11-14 Thread Erik via openzfs-developer
Well, just rebooted the machine, and it cleared up.  Whether it was because of 
what I did, I can't be certain, but since it cleared up, I'm happy.

If this didn't clear up, I would have taken your steps, and thanks for the 
pointer.  Much appreciated.
--
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Tb21f7ae74f9f2635-Mafef34cd28e5c1f93eb84d9b
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription


Re: [developer] invalid or corrupt cache file contents: invalid or missing cache file

2018-11-14 Thread Rainforest Lee via openzfs-developer
Hi,
I did a test and looks like result ok. steps:
1 run export command before restart/shutdown
   sudo zpool export -af
2 run import command during startup
   sudo zpool -c /etc/zfs/zpool.cache
please try above in your environments.

BTW
1. I though the issues should be a bug, could you submit it to zfs github?
2. do you know which linux scripts file should be modified to add above 2
command?

On Tue, 6 Nov 2018 at 18:19, Erik via openzfs-developer <
developer@lists.open-zfs.org> wrote:

> Hi, thanks for posting.  At least I'm not alone.
>
> I'm running Gentoo, and the boot RC scripts do a zpool import, and the
> matching shutdown script does a zpool export, so you'd think that zfs.cache
> file would always be OK.  But no.
>
> So the next thing that I've got planned is to:
>
> zpool set cachefile=none 
> mv /etc/zfs/zfs.cache /etc/zfs/zfs.cache.bad
> scp /etc/zfs/zfs.cache (from another machine working fine)
> zpool set cachefile=/etc/zfs/zpool.cache 
> zpool export
>
> Hopefully the last step will flush the cache to the zfs.cache file before
> system reboot, and it'll clear this niggling issue up.
> I'll post back when I have an outage window to try this.
> *openzfs * / openzfs-developer / see
> discussions  + participants
>  + delivery options
>  Permalink
> 
>

--
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Tb21f7ae74f9f2635-Md123fb0ef1a894dcf3f9fd23
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription


Re: [developer] invalid or corrupt cache file contents: invalid or missing cache file

2018-11-06 Thread Erik via openzfs-developer
Hi, thanks for posting.  At least I'm not alone.

I'm running Gentoo, and the boot RC scripts do a zpool import, and the matching 
shutdown script does a zpool export, so you'd think that zfs.cache file would 
always be OK.  But no.

So the next thing that I've got planned is to:

zpool set cachefile=none 
mv /etc/zfs/zfs.cache /etc/zfs/zfs.cache.bad
scp /etc/zfs/zfs.cache (from another machine working fine)
zpool set cachefile=/etc/zfs/zpool.cache 
zpool export

Hopefully the last step will flush the cache to the zfs.cache file before 
system reboot, and it'll clear this niggling issue up.
I'll post back when I have an outage window to try this.
--
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Tb21f7ae74f9f2635-M534605a8e2a5b4c1184e66c8
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription


Re: [developer] invalid or corrupt cache file contents: invalid or missing cache file

2018-11-05 Thread Rainforest Lee via openzfs-developer
yes, I met the same issues everytime I start computer

sudo systemctl restart zfs-import-cache.service
above command to check the service status
use below command to import zfs pool and it should be make zfs pool work.

sudo zpool import 

On Sun, 28 Oct 2018 at 14:44, eohrnberger via openzfs-developer <
developer@lists.open-zfs.org> wrote:

> Hi all.  New to the list, first submission.
>
> I've been using zfs on linux for a number of years now, and have been very
> much satisfied as to the performance and reliability.
>
> Earlier today we had a power outage, and the Linux PC (come poor man's
> NAS) went down hard.
>
> When the power came back up, it booted OK, but when the zfs import ran as
> part of the start up scripts, it came back with:
>
> "invalid or corrupt cache file contents: invalid or missing cache file"
>
> and both zpools on that host were not able to be imported.
>
> executing a 'zpool import -m " did the trick, and all the data
> is safe, thank goodness.  But even after shutting down cleanly and
> rebooting, the same error persists.
>
> Hmm.
>
> I performed the following:
> zpool set cachefile=none 
> mv /etc/zfs/zfs.cache /etc/zfs/zfs.cache.bad
> zpool set cachefile=/etc/zfs/zpool.cache 
> reboot
>
> Also, in the system message log you can see:
> zed: zfs_unavail_pool: examining '' (state 7)
>
> But that didn't seem to clear the error either.  Are there any other
> things that I should try to eliminate this error?
>
> I've Googled around quite a bit, but haven't found anything that appears
> to work to correct this issue.
>
> Hint, pointers and references greatly appreciated.  Thanks in advance.
> *openzfs * / openzfs-developer / see
> discussions  + participants
>  + delivery options
>  Permalink
> 
>

--
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Tb21f7ae74f9f2635-M81c30871b4e460a247f5a247
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription