Skip to content

Commit 4ec617b

Browse files
Merge pull request #611 from shapeblue/improve_template_copy_btw_secondary_storages
Allow copy of templates from secondary storages of same or other zone when adding a new secondary storage
2 parents 79e87a6 + d0880cf commit 4ec617b

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

source/installguide/configuration.rst

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,9 +1635,9 @@ System Requirements for Secondary Storage
16351635
Adding Secondary Storage
16361636
~~~~~~~~~~~~~~~~~~~~~~~~
16371637

1638-
When you create a new zone, the first secondary storage is added as part
1639-
of that procedure. You can add secondary storage servers at any time to
1640-
add more servers to an existing zone.
1638+
When you create a new Zone, the first Secondary Storage is added as part
1639+
of that procedure. You can add Secondary Storage servers at any time to
1640+
add more servers to an existing Zone.
16411641

16421642
.. warning::
16431643
Ensure that nothing is stored on the server. Adding the server to
@@ -1664,29 +1664,29 @@ add more servers to an existing zone.
16641664

16651665
#. Fill in the following fields:
16661666

1667-
- Name. Give the storage a descriptive name.
1667+
- **Name**: Give the storage a descriptive name.
16681668

1669-
- Provider. Choose S3, Swift, NFS, or CIFS then fill in the related
1669+
- **Provider**: Choose S3, Swift, NFS, or CIFS then fill in the related
16701670
fields which appear. The fields will vary depending on the storage
16711671
provider; for more information, consult the provider's
16721672
documentation (such as the S3 or Swift website). NFS can be used
1673-
for zone-based storage, and the others for region-wide storage.
1673+
for Zone-based storage, and the others for region-wide storage.
16741674
For Hyper-V, select SMB/CIFS.
16751675

16761676
.. warning::
16771677
Heterogeneous Secondary Storage is not supported in Regions. You can
16781678
use only a single NFS, S3, or Swift account per region.
16791679

1680-
- Create NFS Secondary Staging Store. This box must always be
1680+
- **Create NFS Secondary Staging Store**: This box must always be
16811681
checked.
16821682

16831683
.. warning::
16841684
Even if the UI allows you to uncheck this box, do not do so. This
16851685
checkbox and the three fields below it must be filled in. Even when
1686-
Swift or S3 is used as the secondary storage provider, an NFS staging
1686+
Swift or S3 is used as the Secondary Storage provider, an NFS staging
16871687
storage in each zone is still required.
16881688

1689-
- Zone. The zone where the NFS Secondary Staging Store is to be
1689+
- **Zone**: The Zone where the NFS Secondary Staging Store is to be
16901690
located.
16911691

16921692
- **SMB Username**: Applicable only if you select SMB/CIFS provider.
@@ -1700,10 +1700,34 @@ add more servers to an existing zone.
17001700
- **SMB Domain**: Applicable only if you select SMB/CIFS provider.
17011701
The Active Directory domain that the SMB share is a part of.
17021702

1703-
- NFS server. The name of the zone's Secondary Staging Store.
1703+
- **NFS server**: The name of the Zone's Secondary Staging Store.
17041704

1705-
- Path. The path to the zone's Secondary Staging Store.
1705+
- **Path**: The path to the Zone's Secondary Staging Store.
1706+
1707+
- **Copy Templates from other storages**: This switch can be used to automatically
1708+
copy existing Templates from Secondary Storages in other Zones instead of
1709+
fetching from their URLs, more details are as below.
1710+
1711+
1712+
When a new Secondary Storage is added, the Management Server attempts to make
1713+
existing Templates available on the new Secondary Storage.
1714+
1715+
CloudStack improves Template availability using the configuration:
1716+
1717+
+----------------------------------------------+-------------------------------------------------------------------------------------------------------------+-----------+
1718+
| Name | Description | Default |
1719+
+==============================================+=============================================================================================================+===========+
1720+
| copy.templates.from.other.secondary.storages | Allow Templates to be copied from existing Secondary Storages (within the same Zone or across Zones) | true |
1721+
| | when adding a new Secondary Storage, instead of downloading them from the source URL. | |
1722+
+----------------------------------------------+-------------------------------------------------------------------------------------------------------------+-----------+
1723+
1724+
This setting is enabled by default and can be configured globally or at Zone level.
1725+
1726+
CloudStack applies the following order of steps while trying to make a Template available in the new Secondary Storage:
17061727

1728+
1. Attempt to copy the Template from another Secondary Storage in the same Zone.
1729+
2. If not found, attempt to copy the Template from a Secondary Storage in a different Zone.
1730+
3. If the copy operation fails, CloudStack falls back to downloading the Template using its URL as registered.
17071731

17081732
Adding an NFS Secondary Staging Store for Each Zone
17091733
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)