使用parted -l修复一下 即可重新扩容分区
[root@fcecslpbddn21 ~]# parted -l
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 53.7GB 53.7GB primary ext4 boot
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 8590MB 8590MB linux-swap(v1)
Model: Virtio Block Device (virtblk)
Disk /dev/vdc: 2147GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 2147GB 2147GB primary ext4
Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel? fix
Warning: Not all of the space available to /dev/vdd appears to be used, you can fix the GPT to use all of the space (an extra
31457280000 blocks) or continue with the current setting?
Fix/Ignore? fix
Model: Virtio Block Device (virtblk)
Disk /dev/vdd: 21.5TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 5369GB 5369GB xfs primary
[root@fcecslpbddn21 ~]# fdisk /dev/vdd
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/vdd: 21474.8 GB, 21474836480000 bytes, 41943040000 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: gpt
Disk identifier: 51D6A341-D5EC-4EA9-9740-843E35E10C7A
# Start End Size Type Name
1 2048 10485757951 4.9T Microsoft basic primary
Command (m for help): d
Selected partition 1
Partition 1 is deleted
Command (m for help): n
Partition number (1-128, default 1):
First sector (34-41943039966, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039966, default 41943039966):
Created partition 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.