Score:0

Ubuntu 20.04 Zpool fails to import at startup

in flag
  1. I have read through dozens of forums and blogs already.

  2. My server was acting up so I backuped most things and went with a fresh install. I wanted to migrate most of my apps to docker anyways.

  3. All I am trying to get is my zpool to mount at boot but it keeps failing at "zpool-import-cache" service. I erased the cache file made a new one. Deleted the cache file and try "zpool-import-scan" which also failed.

  4. This is the old pool from the only thing new is the OS install.

  5. I can manually add with "zpool import -a| zpool import "pool"" I can also restart the service and get it to import the pool with "systemctl restart zpool-import-cache". So zpool-import-cache.service only fails on start up not active.

  6. None of this makes sense. I reboot and the enter the terminal immediately and the service restarts no problem.

  7. The error in the system status comes back "cannot import "my pool" no such data/pool exist", but then I am able to import from terminal

None of that makes sense to me.

The zpool consists of 2 vdevs of 12 drives each in raidz2.

1 drive is dead and waiting for a back up but it was booting every time and loading on the old OS.

Artur Meinild avatar
vn flag
There is very little to go on here. Please provide some output from the relevant logs and services, e.g. `systemctl status zfs-import-cache.service` and `systemctl status zfs-mount.service`. Also, this is not an emergency hotline, if you need professional help in a hurry, consider a professional service.
Brandon C avatar
in flag
The longs don't offer more than what I posted. That is what is frustrating. Just Pool doesn't exist. But it does when I manually enter it.
Brandon C avatar
in flag
I added "ExecStartPre=- /sbin/modprobe zfs" and ExecStartPre=/usr/bin/sleep 10" to the zfs-import-cache/service file and the pool now imports. Question is why isn't the import file waiting longer? My set up is considerably small that major servers.
Artur Meinild avatar
vn flag
Please, add your solution as an answer to this question. This is perfectly acceptable, and actually encouraged.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.