]> git.proxmox.com Git - proxmox-backup.git/commit
api2/node/disks/zfs: instantiate import service
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 16 Sep 2020 12:14:18 +0000 (14:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Sep 2020 06:43:38 +0000 (08:43 +0200)
commit905147a5ee0274170953235aa1ab8522d0a6dcd8
tree245af6c013dd4b8a1a1b0b0fa7fe11012f9380c2
parent0c41e0d06b50624bcd3149ce5faae96d2533b93a
api2/node/disks/zfs: instantiate import service

When creating a new zpool for a datastore, also instantiate an
import-unit for it. This helps in cases where '/etc/zfs/zool.cache'
get corrupted and thus the pool is not imported upon boot.

This patch needs the corresponding addition of 'zfs-import@.service' in
the zfsonlinux repository.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/api2/node/disks/zfs.rs