2009-01-20 22:10:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Single disk /dev/sda Raid-0 Configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
DEVICES="/dev/sda"
|
|
|
|
|
|
|
|
zpool_create() {
|
2009-10-21 18:38:51 +00:00
|
|
|
msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${DEVICES}
|
|
|
|
${ZPOOL} create ${FORCE_FLAG} ${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
|
|
|
}
|