| Main index | Section 1 | Options |
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
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
| | |
| Print a help summary. | |
| | |
| Number of vdevs. | |
| | |
| Size of each vdev. | |
| | |
| Alignment shift used in test. | |
| | |
| Number of mirror copies. | |
| | |
| Number of raidz/draid disks. | |
| | |
| Raid parity (raidz & draid). | |
| | |
| The kind of RAID config to use. With random the kind alternates between raidz and draid. | |
| | |
| Number of data disks in a dRAID redundancy group. | |
| | |
| Number of dRAID distributed spare disks. | |
| | |
| Number of datasets. | |
| | |
| Number of threads. | |
| | |
| Gang block threshold. | |
| | |
| Number of pool initializations. | |
| | |
| Kill percentage. | |
| | |
| Pool name. | |
| | |
| File directory for vdev files. | |
| | |
| Multi-host; simulate pool imported on remote host. | |
| | |
| Use existing pool (use existing pool instead of creating new one). | |
| | |
| Total test run time. | |
| | |
| Time per pass. | |
| | |
| Max loops in spa_freeze(). | |
| | |
|
Path to alternate ("older")
ztest
to drive, which will be used to initialise the pool, and, a stochastic half the
time, to run the tests.
The parallel
lib
directory is prepended to
LD_LIBRARY_PATH;
i.e. given
| |
| | |
| The vdev allocation class state. | |
| | |
| Set global variable to an unsigned 32-bit integer value (little-endian only). | |
| | |
| Dump zfs_dbgmsg buffer before exiting due to an error. | |
| | |
| Verbose (use multiple times for ever more verbosity). | |
# 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
# ztest -f / -V -T 120
| ZFS_HOSTID= id | |
| Use id instead of the SPL hostid to identify this host. Intended for use with ztest, libzpool, including zpool(8). Since the kernel is unaware of this setting, results with utilities other than ztest are undefined. | |
| ZFS_STACK_SIZE= stacksize | |
|
Limit the default stack size to
stacksize
bytes for the purpose of
detecting and debugging kernel stack overflows.
This value defaults to
32K
which is double the default
16K
Linux kernel stack size.
In practice, setting the stack size slightly higher is needed because differences in stack usage between kernel and user space can lead to spurious stack overflows (especially when debugging is enabled). The specified value will be rounded up to a floor of PTHREAD_STACK_MIN which is the minimum stack required for a NULL procedure in user space. By default the stack size is limited to 256K. | |
| ZTEST (1) | May 26, 2021 |
| Main index | Section 1 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
