问题原文
原帖链接 · wesley.fok · CC BY-SA 4.0
The situation: we have a MySQL server in AWS using three EBS volumes in a striped logical volume to hold the database data. The logical volume is close to full, so we need to expand it somehow. One option would be to relaunch the server and attach new, larger EBS volumes and then restore from an existing snapshot from the old server. (We'll need to do this eventually the next time we have to replace the server for other reasons, which is why I'm skipping over options that change the existing server in-place.)
My question is this: if we have three EBS snapshots of (say) 50GB each that make up the logical volume, can I restore these snapshots to a fresh server with three EBS volumes that are larger (say, 75GB or 100GB or whatever)? Or is this a recipe for disaster? Are there any special steps I'd need to take over our current process? If I wanted to instead add a fourth EBS volume of 50GB, could I restore the three snapshots to the new four-volume group?
已采纳解答
原帖链接 · Tim · CC BY-SA 4.0
You can simply increase the size of the current volume (more detail here). I know you said you discounted that option because you'll need a new instance, but you can easily mount these same volumes to a new instance. If you need the old and new instances working at the same time with no interruption (you didn't say) then this won't work.
NB: I'm explicitly not going to copy a large web page to here. AWS documentation is fairly stable, and is updated regularly, I don't want out of date answers to cause problems.
Alternate Solution
Just restore your snapshots to three new volumes, mount them to a new instance, and use them.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
