]> git.proxmox.com Git - mirror_zfs-debian.git/blame - scripts/zpool-config/x4550-raid10-24x2.sh
Add FAILFAST support
[mirror_zfs-debian.git] / scripts / zpool-config / x4550-raid10-24x2.sh
CommitLineData
c9c0d073
BB
1#!/bin/bash
2#
3# Sun Fire x4550 (Thumper/Thor) Raid-10 Configuration (24x2(1+1))
4#
5
6RANKS=8
7CHANNELS=6
8
9zpool_create() {
10 udev_setup ${ETCDIR}/zfs/zdev.conf.x4550.example
11 udev_raid10_setup ${RANKS} ${CHANNELS}
12
13 msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAID10S[*]}
14 ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAID10S[*]} || exit 1
15}
16
17zpool_destroy() {
18 msg ${ZPOOL} destroy ${ZPOOL_NAME}
19 ${ZPOOL} destroy ${ZPOOL_NAME}
20 udev_cleanup ${ETCDIR}/zfs/zdev.conf.x4550.example
21}