问题
Is there a way to increase the storage capacity of an existing SQL Server RDS instance on AWS ?
AWS documentation says it can't be as per https://aws.amazon.com/premiumsupport/knowledge-center/rds-out-of-storage/
What are other alternatives to achieve this ? How are people dealing with this situation in real time like in the case of production scenario ?
回答1:
Its not possible to increase the storage for SQL Server Database on Amazon RDS.
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ModifyInstance.SQLServer.html
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html
https://aws.amazon.com/premiumsupport/knowledge-center/rds-out-of-storage/
The only option is to Create a new RDS instance with more size and migrate all the data/databases
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
This really really sucks and defy the meaning of cloud, i really dont have any idea how the whole world is handlin this scenario especially in production environments where data grows rapidly. Also the Amazon DMS service for Data Migartion is not useful at all as it does not transfer the Identity columns, foreign keys/secondary keys/Indexes and Stored Procedures/Functions/Triggers.
回答2:
You can modify the volume size of a running instance from the Modify DB Instance page.
- Go to Instances;
- Select your instance and choose 'Modify' from the 'Instance Actions' dropdown;
- Locate the 'Allocated Storage' TextBox
- Change the value and click 'Continue'
See https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ModifyInstance.SQLServer.html
回答3:
You can take snapshot of the current RDS and spawn a new RDS with more storage and this snapshot id.
Not sure how to do this from AWS-cli, but using cloudformation, you can create a new RDS instance from snapshot and give it more size. See the below links
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsnapshotidentifier
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-allocatedstorage
来源:https://stackoverflow.com/questions/38331599/increasing-the-storage-of-an-existing-sql-server-rds-instance-on-aws