From 3fa49df87f42fa01449026593174bc1f3cc1e254 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 12 Jan 2023 12:49:42 +1000 Subject: [PATCH 1/2] added todo notes, enabled zfs-import.target --- ansible/roles/zfs_repo_install/tasks/main.yml | 1 + notes/2023-01-09_ebs-zfs.txt | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ansible/roles/zfs_repo_install/tasks/main.yml b/ansible/roles/zfs_repo_install/tasks/main.yml index 4b911b1..3204df0 100644 --- a/ansible/roles/zfs_repo_install/tasks/main.yml +++ b/ansible/roles/zfs_repo_install/tasks/main.yml @@ -70,6 +70,7 @@ - zfs-import-cache.service - zfs-mount.service - zfs.target + - zfs-import.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 2ba1652..167b2b0 100644 --- a/notes/2023-01-09_ebs-zfs.txt +++ b/notes/2023-01-09_ebs-zfs.txt @@ -9,6 +9,34 @@ sudo zfs create -V 100G \ -o volmode=dev \ nvme/libvirt/vhds/data/kube0 +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) From ce3af85e73fa5a7d863f0ed84df9783cbcec21a3 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 12 Jan 2023 13:06:45 +1000 Subject: [PATCH 2/2] changed service order --- ansible/roles/zfs_repo_install/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/zfs_repo_install/tasks/main.yml b/ansible/roles/zfs_repo_install/tasks/main.yml index 3204df0..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-import.target - zfs-mount.service - zfs.target - - zfs-import.target - name: gather existing zpool facts community.general.zpool_facts: