meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:fs:zfs:issues:import [2024/11/01 10:30] – created niziaklinux:fs:zfs:issues:import [2024/11/29 10:47] (current) niziak
Line 1: Line 1:
 ====== pool not imported after boot ====== ====== pool not imported after boot ======
 +
 +<code bash>
 +journalctl -b | grep zfs
 +
 +Created slice system-zfs\x2dimport.slice - Slice /system/zfs-import.
 +systemd-udev-settle.service is deprecated. Please fix zfs-import-scan.service, zfs-import-cache.service not to pull it in.
 +Starting zfs-import@backup.service - Import ZFS pool backup...
 +Finished zfs-import@backup.service - Import ZFS pool backup.
 +Starting zfs-import-cache.service - Import ZFS pools by cache file...
 +zfs-import-scan.service - Import ZFS pools by device scanning was skipped because of an unmet condition check (ConditionFileNotEmpty=!/etc/zfs/zpool.cache).
 +Finished zfs-import-cache.service - Import ZFS pools by cache file.
 +Reached target zfs-import.target - ZFS pool import target.
 +Starting zfs-mount.service - Mount ZFS filesystems...
 +Starting zfs-volume-wait.service - Wait for ZFS Volume (zvol) links in /dev...
 +Finished zfs-volume-wait.service - Wait for ZFS Volume (zvol) links in /dev.
 +Reached target zfs-volumes.target - ZFS volumes are ready.
 +Finished zfs-mount.service - Mount ZFS filesystems.
 +</code>
 +
 +Solution:
 +<code bash>
 +systemctl enable zfs-import@backup2
 +</code>
 +
 +===== Not working solution 1 =====
 +
 +
 +Add ''rootdelay=20'' to ''/etc/default/grub''
 +and regenerate grub config:
 +<code bash>
 +proxmox-boot-tool refresh
 +</code>
 +
 +===== not working solution 2 =====
 +
  
 Force pools to use ''/etc/zfs/zpool.cache'' file: Force pools to use ''/etc/zfs/zpool.cache'' file:
 <code bash> <code bash>
 +zpool import backup2
 zpool set cachefile=/etc/zfs/zpool.cache backup zpool set cachefile=/etc/zfs/zpool.cache backup
 zpool set cachefile=/etc/zfs/zpool.cache backup2 zpool set cachefile=/etc/zfs/zpool.cache backup2