2009-01-20 22:10:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Single disk /dev/hda Raid-0 Configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
DEVICES="/dev/hda"
|
|
|
|
|
|
|
|
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
|
|
|
}
|