Merge commit 'refs/top-bases/linux-unused' into linux-unused
This commit is contained in:
commit
87542cf850
|
@ -3,18 +3,21 @@
|
||||||
# Sun Fire x4550 (Thumper) Raid-0 Configuration
|
# Sun Fire x4550 (Thumper) Raid-0 Configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
DEVICES="/dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf \
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
/dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl \
|
|
||||||
/dev/sdm /dev/sdn /dev/sdo /dev/sdp /dev/sdq /dev/sdr \
|
S_IDX=0
|
||||||
/dev/sds /dev/sdt /dev/sdu /dev/sdv /dev/sdw /dev/sdx \
|
STRIPES=()
|
||||||
/dev/sdy /dev/sdz /dev/sdaa /dev/sdab /dev/sdac /dev/sdad \
|
|
||||||
/dev/sdae /dev/sdaf /dev/sdag /dev/sdah /dev/sdai /dev/sdaj \
|
|
||||||
/dev/sdak /dev/sdal /dev/sdam /dev/sdan /dev/sdao /dev/sdap \
|
|
||||||
/dev/sdaq /dev/sdar /dev/sdas /dev/sdat /dev/sdau /dev/sdav"
|
|
||||||
|
|
||||||
zpool_create() {
|
zpool_create() {
|
||||||
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${DEVICES}
|
|
||||||
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${DEVICES} || exit 1
|
while [ ${S_IDX} -lt ${#DEVICES[@]} ]; do
|
||||||
|
STRIPE=`readlink -f ${DEVICES[${S_IDX}]}`
|
||||||
|
STRIPES[${S_IDX}]="${STRIPE}"
|
||||||
|
let S_IDX=S_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${STRIPES[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${STRIPES[*]} || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
zpool_destroy() {
|
zpool_destroy() {
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-10 Configuration (2x24 mirror)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
M_IDX=0
|
||||||
|
MIRRORS=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_02[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_41[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_03[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_03[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_42[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_04[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_04[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_43[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-10 Configuration (3x16 mirror)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
M_IDX=0
|
||||||
|
MIRRORS=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_02[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_03[${D_IDX}]}`
|
||||||
|
MIRROR3=`readlink -f ${DEVICES_04[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2} ${MIRROR3}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_03[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_41[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_42[${D_IDX}]}`
|
||||||
|
MIRROR3=`readlink -f ${DEVICES_43[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2} ${MIRROR3}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-10 Configuration (6x8 mirror)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
M_IDX=0
|
||||||
|
MIRRORS=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
MIRROR1=`readlink -f ${DEVICES_02[${D_IDX}]}`
|
||||||
|
MIRROR2=`readlink -f ${DEVICES_03[${D_IDX}]}`
|
||||||
|
MIRROR3=`readlink -f ${DEVICES_04[${D_IDX}]}`
|
||||||
|
MIRROR4=`readlink -f ${DEVICES_41[${D_IDX}]}`
|
||||||
|
MIRROR5=`readlink -f ${DEVICES_42[${D_IDX}]}`
|
||||||
|
MIRROR6=`readlink -f ${DEVICES_43[${D_IDX}]}`
|
||||||
|
MIRRORS[${M_IDX}]="mirror ${MIRROR1} ${MIRROR2} ${MIRROR3} ${MIRROR4} ${MIRROR5} ${MIRROR6}"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
let M_IDX=M_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${MIRRORS[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-Z Configuration (12x4 stripe)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
DEVICES_PER_CTRL=2
|
||||||
|
Z_IDX=0
|
||||||
|
RAIDZS=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
RAIDZ=""
|
||||||
|
for IDX in `seq 1 ${DEVICES_PER_CTRL}`; do
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_02[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_03[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_04[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_41[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_42[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_43[${D_IDX}]}`"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
done
|
||||||
|
RAIDZS[${Z_IDX}]="raidz ${RAIDZ}"
|
||||||
|
let Z_IDX=Z_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZS[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZS[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-Z Configuration (6x8 stripe)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
DEVICES_PER_CTRL=1
|
||||||
|
Z_IDX=0
|
||||||
|
RAIDZS=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
RAIDZ=""
|
||||||
|
for IDX in `seq 1 ${DEVICES_PER_CTRL}`; do
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_02[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_03[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_04[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_41[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_42[${D_IDX}]}`"
|
||||||
|
RAIDZ="${RAIDZ} `readlink -f ${DEVICES_43[${D_IDX}]}`"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
done
|
||||||
|
RAIDZS[${Z_IDX}]="raidz ${RAIDZ}"
|
||||||
|
let Z_IDX=Z_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZS[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZS[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-Z2 Configuration (12x4 stripe)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
DEVICES_PER_CTRL=2
|
||||||
|
Z_IDX=0
|
||||||
|
RAIDZ2S=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
RAIDZ2=""
|
||||||
|
for IDX in `seq 1 ${DEVICES_PER_CTRL}`; do
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_02[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_03[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_04[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_41[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_42[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_43[${D_IDX}]}`"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
done
|
||||||
|
RAIDZ2S[${Z_IDX}]="raidz2 ${RAIDZ2}"
|
||||||
|
let Z_IDX=Z_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZ2S[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZ2S[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Sun Fire x4550 (Thumper) Raid-Z2 Configuration (6x8 stripe)
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICES=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000`)
|
||||||
|
DEVICES_02=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:02`)
|
||||||
|
DEVICES_03=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:03`)
|
||||||
|
DEVICES_04=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:04`)
|
||||||
|
DEVICES_41=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:41`)
|
||||||
|
DEVICES_42=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:42`)
|
||||||
|
DEVICES_43=(`ls /dev/disk/by-path/* | grep -v part | grep pci-0000\:43`)
|
||||||
|
|
||||||
|
DEVICES_PER_CTRL=1
|
||||||
|
Z_IDX=0
|
||||||
|
RAIDZ2S=()
|
||||||
|
|
||||||
|
zpool_create() {
|
||||||
|
|
||||||
|
D_IDX=0
|
||||||
|
while [ ${D_IDX} -lt ${#DEVICES_02[@]} ]; do
|
||||||
|
RAIDZ2=""
|
||||||
|
for IDX in `seq 1 ${DEVICES_PER_CTRL}`; do
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_02[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_03[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_04[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_41[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_42[${D_IDX}]}`"
|
||||||
|
RAIDZ2="${RAIDZ2} `readlink -f ${DEVICES_43[${D_IDX}]}`"
|
||||||
|
let D_IDX=D_IDX+1
|
||||||
|
done
|
||||||
|
RAIDZ2S[${Z_IDX}]="raidz2 ${RAIDZ2}"
|
||||||
|
let Z_IDX=Z_IDX+1
|
||||||
|
done
|
||||||
|
|
||||||
|
msg ${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZ2S[*]}
|
||||||
|
${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${RAIDZ2S[*]} || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
zpool_destroy() {
|
||||||
|
msg ${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}
|
||||||
|
}
|
Loading…
Reference in New Issue