Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools to test ZFS fault tolerance #16180

Open
woodholly opened this issue May 9, 2024 · 1 comment
Open

Tools to test ZFS fault tolerance #16180

woodholly opened this issue May 9, 2024 · 1 comment
Labels
Type: Feature Feature request or new feature

Comments

@woodholly
Copy link

How to properly test fault tolerance of ZFS and what utilities do you use for this?
I want to test disk-failure / power failure tolerance of ZFS.

I tried standard "faulty" tool to emulate disk IO failures:

mdadm -B /dev/md666 -l faulty -n1 /dev/sda_
zpool create pool0 /dev/md666

zfs create test pool0
mdadm -G /dev/md0 --layout=wp10000
dd if=/dev/random of=/pool/test/trash bs=1M count=10
sync

This works, pool turns int SUSPENDED mode, BUT after that there is nothing I can do with it, I cant export/re-import this disk or destroy pool0 without system reboot. rmmod zfs no help too.

So how you guys test ZFS without reboot?
If reboot is obligatory (this sucks) .. what tools do you use to test it, do you have some kind of manually setup linux images for that ?

@woodholly woodholly added the Type: Feature Feature request or new feature label May 9, 2024
@tonyhutter
Copy link
Contributor

tonyhutter commented May 9, 2024

zinject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

2 participants