mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
cb39a6c6aa
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 |
||
---|---|---|
.. | ||
dm0-raid0.sh | ||
file-raid0.sh | ||
file-raid10.sh | ||
file-raidz2.sh | ||
file-raidz.sh | ||
hda-raid0.sh | ||
lo-faulty-raid0.sh | ||
lo-faulty-raid10.sh | ||
lo-faulty-raidz2.sh | ||
lo-faulty-raidz3.sh | ||
lo-faulty-raidz.sh | ||
lo-raid0.sh | ||
lo-raid10.sh | ||
lo-raidz2.sh | ||
lo-raidz.sh | ||
Makefile.am | ||
Makefile.in | ||
md0-raid5.sh | ||
md0-raid10.sh | ||
ram0-raid0.sh | ||
scsi_debug-noraid.sh | ||
scsi_debug-raid0.sh | ||
scsi_debug-raid10.sh | ||
scsi_debug-raidz2.sh | ||
scsi_debug-raidz3.sh | ||
scsi_debug-raidz.sh | ||
sda-raid0.sh | ||
zpool-raid0.sh | ||
zpool-raid10.sh | ||
zpool-raidz.sh |