distribute storage domains

Hello I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used. Is there a way to accomplish that? Thank you Jason

Hi Jason, From a user experience perspective, you could change the order of the storage domains so the current first one is not always the first one in line. This might help to get users to select a variety of storage domains instead of always selecting the current first one. Best, Laura On Tue, Aug 6, 2019 at 7:05 AM Jason M. Stallings < jason.stallings.tx@gmail.com> wrote:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
-- Laura Wright She/Her/Hers UXD Team Red Hat Massachusetts <https://www.redhat.com/> 314 Littleton Rd lwright@redhat.com <https://www.redhat.com/>

Hi Laura, this is something I was wondering for quite some time but never bothered to ask about. How can one change the order of storage domains so the right one shows up by default? Thank you, Fil -- Dmitry Filonov Linux Administrator SBGrid Core | Harvard Medical School 250 Longwood Ave, SGM-114 Boston, MA 02115 On Tue, Aug 6, 2019 at 7:35 AM Laura Wright <lwright@redhat.com> wrote:
Hi Jason,
From a user experience perspective, you could change the order of the storage domains so the current first one is not always the first one in line. This might help to get users to select a variety of storage domains instead of always selecting the current first one.
Best, Laura
On Tue, Aug 6, 2019 at 7:05 AM Jason M. Stallings < jason.stallings.tx@gmail.com> wrote:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
--
Laura Wright
She/Her/Hers
UXD Team
Red Hat Massachusetts <https://www.redhat.com/>
314 Littleton Rd
lwright@redhat.com <https://www.redhat.com/> _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VRHJIFY5QRCHVU...

Hi Dmitry, You might have to write a custom script for it but if you think other users would benefit from it you should totally contribute it! Best, Laura On Tue, Aug 6, 2019 at 10:54 PM Dmitry Filonov <filonov@hkl.hms.harvard.edu> wrote:
Hi Laura, this is something I was wondering for quite some time but never bothered to ask about. How can one change the order of storage domains so the right one shows up by default?
Thank you,
Fil
-- Dmitry Filonov Linux Administrator SBGrid Core | Harvard Medical School 250 Longwood Ave, SGM-114 Boston, MA 02115
On Tue, Aug 6, 2019 at 7:35 AM Laura Wright <lwright@redhat.com> wrote:
Hi Jason,
From a user experience perspective, you could change the order of the storage domains so the current first one is not always the first one in line. This might help to get users to select a variety of storage domains instead of always selecting the current first one.
Best, Laura
On Tue, Aug 6, 2019 at 7:05 AM Jason M. Stallings < jason.stallings.tx@gmail.com> wrote:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
--
Laura Wright
She/Her/Hers
UXD Team
Red Hat Massachusetts <https://www.redhat.com/>
314 Littleton Rd
lwright@redhat.com <https://www.redhat.com/> _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VRHJIFY5QRCHVU...
-- Laura Wright She/Her/Hers UXD Team Red Hat Massachusetts <https://www.redhat.com/> 314 Littleton Rd lwright@redhat.com <https://www.redhat.com/>

Hi Jason, A time ago I wrote a "Storage Balancer" exactly for that, move disks between storage domains to keep them below a maximum threshold of occupation. You can find the project at [1]. It's not perfect but has been working for us for the last 3 years with no issues. That won't avoid people storing new disks in the first available storage domain, but the balancer will distribute them between the less occupied storage domains afterwards. Hope this helps, Nicolás [1]: https://github.com/nkovacne/ovirt-storage-balancer El 2019-08-04 17:57, Jason M. Stallings escribió:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...

Nicolas: Thank you very much for this! Looks like exactly what I was looking for... The first burst was somewhat frightening but it ended well and now no storage domain is overused :) One quick question: Is it possible to limit balancing to more than one datacenter? I have 3 datacenters and I'd like to exclude one of them. I see the DATACENTER config variable could do this but I'm not sure how to define more than one datacenter. Thanks El mar., 6 ago. 2019 a las 15:05, <nicolas@devels.es> escribió:
Hi Jason,
A time ago I wrote a "Storage Balancer" exactly for that, move disks between storage domains to keep them below a maximum threshold of occupation. You can find the project at [1].
It's not perfect but has been working for us for the last 3 years with no issues.
That won't avoid people storing new disks in the first available storage domain, but the balancer will distribute them between the less occupied storage domains afterwards.
Hope this helps,
Nicolás
[1]: https://github.com/nkovacne/ovirt-storage-balancer
El 2019-08-04 17:57, Jason M. Stallings escribió:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VTWOMW6VMGK6ND...

