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:
- Stop the ArcGIS Server Windows Service.
- Open the Windows Services manager.
- Right-click the service ArcGIS Server and click Stop.
- 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.
- Start ArcCatalog.
- In the Catalog tree, expand Database Servers, then expand your database server instance.
- Right-click the database egdb, point to Administration, then click Detach.
- Right-click the database geodata, point to Administration, then click Detach.
- 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.
- Start SQL Server Management Studio.
- Log in to your SQL Server instance using operating system authentication.
- Expand the Databases folder.
- Right-click the database egdb, point to Tasks, then click Detach.
- Leave the default detachment options and click OK.
- Repeat the above two substeps to detach the database geodata.
- 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.
- Close SQL Server Management Studio.
- 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.
- In Windows, click Start and type diskmgmt.msc in the search box. Then press Enter.
- Right-click your D drive, click Delete Volume, and click Yes when prompted to confirm.
- Log in to the AWS Management Console and display the EC2 page corresponding to your Amazon region.
- Click Volumes and find the original attached volume.
- 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.
- 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.
- 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:\.
- Grant read and write permission for the ArcGIS Server account for all the folders on your new volume.
- In the AWS Management Console, click Instances, right-click your instance, and click Reboot. Wait several minutes for your instance to reboot.
- 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.
- In ArcCatalog, expand Database Servers and, if necessary, double-click your database server instance to connect to it.
- Right-click your database server instance and click Attach.
The Attach Geodatabase dialog box opens.
- 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.
- Repeat the above two substeps to attach your geodata database. The .mdf file is probably in D:\data\geodatabase\geodata.mdf.
- 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.
- Log in to SQL Server Management Studio, right-click the Databases folder and click Attach.
- Click Add on the Attach Databases dialog box.
- 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.
- Repeat the above two substeps to add your geodata database. The .mdf file is probably in D:\data\geodatabase\geodata.mdf.
- Click OK to attach both databases.
- Close SQL Server Management Studio and your Windows Remote Desktop connection.
- In the AWS Management Console, click Instances, right-click your instance, and click Reboot. Wait several minutes for your instance to reboot.
- Preview the sample service, or publish a new service and verify that your site is working as expected.
- Return to the Volumes page of the AWS Management Console.
- Right-click your original volume (the one you had detached) and click Delete Volume.