# ZFS pool

#### ZFS

##### Pool couldn't be mounted

If after a system update the ZFS pool can't be mounted, the issue could be the corrupted ZFS cache.  
To fix that run the following commands:

```bash
# First create a backup
mv /etc/zfs/zpool.cache /etc/zfs/zpool.cache.bkp

# Enable relevant services if they aren't already
systemctl enable zfs-import-scan.service
systemctl enable zfs-import.target
reboot now

# This is optional, you could the pool if you want,
# but after the restart at the end it should be mounted automatically
zfs mount POOLNAME

# Execute this line for every ZFS pool
zpool set cachefile=/etc/zfs/zpool.cache POOLNAME

update-initramfs -u -k all
reboot now
```

Sources:

- [proxmox not mounting zfs correctly at boot](https://forum.proxmox.com/threads/proxmox-not-mounting-zfs-correctly-at-boot.65724/post-296122)
- [Update broke LXC](https://forum.proxmox.com/threads/update-broke-lxc.59776/post-277303)