Ali cloud cloud disk loading and expansion of ECS

 

Mounting

Loading data to disk / opt

fdisk -l
fdisk /dev/vdb
n,p,1,回车,回车,w
fdisk -l
mkfs.ext4 /dev/vdb1 
echo '/dev/vdb1 /opt ext4 defaults 0 0' >>/etc/fstab
mount -a
df -h

 

Expansion

1) First make a snapshot of the cloud disc
2) Buy online expansion disk
3) expansion of the file system

// Check disk size has increased (if not increase, the need to restart the instance) 
fdisk - L 

// Check disk type ext4 
blkid / dev / VD * // expand capacity 
growpart / dev / VDA 1 
resize2fs / dev / Vdal

Expansion: Reference

Note: ESSD does not support online expansion, you must restart the instance of the entry into force
Instance Specifications family (c5, ic5, g5, r5 , g5se) ESSD cloud support plate mounted to 25GE networks, bare metal server instance specification family (ebmhfg5, ebmc4, ebmg5) and enterprise-level heterogeneous computing standard family (vgn5i, gn6i, gn6v, gn5 , gn5i, gn4, ga1, f1, f3), the family does not support other instances of specifications

Guess you like

Origin www.cnblogs.com/weavepub/p/12310004.html