[SOLVED] zfs-import-cache.service failed

Dec 19, 2012
481
14
83
Hallo.
Zufällig habe ich gesehen, dass ein Service "failed" meldet, von dem ich nicht weiß, ob das wichtig ist (ZFS wird benutzt und zpool status meldet keinen Fehler)
Code:
systemctl list-units --state=failed

UNIT                     LOAD   ACTIVE SUB    DESCRIPTION                  
● zfs-import-cache.service loaded failed failed Import ZFS pools by cache file

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Hier nochmal die Ausgabe von zpool status:
Code:
 zpool status
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 8h17m with 0 errors on Sun Sep  8 08:41:52 2019
config:

        NAME                        STATE     READ WRITE CKSUM
        rpool                       ONLINE       0     0     0
          raidz2-0                  ONLINE       0     0     0
            wwn-0x5000cca02c65dd28  ONLINE       0     0     0
            wwn-0x5000cca02c1b7a44  ONLINE       0     0     0
            wwn-0x5000cca02c1b1c10  ONLINE       0     0     0
            wwn-0x5000cca02c0c77d0  ONLINE       0     0     0
        cache
          wwn-0x5002538e0006d0bf    ONLINE       0     0     0

errors: No known data errors
 
Hallo,
was sagen denn
Code:
pvesm status
systemctl status zfs-import-cache.service
?
Gibt es die Datei '/etc/zfs/zpool.cache' und ist sie nicht leer?

Falls all deine Pools da sind und die Datei fehlt oder leer ist, kannst Du mit
Code:
zpool set cachefile=/etc/zfs/zpool.cache <Poolname>
erzwingen, dass der Cache neu generiert wird. Danach solltest du den systemd-Service erfolgreich starten können.
 
  • Like
Reactions: ProXXXX
pvesm status
Hier die Ausgaben:
Code:
Name                       Type     Status           Total            Used       Available        %
rpool                   zfspool     active      3274964992      2335877320       939087671   71.33%

systemctl status zfs-import-cache.service
Code:
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 preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-08-21 12:57:21 CEST; 1 months 10 days ago
     Docs: man:zpool(8)
Main PID: 1240 (code=exited, status=1/FAILURE)
      CPU: 3ms

Aug 21 12:57:21 pve systemd[1]: Starting Import ZFS pools by cache file...
Aug 21 12:57:21 pve zpool[1240]: invalid or corrupt cache file contents: invalid or missing cache file
Aug 21 12:57:21 pve systemd[1]: zfs-import-cache.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 12:57:21 pve systemd[1]: Failed to start Import ZFS pools by cache file.
Aug 21 12:57:21 pve systemd[1]: zfs-import-cache.service: Unit entered failed state.
Aug 21 12:57:21 pve systemd[1]: zfs-import-cache.service: Failed with result 'exit-code'.

Falls all deine Pools da sind und die Datei fehlt oder leer ist
tja ... Pool ist da, würde ich sagen -- aber cache-File offenbar nicht?!
Die Datei ist zwar da aber 0 Byte groß. Die Rechte sind -rw-r--r-- root:root -- sollte aber ok, sein?
Dann versuche ich mal den dritten der Befehle...

Ok -- danach ging es. Der cache wurde offenbar neu angelegt und der Service ließ sich starten.
Super! Danke!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!