Skip to main content
We are Brand SEO Beijing serving international business, your marketing partner, Contact us by mi@mgsh.com.cn

How to expand the capacity of Tencent cloud server and automatically mount the data disk

After repeated communication and testing, I learned that Tencent Cloud cannot expand the system disk at the current location. The system disk is the system disk, and the data disk is the data disk. Because Alibaba Cloud has successfully tested in Alibaba Cloud, it can expand the capacity of the system disk. Therefore, a I really want to try to test Tencent Cloud's system disk test expansion, but the result is an error, you can't.

After communicating with Tencent after-sales customer service, I learned that the technology is different.Therefore, there is no standard for cloud technology in China, and when customers use servers of different cloud service providers, they must master the configuration of different cloud service providers. There is no communication between service providers and no standards are formed, so that customers are more familiar with cloud than suppliers. market.

Expansion configuration

Type: fdisk -l

Output: Extended file mode (unformatted and undivided)

Disk /dev/vda: 53.7 GB, 53687091200 bytes, 104857600 sectors (system disk)

Disk /dev/vdb: 214.7 GB, 214748364800 bytes, 419430400 secto (mounted 200G data disk)

Enter:mkfs -t ext4 /dev/vdb Make sure the file format is not ext4
Input: mkdir /data Create mount point input:mount /dev/vdb /data Mount the disk visual disk b to the mount point data (the system disk defaults to /) Input: df -TH View the disk format and disk size
输入:df -ihT
查看磁盘格式、磁盘数据
输入:yum install gdisk -y
Expansion for Ext4 format disks Tencent does not support system disk expansion

Auto mount at boot

There are multiple options for automatic mounting, but the recommended method is relatively complicated. If there is no special case, I recommend the last method. After all, Tencent after-sales engineers are also used to doing this.

Recommended way:

Auto Mount-Tencent Cloud Server-米国生活

Habit operation:

BLKI

Tencent Disk - Auto Mount -米国生活

mount -a

echo "/dev/vdb /data ext4 defaults 0 0" >> /etc/fstab

mount -a

cat / etc / fstab

Extended reading:

Steps to quickly create a website based on the website SEO framework

How does Alibaba Cloud server expand the capacity of 40G system disk

How to double the speed through Baidu Cloud CDN?

米国生活The founder was selected as one of the 100 People in the 100 Years of the Founding of Discovery Magazine

Back to Top