首页 > 其他分享 >aws EBS 磁盘 缩减 decrease the size of ebs volume

aws EBS 磁盘 缩减 decrease the size of ebs volume

时间:2022-11-24 13:56:56浏览次数:60  
标签:ebs aws volume decrease 服务器 磁盘 size

请参考 : https://medium.com/@m.yunan.helmy/decrease-the-size-of-ebs-volume-in-your-ec2-instance-ea326e951bce

大概流程如下,详细请参考外网(基于ubuntu)

  1. 买新的磁盘(比较小的)

  2. 挂载新的磁盘到旧服务器上

  3. 复制旧服务器的根目录到新的磁盘上

  4. 安装grub 到新的磁盘上

  5. 把新磁盘的uuid修改为旧磁盘的uuid

  6. 修改新磁盘的system label为旧服务器的system label

  7. 旧服务器关机

  8. detach旧磁盘,attach新磁盘到/dev/sda1

  9. 启动服务器

标签:ebs,aws,volume,decrease,服务器,磁盘,size
From: https://www.cnblogs.com/faberbeta/p/16921620.html

相关文章

  • WebSocket
    1、WebSocket基于TCP协议,支持二进制通信,双工通信。2、性能和并发能力更强。3、WebSocket独立于HTTP协议,不过我们一般仍然把WebSocket服务器端部署到Web服务器上,因为可以......
  • Python 调用中控门禁并包装成webservice供移动设备调用。
    前段时间做了个小试验,用Python调用中控门禁并包装成webservice供移动设备调用。移动端用的是泛微的OA企业微信端。实现手机远程开门效果,拿着手机,走到哪,哪的门就自动开了,很......
  • 运行AWS报错:No module named awscli.clidriver
    Windows环境安装了AWSCLI,python3暗转了awscli但是powershell运行awshelp报错:Nomodulenamedawscli.clidriver打开报错源头:@echoOFFREM="""setlocalsetPython......
  • FR11 webservice程序数据集
    packagecom.fr.data;importcn.hutool.core.lang.Console;importcn.hutool.http.webservice.SoapClient;importcn.hutool.json.JSONArray;importcn.hutool.json.......
  • js和go对接websocket遇到的问题汇总
    TableofContentsgeneratedwithDocToc​​1.包协议​​​2.相关操作​​​2.1大端编码​​​​2.2大端解码​​​​2.3string转utf8-uint8Array[],utf8-uint8Arra......
  • gin webscoket
    packagemainimport( "encoding/json" "github.com/gin-gonic/gin" uuid"github.com/satori/go.uuid" "net/http" "github.com/gorilla/websocket")//Client......
  • websocket html网页
    <html><body>Welcome<br/><inputid="text"type="text"/><buttononclick="send()">Send</button><buttononclick="closeWebSocket()">Close</bu......
  • aws 与 aliyun 容器集群升级调研
    https://help.aliyun.com/document_detail/86497.html#section-t4q-rgc-7daACK保障最近的三个Kubernetes子版本的稳定运行,同时支持最新版本往前两个子版本的升级功能。例......
  • 【Core Java Volume1】重写equals,hashCode,toString方法
    1重写equals()方法:例:重写父类Employee3的equals方法//重写equals//1显示命名参数otherObject,稍后转化为otherpublicbooleanequals(ObjectotherObject){//2检......
  • 【Core Java Volume 5】集合算法---查找数组、集合最大值的通用方法
    一、查找数组的最大值1 笔试的时候通常查找数组的最大值,数组类型通常是int类型,可以这样直接写出getMax()代码://数组(int类型)publicstaticintgetMax(int[]nums){......