-
Notifications
You must be signed in to change notification settings - Fork 107
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
Multiple zpools per node #403
Comments
Why you can't have more that one volume? Poolname in the Storageclass specify that we need to carve out the volume space from that pool. We can have multiple volume provisioed in a single pool via single storage class. Can you elaborate your use case. |
@pawanpraka1, case is: multiple zpools per node. I would like to have ZFSVolume on any of N zpool per single node. However, StorageClass is stick to zpool name, so to the only one zpool on a node. |
I'm pretty sure this functionality already exists. It should be possible for you to apply a second StorageClass and then reference a different zpool in its definition. Then, reference this other storage class in your PV/PVC. I haven't done it before, but I don't see why it wouldn't work. |
@nlflint when using multiple storage classes there will be no load-balancing between different zpool on single machine |
Also another use case that I ran into. We deployed many CNs... sometimes our systems netboot with / in ram and have a "data" pool, sometimes our systems boot of the disks from their "system" pool. It would be nice to be able to specify poolname or poolpattern "*/volumes" for the "volumes" storageclass. |
@ginn13 IIUC, you want to be able to specify a |
@Abhinandan-Purkait it might be better to match on a custom zpool property set by the administrator on the pool. We can use any pools with matching props. I'd prefer a prop to regex. |
@Smithx10 Thanks for the suggestion that sounds good to me. Can we have a consensus on the same? |
Scoping for v4.3, at least have one method of implementation (pattern-matching or zpool property). |
Describe the problem/challenge you have
I need to dynamically provision zfs-backed volumes without redundancy (just single zfs dataset per physical disk). Though it could be simply accomplished with zfs-provisioner on a different nodes, I cannot have more than one volume on a single node, because of StorageClass needs a poolname parameter. So that StorageClass is limited to only one zpool per node.
Trying to set up multiple zpools on a every single node to provision zfs persistent volume on every single drive without redundancy.
Describe the solution you'd like
Support multiple zpools per StorageClass. Allow a list of poolnames in a StorageClass
Environment:
The text was updated successfully, but these errors were encountered: