diff --git a/zpool.creation.sh b/zpool.creation.sh index 884f121..a660938 100755 --- a/zpool.creation.sh +++ b/zpool.creation.sh @@ -12,6 +12,13 @@ DISK_TEMP_LIST="/tmp/zfs.disks" # Store disks list in a temp file find /dev/disk/by-vdev -maxdepth 1 -type l -printf "%f\\n" > "${DISK_TEMP_LIST}" +# Test zfs module {{{ +if ! lsmod | grep -q "^zfs" +then + printf "%b\\n" "Try to load ZFS module" + modprobe zfs +fi +# }}} # Pool creation {{{ ## Initialize loop vars group=1