-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Centos 7 + 0.6.3 does not automatically import zpools #2755
Comments
Likely fixed by #2766 if Dracut is used. |
Make use of Dracut's ability to restore the initramfs on shutdown and pivot to it, allowing for a clean unmount and export of the ZFS root. No need to force-import on every reboot anymore. Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#2195 Issue openzfs#2476 Issue openzfs#2498 Issue openzfs#2556 Issue openzfs#2563 Issue openzfs#2575 Issue openzfs#2600 Issue openzfs#2755 Issue openzfs#2766
I often have problems with a missing /etc/hostid file either on the system or in the initrd or even both. |
@maci0 As of 0.6.3 a |
Except if the spl_hostid kernel module parameter isn't working (as I've |
@behlendorf I remember not having an /etc/hostid and also no spl_hostid kernel parameter set. @behlendorf is it hostid for legacy reasons ? on most modern linux systems there is /etc/machine-id |
so, does this mean I should wait until 0.6.4 is released? |
@rhagu do you have /etc/hostid on your system ? im running RHEL7 fine now with 0.6.3 after making sure these files exist and are identical |
@maci0 |
@rhagu: |
[root@localhost ~]# zcat < /initrd.img | cpio -tv | grep hostid |
As I said earlier there is |
ah, ok, it shows no entry: [root@localhost ~]# lsinitrd | grep hostid |
|
@FransUrbo it does actually seem to find one, it just cant grep anything with the string hostid |
This is certainly not true for CentOS 7. |
Make use of Dracut's ability to restore the initramfs on shutdown and pivot to it, allowing for a clean unmount and export of the ZFS root. No need to force-import on every reboot anymore. Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#2195 Issue openzfs#2476 Issue openzfs#2498 Issue openzfs#2556 Issue openzfs#2563 Issue openzfs#2575 Issue openzfs#2600 Issue openzfs#2755 Issue openzfs#2766
Closing as stale. |
Hi,
I exported a zpool on ubuntu 12.04 (0.6.2) and imported it on Centos 7 (0.6.3). After a reboot the pool is not automatically imported. The import needs to be done manually with import -f zpoolname and works without a problem.
The text was updated successfully, but these errors were encountered: