1
0
IaC/notes/2023-01-09_ebs-zfs.txt

54 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-01-09 11:19:24 -05:00
created a zfs zvol on hv00 ssd
sudo zfs create -V 100G \
-o compression=off \
2023-01-10 19:59:26 -05:00
-o volblocksize=64k \
2023-01-09 11:19:24 -05:00
-o reservation=none \
-o refreservation=none \
-o primarycache=metadata \
-o secondarycache=none \
-o volmode=dev \
2023-01-12 00:53:36 -05:00
nvme/libvirt/vhds/data/kube01
sudo zfs create -V 24G \
-o compression=off \
-o volblocksize=64k \
-o reservation=none \
-o refreservation=none \
-o primarycache=metadata \
-o secondarycache=none \
-o volmode=dev \
nvme/libvirt/vhds/cache/kube01
2023-01-09 11:19:24 -05:00
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
2023-01-09 11:19:24 -05:00
added zfs storage pool to libvirt
add zvol as disk (vde)
add zfs repo to kube01
create zpool from vde