diff --git a/ansible/roles/zfs_repo_install/tasks/main.yml b/ansible/roles/zfs_repo_install/tasks/main.yml index 7b07594..d7999ca 100644 --- a/ansible/roles/zfs_repo_install/tasks/main.yml +++ b/ansible/roles/zfs_repo_install/tasks/main.yml @@ -68,9 +68,9 @@ enabled: yes loop: - zfs-import-cache.service - - zfs.target - zfs-import.target - zfs-mount.service + - zfs.target - name: gather existing zpool facts community.general.zpool_facts: diff --git a/notes/2023-01-09_ebs-zfs.txt b/notes/2023-01-09_ebs-zfs.txt index a97f6c8..dd0958f 100644 --- a/notes/2023-01-09_ebs-zfs.txt +++ b/notes/2023-01-09_ebs-zfs.txt @@ -19,6 +19,34 @@ sudo zfs create -V 24G \ -o volmode=dev \ nvme/libvirt/vhds/cache/kube01 +enabled + +partition cache/log drive and named partitions +added cache and slog drive + +added encryption key pass phrase to file /root/zfs-key.txt +set keylocation option to file:///root/zfs-key.txt + +added/enabled service file zfs-load-key.service + + [Unit] + Description=Load encryption keys + DefaultDependencies=no + After=zfs-import.target + Before=zfs-mount.service + + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/usr/bin/zfs load-key -a + StandardInput=tty-force + + [Install] + WantedBy=zfs-mount.service + +added open-ebs dtaset under hdd/encrypted + + added zfs storage pool to libvirt add zvol as disk (vde)