2009-01-20 22:10:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Single disk /dev/sda Raid-0 Configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
DEVICES="/dev/sda"
|
|
|
|
|
|
|
|
zpool_create() {
|
2009-08-18 04:35:06 +00:00
|
|
|
msg ${ZPOOL} create -f ${ZPOOL_NAME} ${DEVICES}
|
|
|
|
${ZPOOL} create -f ${ZPOOL_NAME} ${DEVICES} || exit 1
|
2009-01-20 22:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
zpool_destroy() {
|
2009-08-18 04:35:06 +00:00
|
|
|
msg ${ZPOOL} destroy ${ZPOOL_NAME}
|
|
|
|
${ZPOOL} destroy ${ZPOOL_NAME} || exit 1
|
2009-01-20 22:10:30 +00:00
|
|
|
}
|