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

Cannot use ZFS ZVOL #34

Open
flotpg opened this issue Apr 16, 2020 · 4 comments
Open

Cannot use ZFS ZVOL #34

flotpg opened this issue Apr 16, 2020 · 4 comments

Comments

@flotpg
Copy link

flotpg commented Apr 16, 2020

Hey,

as the warning is very clear ;) I thought it would be possible to use a zvol as I didn't find any option to use a file to test (like you do with fio)
"!!!Attention!!!
All data on /dev/sdXXX will be lost!"

Is it possible to use zvol?

➜ TKperf git:(master) ✗ sudo tkperf hdd tank /dev/zvol/tank/tkperf-zvol -nj 2 -iod 16 -rfb You are not using a valid device or partition!

@onitake
Copy link
Contributor

onitake commented May 5, 2020

The relevant code is here: https://github.com/thomas-krenn/TKperf/blob/master/src/perfTest/Devices.py#L233-L248
To make the test succeed, the device needs to be listed in /proc/partitions.

That being said, I think you can also use the --force_test parameter to disable the sanity checks.

Perhaps it may also be a good idea to add a dedicated ZVol driver, like there is for Linux md RAID and LSI controllers.

@flotpg
Copy link
Author

flotpg commented May 5, 2020

Hey @onitake, I will give that a try, thx.

@gschoenberger
Copy link
Member

THX for your comments!
If we implement a dedicated ZVol device to test, we need commands to:

  • Check if a ZVol is available and/not mounted (like the test with /proc/partitions)
  • Secure Erase a ZVol
  • Read info about a ZVol
    Can you provide those commands?

@flotpg
Copy link
Author

flotpg commented May 5, 2020

You could grep the output of 'zfs mount' which lists currently mounted datasets, not sure how to tell with zvols.
I don't know secure erase commands except of creating an encrypted one from the beginning.
zfs get all tank/tkperf-zvol lists you all infos about the zvol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants