]> git.proxmox.com Git - mirror_zfs-debian.git/blame - scripts/zpool-config/supermicro-raidz2-4x4.sh
Add initial autoconf products
[mirror_zfs-debian.git] / scripts / zpool-config / supermicro-raidz2-4x4.sh
CommitLineData
c9c0d073
BB
1#!/bin/bash
2#
3# Supermicro (White Box) Raid-Z2 Configuration (4x4(2+2))
4#
5
6RANKS=4
7CHANNELS=4
8
9zpool_create() {
10 udev_setup ${ETCDIR}/zfs/zdev.conf.supermicro.example
11 udev_raidz2_setup ${RANKS} ${CHANNELS}
12
13 msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAIDZ2S[*]}
14 ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAIDZ2S[*]} || exit 1
15}
16
17zpool_destroy() {
18 msg ${ZPOOL} destroy ${ZPOOL_NAME}
19 ${ZPOOL} destroy ${ZPOOL_NAME}
20 udev_cleanup ${ETCDIR}/zfs/zdev.conf.supermicro.example
21}