Replace custom zpool configs with generic configs
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Nov 2010 18:43:20 +0000 (11:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Nov 2010 22:03:36 +0000 (14:03 -0800)
commitcb39a6c6aa91531a641232e7d0c6a4d63836b0cc
treefb01b741b6d481bcc1e185de39d6c19ee40444e7
parent3ee56c292bbcd7e6b26e3c2ad8f0e50eee236bcc
Replace custom zpool configs with generic configs

To streamline testing I have in the past added several custom configs
to the zpool-config directory.  This change reverts those custom configs
and replaces them with three generic config which can do the same thing.
The generic config behavior can be set by setting various environment
variables when calling either the zpool-create.sh or zpios.sh scripts.

For example if you wanted to create and test a single 4-disk Raid-Z2
configuration using disks [A-D]1 with dedicated ZIL and L2ARC devices
you could run the following.

$ ZIL="log A2" L2ARC="cache B2" RANKS=1 CHANNELS=4 LEVEL=2 \
  zpool-create.sh -c zpool-raidz

$ zpool status tank
  pool: tank
 state: ONLINE
 scan: none requested
config:

      NAME        STATE     READ WRITE CKSUM
      tank        ONLINE       0     0     0
        raidz2-0  ONLINE       0     0     0
          A1      ONLINE       0     0     0
          B1      ONLINE       0     0     0
          C1      ONLINE       0     0     0
          D1      ONLINE       0     0     0
      logs
        A2        ONLINE       0     0     0
      cache
        B2        ONLINE       0     0     0

errors: No known data errors
17 files changed:
scripts/zpool-config/Makefile.am
scripts/zpool-config/Makefile.in
scripts/zpool-config/dragon-raid0-1x70.sh [deleted file]
scripts/zpool-config/dragon-raid10-35x2.sh [deleted file]
scripts/zpool-config/dragon-raidz-7x10.sh [deleted file]
scripts/zpool-config/dragon-raidz2-7x10.sh [deleted file]
scripts/zpool-config/supermicro-raid0-1x16.sh [deleted file]
scripts/zpool-config/supermicro-raid10-8x2.sh [deleted file]
scripts/zpool-config/supermicro-raidz-4x4.sh [deleted file]
scripts/zpool-config/supermicro-raidz2-4x4.sh [deleted file]
scripts/zpool-config/x4550-raid0-1x48.sh [deleted file]
scripts/zpool-config/x4550-raid10-24x2.sh [deleted file]
scripts/zpool-config/x4550-raidz-8x6.sh [deleted file]
scripts/zpool-config/x4550-raidz2-8x6.sh [deleted file]
scripts/zpool-config/zpool-raid0.sh [new file with mode: 0644]
scripts/zpool-config/zpool-raid10.sh [new file with mode: 0644]
scripts/zpool-config/zpool-raidz.sh [new file with mode: 0644]