]> git.proxmox.com Git - mirror_zfs-debian.git/blob - scripts/zpool-config/dragon-raidz2-7x10.sh
Add build system
[mirror_zfs-debian.git] / scripts / zpool-config / dragon-raidz2-7x10.sh
1 #!/bin/bash
2 #
3 # Dragon (White Box) Raid-Z2 Configuration (7x10(8+2))
4 #
5
6 RANKS=7
7 CHANNELS=10
8
9 zpool_create() {
10 udev_setup ${ETCDIR}/zfs/zdev.conf.dragon.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
17 zpool_destroy() {
18 msg ${ZPOOL} destroy ${ZPOOL_NAME}
19 ${ZPOOL} destroy ${ZPOOL_NAME}
20 udev_cleanup ${ETCDIR}/zfs/zdev.conf.dragon.example
21 }