ansitest/ZFS/zpool-create-raidz-for-expansion.sh
2025-01-14 13:44:52 -07:00

17 lines
301 B
Bash

#!/bin/bash
# 2025.Jan kneutron
echo "o NOTE zfs-2.3.0-1 or higher is required!"
zfs -V
zp=zraidzexpandtest
# vda=vdp avail; f=6
zpool create -o ashift=12 -o autoexpand=on -o autoreplace=off -O atime=off -O compression=lz4 \
$zp raidz1 \
vd{a..f}
zpool list -v
zpool status -v |awk 'NF>0'