zfs/scripts/zpool-create.sh

40 lines
1.1 KiB
Bash
Raw Normal View History

2008-12-05 17:46:11 +00:00
#!/bin/bash
. ./common.sh
PROG=create-zpool.sh
2008-12-05 17:46:11 +00:00
# Device list, e.g.
#
# Single device
#DEVICES="/dev/sda"
#
# All disks in a Sun Thumper/Thor
#DEVICES="/dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf \
# /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl \
# /dev/sdm /dev/sdn /dev/sdo /dev/sdp /dev/sdq /dev/sdr \
# /dev/sds /dev/sdt /dev/sdu /dev/sdv /dev/sdw /dev/sdx \
# /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"
#
# Promise JBOD config
#DEVICES="/dev/sdb /dev/sdc /dev/sdd \
# /dev/sde /dev/sdf /dev/sdg \
# /dev/sdh /dev/sdi /dev/sdj \
# /dev/sdk /dev/sdl /dev/sdm"
#
DEVICES=""
echo
echo "zpool create zpios <devices>"
${CMDDIR}/zpool/zpool create -F zpios ${DEVICES}
2008-12-05 17:46:11 +00:00
echo
echo "zpool list"
${CMDDIR}/zpool/zpool list
echo
echo "zpool status zpios"
${CMDDIR}/zpool/zpool status zpios