Proxmox dropped ZFS pool on restart
· 2 min read
Diagnose
systemctl status zfs-import-cache.service zfs-import-scan.service zfs-import.target zfs-import.service
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Mon 2024-12-23 14:02:13 MST; 21h ago
└─ ConditionFileNotEmpty=/etc/zfs/zpool.cache was not met
Docs: man:zpool(8)
Dec 23 14:02:13 proxmox-2 systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition c>
× zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Mon 2024-12-23 14:02:15 MST; 21h ago
Docs: man:zpool(8)
Process: 740 ExecStart=/sbin/zpool import -aN -d /dev/disk/by-id -o cachefile=none $ZPOOL_IMPORT_OPTS (code=exited, status=1/FAILURE)
Main PID: 740 (code=exited, status=1/FAILURE)
CPU: 20ms
Dec 23 14:02:13 proxmox-2 systemd[1]: Starting zfs-import-scan.service - Import ZFS pools by device scanning...
Dec 23 14:02:15 proxmox-2 zpool[740]: cannot import 'platform-db': no such pool or dataset
Dec 23 14:02:15 proxmox-2 zpool[740]: Destroy and re-create the pool from
Dec 23 14:02:15 proxmox-2 zpool[740]: a backup source.
Dec 23 14:02:15 proxmox-2 systemd[1]: zfs-import-scan.service: Main process exited, code=exited, status=1/FAILURE
Dec 23 14:02:15 proxmox-2 systemd[1]: zfs-import-scan.service: Failed with result 'exit-code'.
Dec 23 14:02:15 proxmox-2 systemd[1]: Failed to start zfs-import-scan.service - Import ZFS pools by device scanning.
● zfs-import.target - ZFS pool import target
Loaded: loaded (/lib/systemd/system/zfs-import.target; enabled; preset: enabled)
Active: active since Mon 2024-12-23 14:02:15 MST; 21h ago
Dec 23 14:02:15 proxmox-2 systemd[1]: Reached target zfs-import.target - ZFS pool import target.
○ zfs-import.service
Loaded: masked (Reason: Unit zfs-import.service is masked.)
Active: inactive (dead)
Key Issues
zfs-import-cache.service Not Starting
:
Cause
: The zpool.cache file is missing (ConditionFileNotEmpty=/etc/zfs/zpool.cache was not met).- The service relies on the zpool.cache file, which is typically generated by ZFS when pools are created or imported.
zfs-import-scan.service Failing: Cause: The pool platform-db cannot be found.
Error
:cannot import 'platform-db': no such pool or dataset zfs-import.service is Masked: The unit is explicitly disabled and cannot start.
Determined that the hard drives need replacing, will have to rebuild my zfs pool.