阿里云云盘在线扩容

扩容须知


  1. 为需要扩容的磁盘创建快照,防止数据丢失
  2. 记录分区表信息
    <root@sys-ops-jks02 ~># fdisk -lu
    
    Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x0008de3e
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/vda1   *        2048    83884031    41940992   83  Linux
  3. 确认分区格式
    <root@sys-ops-jks02 ~># parted -l
    Model: Virtio Block Device (virtblk)
    Disk /dev/vda: 42.9GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  42.9GB  42.9GB  primary  ext4         boot
    
    
    # 第二种方法
    <root@sys-ops-jks02 ~># blkid /dev/vda
    /dev/vda: PTTYPE="dos" 

     

posted @ 2022-03-23 16:10  MacoPlus  阅读(210)  评论(0编辑  收藏  举报