efe48459df947a8ed28f010d54647e8fc03febae
[zfs.git] / scripts / zpool-config / supermicro-raid0-1x16.sh
1 #!/bin/bash
2 #
3 # Supermicro (White Box) Raid-0 Configuration (1x16)
4 #
5
6 RANKS=4
7 CHANNELS=4
8
9 zpool_create() {
10         udev_setup ${ETCDIR}/zfs/zdev.conf.supermicro.example
11         udev_raid0_setup ${RANKS} ${CHANNELS}
12
13         msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAID0S[*]}
14         ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${RAID0S[*]} || exit 1
15 }
16
17 zpool_destroy() {
18         msg ${ZPOOL} destroy ${ZPOOL_NAME}
19         ${ZPOOL} destroy ${ZPOOL_NAME}
20         udev_cleanup ${ETCDIR}/zfs/zdev.conf.supermicro.example
21 }