When you copy a system, you create a copy of the source system as a new target system. The most common use of copy function is to take a source production system and create a copy of that system for quality assurance or project work. Other use cases may also apply.
Procedure
- To copy a system you need to login to SAP LaMa's administrative console and Click on the System and AS Provisioning tab under Provisioning menu option in the main menu bar.
Figure 1. SAP LaMa Administrative Console
- Click on the source host that you wish to copy. Then Click on the Copy System tab to start the process to define the copy operation.
Figure 2. Copy System
- In the first step called Basic do the following —
Figure 3. System Copy - Basic
- Enter a new System ID
- Provide a new system password for the new system that you are going to create as a result of Copy operation. You need to re-enter the password to confirm the same.
- Click on the Next tab.
- You are now taken to the second step called Hosts.
Figure 4. System Copy - Hosts
- In the first step here called Target Selection, you select the target resource pool or ESXi Host on which to place the new copied system.
Figure 5. Define Virtual Host - Target Selection
- In this step called Data Storage, you select a target datastore for the new copy system.
Figure 6. Define Virtual Host - Data Storage
Note: Linked copies can only use the same datastore as the source system. - In this step called Guest Customization, you do the following —
Figure 7. Define Virtual Host - Guest Customization
- Choose whether you want to create either a linked copy or a full copy. You do this by selecting appropriate value in the Value drop down list.
- A linked copy creates a target system that has a file link to the original source system. This reduces the utilized storage for the target system. Linked copy is most commonly used in development or sandbox systems. Linked copy operation completes substantially faster than full copy.
- A full copy creates a target system that has exactly the same disk structure and size as the source system. There is no link between the source and target systems here. For example, you can use Full copies to create production systems and/or systems that can be exported to be used in other datacenters.
- You need to select the Guest Customization Specification.
- Guest Customization Specifications are created in the VMware vCenter Server and are made available via the VMware Adapter for SAP Landscape Management. You will need a Guest Customization Specification in order to copy a system.
- Work with your VMware Administrator to create a Guest Customization Specification if none is present in the SAP LaMa.
- Note that DHCP customization specifications may cause an inconsistent /etc/hosts file contents in the target system. PROMPT customization specifications is a more reliable option. See section Known Issues for more information.
- Click on the Next tab to move to the next step.
- Choose whether you want to create either a linked copy or a full copy. You do this by selecting appropriate value in the Value drop down list.
- In this step called Network Adapters, you select the target Network for the network adapters of the new copy VM.
Figure 8. Define Virtual Host - Network Adapters
- If you are going to change the virtual network on this step, ensure that the network is also available to the LaMa. This is needed for the LaMa to be able to manage the new target system.
- Changing the virtual network should be considered on the Host Names step in order to assign the consistent IP addresses and hostnames from a new network.
- Click Next to move to the next step called Host Names.
Figure 9. Define Virtual Host - Host Names
- Click the Next tab to move to the Summary step.
Figure 10. Define Virtual Host - Summary
- In the first step here called Target Selection, you select the target resource pool or ESXi Host on which to place the new copied system.
- You are now back at the System Copy window.
Figure 11. System Copy - Hosts
Figure 12. System Copy - Host Names
Note: If the host is not configured as adaptive instance you will see warnings that you need to ignore by pressing Ignore Warnings for this step button.Click Next tab to move to the next step. -
Figure 13. System Copy - Instance Number
- You now move to the step called Consistency. In this step you select the appropriate database consistency method, depending on what state the database is in, by Clicking on the radio button against one of the following option —
Figure 14. System Copy - Consistency
- Online: Backup/Suspend IO Mode with a timeout value — Use this option typically for copying production systems to prevent system outages. A timeout value is provided to ensure database consistency is done in a timely manner.
- Offline: Stop and Restart System — When you select this option, the SAP LaMa will stop the system, take the copy and then restart the system after the copy completes.
- Offline: Database already stopped — Use this option when the database is already stopped.
- Database was stopped during system snapshot — Use this option when the database has already been snapshotted prior to initiating the copy process.
- There is also an option to schedule the cloning operation from here so not to impact the system activity further at the current instant. You can provide the values for date and time to schedule the operation.
Note: Offline linked copy of SAP HANA on SLES must be performed with closed hbdstudio on source machine.When you have selected one of the options mentioned above, Click Next to proceed to the next step. -
Figure 15. System Copy - Users
Note: For the Copy process the SAP LaMa copies the users from the source system over to the target system changing them to match with the new System ID.Click Next to proceed further. -
Figure 16. System Copy - Rename
Note: Observe that the SAP LaMa takes the source system ID and swaps it out for the new target system ID. Click the Next tab to proceed to the next step. -
Figure 17. System Copy - Isolation
-
Figure 18. System Copy - ABAP PCA
- In this step called Summary, you get to see the consolidated view of all the settings you have made so far. When you are done reviewing the settings, you Click on Start System Copy tab to initiate the copy operation.
Figure 19. System Copy - Summary
- You can monitor the system copy progress by Clicking on Activities tab under Monitoring section in the menu bar.
Figure 20. Monitoring - Activities
Figure 21. Monitoring - Activity Log Entry
- In the first step called Basic do the following —
Results
Successful completion of this task enables you to copy a source system into a new target system.
Note: Consider a system with two network interfaces, wherein one network interface is an actual vNIC and the second is an IP alias on the said vNIC. If you successfully clone or copy this system via LaMa, after you reboot or restart the network you will see that the target system has only one network interface. The alias disappears. For systems that are not adaptively installed or those that cannot be relocated, it is not possible to change the host name. SAP Landscape Management (LaMa) activates Internet Protocol (IP) addresses only in a transient way. When the host is rebooted, the IP addresses are no longer active.