mirror-env/post-install/roles/zfs/tasks/main.yml

16 lines
502 B
YAML
Executable File

- name: create zfs mountpoint
file:
path: /mirror/root/.cscmirror
state: directory
owner: root
group: root
mode: 0777
recurse: yes
- name: create and mount zpool
# double check this works (and produces the correct result)
# may be better to use the /dev/disk/by-id/... instead
commmand: zpool create -f -m /mirror/root/.cscmirror cscmirror raidz2 /dev/vdc /dev/vdd /dev/vde /dev/vdf
# may need to mount it (also check that it will automount on boot)
# zfs mount -a