Increasing the storage of an existing SQL Server RDS instance on AWS

烈酒焚心 提交于 2020-01-30 07:50:27

问题


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.

  1. Go to Instances;
  2. Select your instance and choose 'Modify' from the 'Instance Actions' dropdown;
  3. Locate the 'Allocated Storage' TextBox
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!