Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zpool must be manually imported after update #61

Closed
foafron opened this issue Jun 9, 2016 · 12 comments

Comments

Projects
None yet
7 participants
@foafron
Copy link

commented Jun 9, 2016

After updating to Linux kernel 4.6.1-2 and zfs-linux-git version 0.6.5_r304_gf74b821_4.6.1_2-1 I have to manually issue 'zpool import ' on each reboot in order to have access to the zpool.

@foafron foafron changed the title zpool must be manually imported after upgrade zpool must be manually imported after update Jun 9, 2016

@geigi

This comment has been minimized.

Copy link

commented Jun 9, 2016

I have the same issue. Manual import is necessary after each boot, setting the cache file again didn't fix the issue. After a downgrade to the older kernel and zfs packages the auto import worked again.

@johnramsden

This comment has been minimized.

Copy link

commented Jun 9, 2016

I'm having a similar problem, any of my datasets that are manage by zfs are not automatically imported on boot. Before the update everything was working fine.

@demizer demizer added the C-bug label Jun 11, 2016

@demizer demizer self-assigned this Jun 11, 2016

@demizer

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2016

Work is in progress to setup a regression test for this. Thanks for reporting.

@johnramsden

This comment has been minimized.

Copy link

commented Jun 11, 2016

I'm not sure if this is helpful at all but switching to zfs-linux has removed the problem of the datasets not being automatically mounted, so it seems to be a bug that is present in the git version but not the zfs-linux release.

@foafron

This comment has been minimized.

Copy link
Author

commented Jun 16, 2016

Hello,
I got my zpools to mount automatically after looking on the zfsonlinux github pages. Specifically, the commit on this page -> zfsonlinux/zfs@92547bc

The file that caught my eye was /etc/systemd/system/50-zfs.preset.in file because currently on my system I don't have a 50-zfs.preset file. Once I enable/disabled the various systems listed the to match the contents of that file, things started mounting automatically again.

I hope this is helpful.

Thanks for all your hard work demizer!

@storrgie

This comment has been minimized.

Copy link

commented Jun 24, 2016

@foafron could you elaborate a bit further? 'various systems listed' doesn't help me out much.

Also, are you using dm-crypt by chance?

@foafron

This comment has been minimized.

Copy link
Author

commented Jun 24, 2016

@storrgie Sorry, that was a little bit of a typo. I was referring to enabling or disabling the various systemd services related to zfs according to what the 50-zfs.preset file has them set to.

No, I'm not using dm-crypt.

@storrgie

This comment has been minimized.

Copy link

commented Jun 24, 2016

For me, all I had to do was systemctl enable zfs.target. I am using dm-cryypt as well.

@foafron

This comment has been minimized.

Copy link
Author

commented Jun 24, 2016

I guess I do have 50-zfs.preset on my local system. @storrgie that is what used to work for me as well until this release. It is kind of like my system did not use the preset file to make sure that the other services were properly enabled and disabled.

@dmp1ce

This comment has been minimized.

Copy link

commented Jul 26, 2016

I had to set my cachefile and enable zfs-import-cache and zfs-mount in order for my pool to be mounted at boot.

Here is my post to try and help others with similar problem on the BBS. https://bbs.archlinux.org/viewtopic.php?pid=1643619#p1643619

@demizer

This comment has been minimized.

Copy link
Contributor

commented Sep 13, 2016

0.6.5.8 may have improved handling in systemd for this. Let me know otherwise.

@z3ntu

This comment has been minimized.

Copy link

commented Oct 28, 2016

I had the same problem until I enabled all the services.

@foafron foafron closed this Jun 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.