Hi Jason, El 2019-08-06 22:43, Jason M. Stallings escribió:
Nicolas:
Thank you very much for this! Looks like exactly what I was looking for... The first burst was somewhat frightening but it ended well and now no storage domain is overused :)
Glad to hear that!
One quick question: Is it possible to limit balancing to more than one datacenter? I have 3 datacenters and I'd like to exclude one of them. I see the DATACENTER config variable could do this but I'm not sure how to define more than one datacenter.
Currently, the DATACENTER parameter only allows one value. When developing the code I didn't expect someone having more than two Data Centers :-) As a workaround, if you want to exclude the Storage Domains of an entire Data Center, you can exclude them explicitly using the "NOBALANCE" parameter of the config file, which does allow several values. If you consider this is something that should be implemented, feel free to fill an issue or extend the code and send a Pull Request. Regards.
Thanks
El mar., 6 ago. 2019 a las 15:05, <nicolas@devels.es> escribió:
Hi Jason,
A time ago I wrote a "Storage Balancer" exactly for that, move disks between storage domains to keep them below a maximum threshold of occupation. You can find the project at [1].
It's not perfect but has been working for us for the last 3 years with no issues.
That won't avoid people storing new disks in the first available storage domain, but the balancer will distribute them between the less occupied storage domains afterwards.
Hope this helps,
Nicolás
[1]: https://github.com/nkovacne/ovirt-storage-balancer [1]
El 2019-08-04 17:57, Jason M. Stallings escribió:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ [2] oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ [3] List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
[4] _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ [2] oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ [3] List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VTWOMW6VMGK6ND...
[5]
Links: ------ [1] https://github.com/nkovacne/ovirt-storage-balancer [2] https://www.ovirt.org/site/privacy-policy/ [3] https://www.ovirt.org/community/about/community-guidelines/ [4] https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2... [5] https://lists.ovirt.org/archives/list/users@ovirt.org/message/VTWOMW6VMGK6ND...

Nicolas: Hi Jason,
El 2019-08-06 22:43, Jason M. Stallings escribió:
Nicolas:
Thank you very much for this! Looks like exactly what I was looking for... The first burst was somewhat frightening but it ended well and now no storage domain is overused :)
Glad to hear that!
One quick question: Is it possible to limit balancing to more than one datacenter? I have 3 datacenters and I'd like to exclude one of them. I see the DATACENTER config variable could do this but I'm not sure how to define more than one datacenter.
Currently, the DATACENTER parameter only allows one value. When developing the code I didn't expect someone having more than two Data Centers :-)
As a workaround, if you want to exclude the Storage Domains of an entire Data Center, you can exclude them explicitly using the "NOBALANCE" parameter of the config file, which does allow several values.
Ok, that works. I have few storage domains so no problem adding them to the list. Thanks!!
If you consider this is something that should be implemented, feel free to fill an issue or extend the code and send a Pull Request.
It's ok that way, no need to change it as far as I'm concerned Thank you
Regards.
Thanks
El mar., 6 ago. 2019 a las 15:05, <nicolas@devels.es> escribió:
Hi Jason,
A time ago I wrote a "Storage Balancer" exactly for that, move disks between storage domains to keep them below a maximum threshold of occupation. You can find the project at [1].
It's not perfect but has been working for us for the last 3 years with no issues.
That won't avoid people storing new disks in the first available storage domain, but the balancer will distribute them between the less occupied storage domains afterwards.
Hope this helps,
Nicolás
[1]: https://github.com/nkovacne/ovirt-storage-balancer [1]
El 2019-08-04 17:57, Jason M. Stallings escribió:
Hello
I'm trying to figure out a way to automatically distribute our storage domain occupation evenly or at least avoid them getting full. We have a lot of users creating vms and they seem to select the first available storage domain, thus one is nearly full and the rest are barely used.
Is there a way to accomplish that?
Thank you
Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ [2] oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ [3] List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
[4] _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ [2] oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ [3] List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VTWOMW6VMGK6ND...
[5]
Links: ------ [1] https://github.com/nkovacne/ovirt-storage-balancer [2] https://www.ovirt.org/site/privacy-policy/ [3] https://www.ovirt.org/community/about/community-guidelines/ [4]
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F66H6U2CWHUFK2...
[5]
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VTWOMW6VMGK6ND...
participants (4)
-
Dmitry Filonov
-
Jason M. Stallings
-
Laura Wright
-
nicolas@devels.es