The ArcGIS for Server AMIs use a separate Amazon Elastic Block Storage (EBS) volume for data storage. Therefore, the ArcGIS and database management system (DBMS) software are stored in a different location from the data, and you can move data from one instance to another by creating a snapshot of an existing EBS volume, creating a volume from the snapshot, and attaching the new volume to a different ArcGIS Server on Amazon Web Services site.
You would do this if you want to move your existing data and services to a site created from a newer ArcGIS for Server AMI, or you want to have multiple sites with the same data.
The following workflow explains how to move a volume from one Windows ArcGIS Server on Amazon Web Services site to another.
Guidelines for moving EBS volumes
Be aware of the following when moving volumes between Windows instances:
- You must stop all your services and ArcGIS for Server on your source instance before moving volumes.
- The ArcGIS for Server directory structure on the new volume must be the same as it was on the old volume. This is accomplished by making a snapshot of your existing volume.
- ArcGIS for Server relies on the volume being mapped to the D drive on Windows.
- The operating system must be the same when moving volumes between instances. For example, you cannot move a volume from a Windows instance to a Linux instance.
- Block device names must be unique; therefore, when you attach the new volume to the target instance, be sure to give it a different name from the existing one.
- To move an EBS volume that contains geodatabases in SQL Server Standard or Express, you must first detach the databases from the source SQL Server instance. After you move the EBS volume to another ArcGIS Server on Amazon Web Services instance, you must attach the databases to the new SQL Server instance before you can use them. You cannot attach a newer release database to an older release SQL Server instance.
Prepare source volume
Before you can create a snapshot of the volume, you must stop your services, stop ArcGIS for Server, detach SQL Server databases (if using them), unmount the volume, and stop the existing ArcGIS Server on Amazon Web Services site.
- In ArcGIS Server Manager or ArcGIS for Desktop, stop all services running on your GIS server.
- Make a remote desktop connection to the source instance.
See Administer your Amazon EC2 instance with Windows Remote Desktop Connection for instructions.
- Stop ArcGIS for Server.
- Open the Windows Services dialog box.
- Right-click ArcGIS Server in the Services list and click Stop.
- If you have geodatabases in SQL Server, detach them.
- If your site is licensed with an ArcGIS for Server Enterprise license, use SQL Server Management Studio to detach the databases.
- If your site is licensed with an ArcGIS for Server Workgroup license, use ArcGIS for Desktop to detach the geodatabases from the database server.
Create snapshot of data volume
Once the source instance is ready, create a snapshot of the volume you want to move. Creating a snapshot basically makes a copy of the content of the existing volume.
- Log in to the Amazon Web Services Management Console.
- Click the EC2 link and display the page corresponding to your Amazon region.
- Click Volumes.
- Right-click the volume you want to move and click Create Snapshot.
- Type a name and description for your snapshot that will help you find it in the snapshot list.
- Click Yes, Create.
Create target instance
If the target instance has not been created yet, create it now.
Once you have a target instance, record the following information about it:
- The instance ID
- The instance zone (for example, us-east-1d)
- The volume ID of the volume you will be replacing
- The block device name of the existing volume on the target site
Block device names must be unique, so when you attach the new volume to the target site, be sure to give it a different name from the existing one.
By default, the ArcGIS for Server AMIs use xvdg for the EBS volume name.
Create volume from snapshot
You must create a volume from the snapshot you made of your source volume so you can attach it to the target site. The volume you create can be the same size or larger than the original volume, but not smaller. Do the following in the Amazon Web Services Management Console to create a new volume from the snapshot:
- Navigate to the EC2 page for your region and click Snapshots.
- Right-click the snapshot you created from the source volume and click Create Volume from Snapshot.
- Specify the size of your new volume.
The new volume can be the same size or larger than the original volume, but not smaller.
- From the drop-down list, choose the instance zone you recorded for the target instance.
- Click Yes, Create.
- Click Volumes.
You should see your new EBS volume being created. Record the volume ID for future use.
Attach new volume to target site
Use the Amazon Web Services Management Console to attach the new volume to your target site. Then, connect to the target site and bring the volume online.
- In Amazon Web Services Management Console, right-click the new EBS volume and click Attach Volume.
- From the drop-down list, choose the instance ID of the target instance.
- Type a name for the new block device.
Remember, the device name must be unique on that instance.
- Click Yes, Attach.
- Make a remote desktop connection to the target instance and stop ArcGIS for Server.
See Administering your Amazon Web Services instance with Windows Remote Desktop Connection for information on making a remote desktop connection to a Windows instance.
- Open the Microsoft Server Manager on the target instance.
- Expand the Storage node and click Disk Management.
Notice that the new volume is offline.
- Right-click the disk volume in the Graphical View and click Online.
Replace volume on target site
Remove the empty volume that came with the new ArcGIS Server on Amazon Web Services site, remap your newly attached volume to the D drive, and attach geodatabases (if needed).
To remove the volume, you must detach geodatabases (if applicable) and stop the services that are pointing to the volume to be detached.
- If you are using SQL Server Standard, start Management Studio, detach the geodatabases from the SQL Server instance, then stop the SQL Server instance.
- If you are using SQL Server Express, do the following to detach the geodatabases and stop the database server:
- Start ArcGIS for Desktop.
- Right-click each geodatabase on the database server, one at a time, and click Detach.
- Right-click the database server and click Disconnect .
- Right-click the database server and click Stop.
- Open the Services dialog box and stop the ArcGIS for Server service.
- In Microsoft Server Manager on the target instance, expand the Storage node and click Disk Management.
- Right-click the volume that came with the new site and click Change Drive Letter and Paths.
- Choose the drive to unmount and click Remove.
- Click Yes when prompted to confirm that you want to remove the drive.
- Right-click the newly attached volume and click Change Drive Letter and Paths.
- Click Change.
- Choose D from the drop-down list and click OK.
- When prompted to confirm, click Yes.
- Close all applications and disconnect from the target instance.
- Stop your site using ArcGIS Server Cloud Builder on Amazon Web Services (not the Amazon Web Services Management Console).
- Log in to Amazon Web Services Management Console.
- Click Volumes.
- Take note of the volume ID of the volume you want to delete; you will need this information to identify the volume once it is detached.
- Right-click the empty volume and click Detach Volume.
- Click Yes, Detach to confirm.
- If you no longer need the detached volume, right-click it and click Delete Volume.
- Click Yes, Delete to confirm.
- Start your site using ArcGIS Server Cloud Builder on Amazon Web Services (not the Amazon Web Services Management Console).
Attach SQL Server databases
If you have geodatabases in SQL Server, you can attach them now that you have remapped the replacement drive.
Follow these steps if your instance is licensed with an ArcGIS for Server Enterprise license:
- Log in to the target instance.
- Start SQL Server Management Studio.
- Attach your existing, populated geodatabases from their location on the newly attached volume.
See the section "Attaching the database and transaction log files to the new instance" in Moving geodatabases in SQL Server to an ArcGIS Server for Amazon Web Services instance for instructions.
Follow these steps if your instance is licensed with an ArcGIS for Server Workgroup license:
- Start ArcGIS for Desktop on the new instance.
Remember to authorize ArcGIS for Desktop on the new instance. This is done from the ArcGIS Administrator.
- Connect to the database server on the new instance.
- Attach the geodatabases from the new volume to the database server.
Once all your data is accessible, you can restart or republish your services.
You can restart the services that got moved with your volume. For geodata services, though, you must first reset the replica properties to point to the geodata service on the new ArcGIS Server on Amazon Web Services site.
Use Replica Manager to reset the replica target.
- Start ArcMap or ArcCatalog.
- Create a GIS Server connection to the new ArcGIS Server on Amazon Web Services site.
- Connect to your parent replica geodatabase.
- Right-click the geodatabase, point to Distributed Geodatabase, and click Manage Replicas.
The Replica Properties dialog box opens.
- Right-click the replica in the list and click Properties.
- Click the Advanced tab.
- Set a new relative replica connection by browsing to your geodata service on the new ArcGIS Server on Amazon Web Services site.
- Click OK to close the Replica Properties dialog box.
- Close the Replica Manager.
- Restart your services from ArcGIS for Desktop or ArcGIS Server Manager.