This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4847|Reply: 0

ESXI virtual machine expands the disk capacity of Linux system

[Copy link]
Posted on 12/28/2021 10:28:07 PM | | | |
Log in to the ESXI management platform to expand the capacity of a 200G hard drive and directly edit the hard disk capacity setting300G(Directly modify the size of the hard disk, note that if there is a snapshot, you must delete the snapshot before you can expand the capacity) As shown in the figure below:



Once the setup is complete,Restart your Linux system, otherwise you will not see the expanded disk space.

Review:

Linux modifications mount to the new /date directory
https://www.itsvse.com/thread-10011-1-1.html

Centos 7 Mounting Data Disk Tutorial
https://www.itsvse.com/thread-4891-1-1.html

View partition format and file system

Run fdisk -l to view the disk information, as shown in the following figure:



Run fdisk -lu <DeviceName>to confirm whether the data disk is partitioned. The command is as follows:

"System(Chinese display type)"="Linux" indicates that the data disk uses MBR partition format, and if "System"="GPT" indicates that the data disk uses GPT format. Here it isMBR partitionFormat!

Run blkid <PartitionName>to confirm the type of file system. The command is as follows:

/dev/sdb1: UUID="a3bf7d7c-0230-4184-b14c-25874ad9b578" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1316b3b3-01"

In this example, the file system type of /dev/sdb1 is ext4



Extend an existing MBR partition

For CentOS 7 and above, install the growpart tool with the following command:

Run the following command to expand partitions:

Note: Space separation is required between /dev/sdb and 1.

At this point, the partition has been expanded to 300G, but the mounted directory still shows 200G, as shown in the following figure:



Expand your file system

To expand the ext* (e.g., ext4) file system, run the following command to expand the file system.




Resources:The hyperlink login is visible.




Previous:Microsoft launches Microsoft.Data.SqlClient to replace System.Data.SqlClient
Next:jQuery Ajax requests to send JSON content
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com