I had to do a reboot of a new proxmox server this morning and got dropped into the emergency shell.
I'm seeing the following.
zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor pres
Active: failed (Result: exit-code) since Thu 2021-04-22 12:01:59 PDT; 56min ago
Docs: man:zpool(8)
Process: 1362 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN (code=exited
Main PID: 1362 (code=exited, status=1/FAILURE)
Apr 22 12:01:59 pve systemd[1]: Starting Import ZFS pools by cache file...
Apr 22 12:01:59 pve zpool[1362]: invalid or corrupt cache file contents: invalid or m
Apr 22 12:01:59 pve systemd[1]: zfs-import-cache.service: Main process exited, code=e
Apr 22 12:01:59 pve systemd[1]: zfs-import-cache.service: Failed with result 'exit-co
Apr 22 12:01:59 pve systemd[1]: Failed to start Import ZFS pools by cache file.
If I exit from the shell and continue startup then everything seems to be working fine.
After bootup if I go to the shell and perform the following...
root@pve:~# zpool set cachefile=/etc/zfs/zpool.cache local-fourtibzfs
root@pve:~# systemctl start zfs-import-cache.service
root@pve:~# systemctl status zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor pres
Active: active (exited) since Thu 2021-04-22 13:01:56 PDT; 6s ago
Docs: man:zpool(8)
Process: 18340 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN (code=exite
Main PID: 18340 (code=exited, status=0/SUCCESS)
Apr 22 13:01:56 pve systemd[1]: Starting Import ZFS pools by cache file...
Apr 22 13:01:56 pve zpool[18340]: no pools available to import
Apr 22 13:01:56 pve systemd[1]: Started Import ZFS pools by cache file.
The weird thing (to me) is after I fix the cache then reboot I get a different error for the zpool itself.
zfs-import@local\x2dfourtibzfs.service - Import ZFS pool local\x2dfourtibzfs
Loaded: loaded (/lib/systemd/system/zfs-import@.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Thu 2021-04-22 13:08:29 PDT; 1min 12s ago
Docs: man:zpool(8)
Process: 2001 ExecStart=/sbin/zpool import -N -d /dev/disk/by-id -o cachefile=none
Main PID: 2001 (code=exited, status=1/FAILURE)
Apr 22 13:08:29 pve systemd[1]: Starting Import ZFS pool local\x2dfourtibzfs...
Apr 22 13:08:29 pve zpool[2001]: cannot import 'local-fourtibzfs': a pool with that n
Apr 22 13:08:29 pve zpool[2001]: use the form 'zpool import <pool | id> <newpool>' to
Apr 22 13:08:29 pve systemd[1]: zfs-import@local\x2dfourtibzfs.service: Main process
Apr 22 13:08:29 pve systemd[1]: zfs-import@local\x2dfourtibzfs.service: Failed with r
Apr 22 13:08:29 pve systemd[1]: Failed to start Import ZFS pool local\x2dfourtibzfs.
Again if I exit and boot as usual the problem doesn't appear to affect proxmox usability.
I just don't know how to fix this one. Any suggestions would be appreciated.
TL;DR I rebooted after a power outage today and my proxmox keeps alternating between zfs cache and pool errors when I boot.
Thank you!
I'm seeing the following.
zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor pres
Active: failed (Result: exit-code) since Thu 2021-04-22 12:01:59 PDT; 56min ago
Docs: man:zpool(8)
Process: 1362 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN (code=exited
Main PID: 1362 (code=exited, status=1/FAILURE)
Apr 22 12:01:59 pve systemd[1]: Starting Import ZFS pools by cache file...
Apr 22 12:01:59 pve zpool[1362]: invalid or corrupt cache file contents: invalid or m
Apr 22 12:01:59 pve systemd[1]: zfs-import-cache.service: Main process exited, code=e
Apr 22 12:01:59 pve systemd[1]: zfs-import-cache.service: Failed with result 'exit-co
Apr 22 12:01:59 pve systemd[1]: Failed to start Import ZFS pools by cache file.
If I exit from the shell and continue startup then everything seems to be working fine.
After bootup if I go to the shell and perform the following...
root@pve:~# zpool set cachefile=/etc/zfs/zpool.cache local-fourtibzfs
root@pve:~# systemctl start zfs-import-cache.service
root@pve:~# systemctl status zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor pres
Active: active (exited) since Thu 2021-04-22 13:01:56 PDT; 6s ago
Docs: man:zpool(8)
Process: 18340 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN (code=exite
Main PID: 18340 (code=exited, status=0/SUCCESS)
Apr 22 13:01:56 pve systemd[1]: Starting Import ZFS pools by cache file...
Apr 22 13:01:56 pve zpool[18340]: no pools available to import
Apr 22 13:01:56 pve systemd[1]: Started Import ZFS pools by cache file.
The weird thing (to me) is after I fix the cache then reboot I get a different error for the zpool itself.
zfs-import@local\x2dfourtibzfs.service - Import ZFS pool local\x2dfourtibzfs
Loaded: loaded (/lib/systemd/system/zfs-import@.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Thu 2021-04-22 13:08:29 PDT; 1min 12s ago
Docs: man:zpool(8)
Process: 2001 ExecStart=/sbin/zpool import -N -d /dev/disk/by-id -o cachefile=none
Main PID: 2001 (code=exited, status=1/FAILURE)
Apr 22 13:08:29 pve systemd[1]: Starting Import ZFS pool local\x2dfourtibzfs...
Apr 22 13:08:29 pve zpool[2001]: cannot import 'local-fourtibzfs': a pool with that n
Apr 22 13:08:29 pve zpool[2001]: use the form 'zpool import <pool | id> <newpool>' to
Apr 22 13:08:29 pve systemd[1]: zfs-import@local\x2dfourtibzfs.service: Main process
Apr 22 13:08:29 pve systemd[1]: zfs-import@local\x2dfourtibzfs.service: Failed with r
Apr 22 13:08:29 pve systemd[1]: Failed to start Import ZFS pool local\x2dfourtibzfs.
Again if I exit and boot as usual the problem doesn't appear to affect proxmox usability.
I just don't know how to fix this one. Any suggestions would be appreciated.
TL;DR I rebooted after a power outage today and my proxmox keeps alternating between zfs cache and pool errors when I boot.
Thank you!