大网数据广告活动
服务器运维问答

Restoring multiple EBS snapshots to larger volumes in a single logical volume

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-11-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。