Skip To Content

Replace the default EBS volume on Windows

Any EC2 instance you create using the ArcGIS Server Amazon Machine Images (AMIs) has an EBS volume attached. The size of this volume is set at 100 GB by default when you build your site with ArcGIS Server Cloud Builder on Amazon Web Services. If you build your site with the AWS Management Console, the size is 10 GB. If you later decide to change the drive size, you can detach it and replace it with another drive.

Tip:

If you just need more space, it might be easier to add another drive instead of replacing the existing one.

Log in to your instance and follow the steps below to replace the attached drive with one of a different size:

  1. Stop the ArcGIS Server Windows Service.
    1. Open the Windows Services manager.
    2. Right-click the service ArcGIS Server and click Stop.
  2. Perform the following substeps if you are working with an EC2 instance that has a SQL Server Express geodatabase installed along with ArcGIS Server. Otherwise skip this step.
    1. Start ArcCatalog.
    2. In the Catalog tree, expand Database Servers, then expand your database server instance.
    3. Right-click the database egdb, point to Administration, then click Detach.
    4. Right-click the database geodata, point to Administration, then click Detach.
  3. Perform the following substeps if you are working with an EC2 instance that has a SQL Server Standard geodatabase installed along with ArcGIS Server. Otherwise skip this step.
    1. Start SQL Server Management Studio.
    2. Log in to your SQL Server instance using operating system authentication.
    3. Expand the Databases folder.
    4. Right-click the database egdb, point to Tasks, then click Detach.
    5. Leave the default detachment options and click OK.
    6. Repeat the above two substeps to detach the database geodata.
    7. In the Object Explorer window of SQL Server Management Studio, right-click your database instance (it is probably called localhost) and click Stop.

      Click Yes when prompted to confirm.

    8. Close SQL Server Management Studio.
  4. Copy all the contents of the original attached volume into a folder on your root system (Linux) or C drive (Windows).

    For example, on Windows, you could create a new folder C:\temp, and copy all folders from D:\ into C:\temp.

    If the root system or C drive is not big enough, you must copy the files to a different location.

  5. In Windows, click Start and type diskmgmt.msc in the search box. Then press Enter.
  6. Right-click your D drive, click Delete Volume, and click Yes when prompted to confirm.
  7. Log in to the AWS Management Console and display the EC2 page corresponding to your Amazon region.
  8. Click Volumes and find the original attached volume.
  9. Right-click the volume and click Detach Volume. Click Yes, Detach when prompted.

    Detaching may take some time. If the volume does not detach, right-click the volume and choose Force Detach.

  10. Create a new EBS volume of your desired size and attach it to your instance. This process is described in Add disk space to your Windows site and Add disk space to your Linux site.
  11. Copy all the original contents of your volume back onto the new volume at the same paths used before.

    For example, if you copied the contents from D:\ into C:\temp, move them back to D:\.

  12. Grant read and write permission for the ArcGIS Server account for all the folders on your new volume.
  13. In the AWS Management Console, click Instances, right-click your instance, and click Reboot. Wait several minutes for your instance to reboot.
  14. Perform the following substeps if you are working with an EC2 instance that has a SQL Server Express geodatabase installed along with ArcGIS Server. Otherwise, skip this step.
    1. In ArcCatalog, expand Database Servers and, if necessary, double-click your database server instance to connect to it.
    2. Right-click your database server instance and click Attach.

      The Attach Geodatabase dialog box opens.

    3. Browse to the location of your egdb database, which is probably in D:\data\geodatabase\egdb.mdf if you configured your new volume as the D drive. Click OK.
    4. Repeat the above two substeps to attach your geodata database. The .mdf file is probably in D:\data\geodatabase\geodata.mdf.
  15. Perform the following substeps if you are working with an EC2 instance that has a SQL Server Standard geodatabase installed along with ArcGIS Server. Otherwise skip this step.
    1. Log in to SQL Server Management Studio, right-click the Databases folder and click Attach.
    2. Click Add on the Attach Databases dialog box.
    3. Browse to the location of your egdb database, which is probably in D:\data\geodatabase\egdb.mdf if you configured your new volume as the D drive. Then click OK.
    4. Repeat the above two substeps to add your geodata database. The .mdf file is probably in D:\data\geodatabase\geodata.mdf.
    5. Click OK to attach both databases.
    6. Close SQL Server Management Studio and your Windows Remote Desktop connection.
    7. In the AWS Management Console, click Instances, right-click your instance, and click Reboot. Wait several minutes for your instance to reboot.
  16. Preview the sample service, or publish a new service and verify that your site is working as expected.
  17. Return to the Volumes page of the AWS Management Console.
  18. Right-click your original volume (the one you had detached) and click Delete Volume.