How CloudStack handles multiple NFS type Primary Storage #9073
-
I have added a second primary storage to my CloudStack which has augmented the storage space in Dashboard. I have gone through the CloudsStack documents and browsed through the Internet but didn't get a precise clue how ACS is managing multiple NFS storages to distribute VM image creation. I didn't find any global parameters either to control this distribution behavior. Can someone please enlighten me? ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATIONOS / ENVIRONMENTUbuntu 20.04 LTS SUMMARYWondering how the writing is managed by ACS STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Please post your questions on the mailing list, GitHub is not the right place for it (it creates clutter) and you will get a much quicker reply on the mailing list (users@). |
Beta Was this translation helpful? Give feedback.
-
Got it thanks. Can you please delete this from here? |
Beta Was this translation helpful? Give feedback.
-
@shaerul for all NFS primary storages, CloudStack copies the template/iso (image) on the primary storage from the secondary storage which is called preparing template on primary storage. Such a prepared or cached template is then used to deploy VMs on primary storage where for most hypervisors the VM’s boot/root disk is a copy or link to the cached image. |
Beta Was this translation helpful? Give feedback.
@shaerul It follows a lazy deployment strategy, i.e. it copies the templates (images) to a primary storage only when it needs to create a VM's root disk on a pool. There's also a prepareTemplate API that can load a template across pools to do this ahead of time.
In terms of using storage pool upon VM deployment or volume creation, it depends what deployment planning algorithm is used, pl search for these global settings (for tuning and configuration): image.store.allocation.algorithm [1], vm.allocation.algorithm [2].
[1] Image store allocation algorithm (image.store.allocation.algorithm)
firstfitleastconsumed','random' : Order in which hosts within a cluster will be considered for VM/volu…