[root@xxx ~]# yum install -y cloud-utils-growpart
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Determining fastest mirrors
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/4): extras/7/x86_64/primary_db | 243 kB 00:00:00
(3/4): epel/x86_64/primary_db | 7.0 MB 00:00:00
(4/4): updates/7/x86_64/primary_db | 13 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package cloud-utils-growpart.noarch 0:0.29-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
cloud-utils-growpart noarch 0.29-5.el7 base 27 k
Transaction Summary
===================================================================================================================================
Install 1 Package
Total download size: 27 k
Installed size: 61 k
Downloading packages:
cloud-utils-growpart-0.29-5.el7.noarch.rpm | 27 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : cloud-utils-growpart-0.29-5.el7.noarch 1/1
Verifying : cloud-utils-growpart-0.29-5.el7.noarch 1/1
Installed:
cloud-utils-growpart.noarch 0:0.29-5.el7
Complete!
[root@xxx~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 40G 29G 8.4G 78% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 588K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 379M 0 379M 0% /run/user/0
[root@xxx~]# growpart /dev/vda 1
CHANGED: partition=1 start=2048 old: size=83881984 end=83884032 new: size=125827039 end=125829087
[root@xxx~]# resize2fs /dev/vda1
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/vda1 is mounted on /; on-line resizing required
old_desc_blocks = 3, new_desc_blocks = 4
The filesystem on /dev/vda1 is now 15728379 blocks long.
[root@xxx~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 29G 28G 52% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 588K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 379M 0 379M 0% /run/user/0
阿里云-云盘扩容不生效
最新推荐文章于 2024-01-12 14:51:28 发布