-
Notifications
You must be signed in to change notification settings - Fork 37
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
(MODULES-10726) Add support for ashift/autoexpand/failmode to the zpool provider. #30
(MODULES-10726) Add support for ashift/autoexpand/failmode to the zpool provider. #30
Conversation
As far as I can tell ashift appears to be valid on ZoL, but couldn't find any information about it being supported on Solaris? If it turns out ashift is supported there, then it's a trivial change to enable it for other OS. |
Hi @KeithWard, Thanks for your contribution. I just ran the acceptance test suite on our Solaris platforms and we ran into some issues. Here's some output on how zpool properties are shown on Solaris 10/11: root@racy-saturation:~# zpool get -H -o autoexpand rpool
bad property list: invalid property '-H'
For more info, run: zpool help get
root@racy-saturation:~# zpool help get
usage:
get <"all" | property[,...]> <pool> ...
root@racy-saturation:~# zpool get autoexpand rpool
NAME PROPERTY VALUE SOURCE
rpool autoexpand off default However... Solaris 11.4 comes with a newer version of zfs which does support these flags: root@smug-nationhood:~# zpool get -H -o value autoexpand rpool
off To fix this, I'd suggest either executing Let me know if you need any help with this. Also, it'd be good to have a MODULES ticket opened to track the work on this PR. |
I just did a quick check and the |
I'll probably do the former for this, and switch to parsing I'll update the PR with my changes and let you know when i'm done, Thanks. |
@GabrielNagy Apologies for the delay, I've updated the PR switching it to parsing the output from Thanks. |
I've raised an explicit ticket in JIRA to reference this PR MODULES-10726 , and updated the title to match. |
931f0b7
to
230b86e
Compare
I've squashed squashed my commits down to one for ease of merging |
OK so aparently me re-requesting review removed the request for a review from puppetlabs/night-s-watch, not sure how to go about re-adding that or if i need to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My last suggestion was not wise, I'm sorry about this :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now, and acceptance tests are passing! Thanks for also raising a ticket.
@KeithWard one last thing, please squash your commits and prepend |
33bcf5e
to
fd3f8f9
Compare
ashift (Only valid on linux) autoexpand failmode.
fd3f8f9
to
431e351
Compare
@GabrielNagy Thats all done for you. Thanks. |
This PR adds support for setting ashift (linux only), autoexpand, and failmode on zpools,
Both setting them individually, and also as part of creation
ashift (Only valid on linux)
autoexpand
failmode.