bernardodemarco commented on PR #10201:
URL: https://github.com/apache/cloudstack/pull/10201#issuecomment-2622508509

   > @bernardodemarco , I don't think this falls withing the parameters of our 
automated lab env builds ;) To test this I need an env with both shared primary 
and local VMFS based storage , is that correct?
   
   Yes, but there is also a workaround that can facilitate the testing of this 
PR:
   1. Enable local storage for user VMs in the environment zone
   2. Set the global setting `vm.allocation.algorithm` to 
`firstfitleastconsumed`
   3. Restart the management server, if required
   4. Update the `pool_type` column of the `cloud.storage_pool` table to `VMFS` 
for the local storage pools:
   ```sql
   update storage_pool set pool_type = "VMFS" where pool_type = "Filesystem";
   
   select name, pool_type, path from storage_pool;
   +---------------------------+-------------------+-------------------------+
   | name                      | pool_type         | path                    |
   +---------------------------+-------------------+-------------------------+
   | pri-nfs-01                | NetworkFilesystem | /mnt/pri-nfs-01         |
   | cloudstack-local-604adf49 | VMFS              | /var/lib/libvirt/images |
   +---------------------------+-------------------+-------------------------+
   2 rows in set (0.001 sec)
   
   ```
   
   5. When trying to deploy instances to the local storage pools, before the PR 
changes, the volume allocation process was failing. After the changes, the 
allocation is successfully accomplished


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to