Amazon Relational Database Service (Amazon RDS) for SQL Server situations historically use a single Amazon Elastic Block Retailer (Amazon EBS) quantity to retailer database information. With the introduction of the extra storage quantity function, now you can connect as much as three extra storage volumes to your Amazon RDS for SQL Server situations. By utilizing this function, you possibly can distribute your knowledge and log information throughout a number of volumes. This enhancement gives extra granular management over storage configuration and efficiency optimization.
On this publish, you’ll find totally different situations for working with the extra storage quantity function.
Answer overview
The next structure diagram illustrates the extra storage quantity configuration, exhibiting the usage of main and secondary hosts, every with two volumes, in a multi-Availability Zone (multi-AZ) configuration.
On this publish, you’ll be taught in regards to the following situations:
- Including a brand new storage quantity
- Scaling an current storage quantity
- Restoring a database on a further storage quantity
- Deleting a storage quantity
This answer requires new AWS sources that may incur prices in your account. See AWS Pricing for extra info.
Conditions
We assume you will have familiarity with navigating the AWS Administration Console. For this publish, you additionally want the next sources and companies enabled in your AWS account:
Observe: For present limitations on the extra storage quantity function, see Working with SQL Server storage.
Including a brand new storage quantity
You possibly can add as much as three extra storage volumes both throughout occasion creation or after an occasion has been deployed. Extra storage volumes complement the default storage quantity. The default quantity makes use of D: as its drive letter. Extra storage volumes help two storage sorts: Basic Goal SSD (gp3) and Provisioned IOPS (io2), so you possibly can select the optimum storage efficiency in your database workloads. Quantity names are mapped to home windows disk letters as follows:
- rdsdbdata2 –
H:drive - rdsdbdata3 –
I:drive - rdsdbdata4 –
J:drive
Add a storage quantity when creating an occasion
So as to add a further storage quantity throughout an occasion creation, full the next steps:
- See Create and Hook up with a Microsoft SQL Server Database with Amazon RDS for detailed directions to create an RDS for SQL Server occasion.
- For Storage, choose the suitable storage sort. That is your
D:quantity. - For Extra storage volumes – non-obligatory, Select Add storage quantity.

- Enter or choose applicable values for Quantity identify, Storage sort, Allotted storage, Provisioned IOPS, and Storage throughput.

Including a storage quantity to an current occasion
Full these steps so as to add storage volumes to an current RDS for SQL Server occasion:
- On the Amazon RDS console, select Databases.
- For DB identifier, choose your RDS for SQL Server occasion. On this instance, I selected rds-asv-demo.
- Select Configuration.
- Select Add storage quantity.
- Choose applicable values for Quantity identify, Storage sort, Allotted storage, Provisioned IOPS, and Storage throughput.
- For Scheduling, choose Apply instantly and select Submit.

Alternatively, use the next AWS Command Line Interface (AWS CLI) so as to add a brand new storage quantity to an current Amazon RDS for SQL Server occasion:
Substitute , , , , and with applicable values.
For this instance, for , use rdsdbdata2, rdsdbdata3, or rdsdbdata4. For use gp3 or io2.
Scaling a further storage quantity
To scale a further storage quantity on an current RDS for SQL Server occasion, full the next steps. Whereas this operation usually runs with out downtime, we suggest performing it throughout low-activity durations.
- On the Amazon RDS console, select Databases.
- For DB identifier, choose your database.
- Select Configuration.
- Beneath Extra storage volumes, choose the storage quantity to scale and select Modify.
- For Modify storage quantity, select applicable values for Storage sort, Allotted storage, Provisioned IOPS, and Storage throughput.
- For Scheduling, choose an applicable worth and select Submit.
To scale an current storage quantity, utilizing the AWS CLI:.
Substitute , and with applicable values.
Within the following instance, we scale the IOPS of rdsdbdata2 quantity to 4000.
Restoring a database on a further storage quantity
To revive a database on a further storage quantity, carry out the next steps.
- Hook up with your RDS for SQL Server occasion in SQL Server Administration Studio.
- Choose New Question.
- Use the next instance command to revive a database named
AdventureWorks2019on extra storage volumes. You possibly can obtain a pattern backup from AdventureWorks2019. Substitutewith an applicable worth.See Importing and exporting SQL Server databases utilizing native backup and restore for directions to carry out a database restore into an RDS for SQL Server occasion. The command assumes you will have configured extra storage volumes named
HandIin your RDS for SQL Server occasion. - Test the standing of the restore utilizing the next command. Substitute
with applicable values.
exec msdb.dbo.rds_task_status @task_id=
- Anticipate the restore to finish efficiently. Use the next command to test the situation of the bodily information.

Deleting a further storage quantity
You possibly can solely delete a further storage quantity in your occasion when it’s not in use and you’ll’t delete the D: drive. To delete a further storage quantity on an current RDS for SQL Server occasion, full the next steps:
- On the Amazon RDS console, select Databases.
- For DB identifier, choose your database.
- Select Configuration.
- Beneath Extra storage volumes, choose the storage quantity to delete and select Delete.
- On the Delete storage quantity pop up window, enter
deleteand select Delete.

Alternatively, use the next AWS CLI command to delete an current storage quantity on the RDS for SQL Server occasion:
Substitute , and with applicable values.
Clear up
To keep away from incurring pointless prices, take away any volumes that you simply’ve created however not want by following the directions within the previous part.
Conclusion
On this publish, we launched extra storage quantity options for Amazon RDS for SQL Server situations and demonstrated sensible implementation situations. We walked via the method of provisioning, deleting and managing extra storage volumes, and confirmed you restore databases to those volumes to optimize your storage structure.Extra storage volumes present flexibility to prepare your knowledge by workload sort, enhance efficiency via devoted IOPS allocation, and scale your storage independently whereas sustaining excessive availability and sturdiness.
You probably have questions on implementing extra storage volumes in your atmosphere, go away a remark.
Concerning the authors
