ztest -f /
ztest - was written by the ZFS Developers as a ZFS unit test.
ztest <options>
This manual page documents briefly the ztest command.
ztest was written by the ZFS Developers as a ZFS unit test. The tool was developed in tandem with the ZFS functionality and was executed nightly as one of the many regression test against the daily build. As features were added to ZFS, unit tests were also added to ztest. In addition, a separate test development team wrote and executed more functional and stress tests.
By default ztest runs for ten minutes and uses block files (stored in /tmp) to create pools rather than using physical disks. Block files afford ztest its flexibility to play around with zpool components without requiring large hardware configurations. However, storing the block files in /tmp may not work for you if you have a small tmp directory.
By default is non-verbose. This is why entering the command above will result in ztest quietly executing for 5 minutes. The -V option can be used to increase the verbosity of the tool. Adding multiple -V option is allowed and the more you add the more chatty ztest becomes.
After the ztest run completes, you should notice many ztest.* files lying around. Once the run completes you can safely remove these files. Note that you shouldn't remove these files during a run. You can re-use these files in your next *ztest* run by using the -E option.
Print a help summary
Number of vdevs.
Size of each vdev.
Used alignment in test.
Number of mirror copies.
Number of raidz disks.
Raidz parity.
Number of datasets.
Number of threads.
Gang block threshold.
Number of pool initialisations.
Kill percentage.
Pool name.
Directory for vdev files.
Verbose (use multiple times for ever more blather).
Use existing pool (use existing pool instead of creating new one).
Total test run time.
Time per pass.
Injected failure rate.
To override /tmp as your location for block files, you can use the -f option:
ztest -f /
To get an idea of what ztest is actually testing try this:
ztest -f / -VVV
Maybe you'd like to run ztest for longer? To do so simply use the -T option and specify the runlength in seconds like so:
ztest -f / -V -T 120
zpool(1), zfs(1), zdb(1), zfs-fuse(1)
This manual page was transvered to asciidoc by Michael Gebetsroither <gebi@grml.org> from http://opensolaris.org/os/community/zfs/ztest/