我调整了GCP实例的大小,但是运行“ df”时却没有显示新的大小

时间:2018-10-31 07:13:00

标签: google-cloud-platform

我调整了GCP实例的大小并添加了几百个演出,但是当我在控制台中运行df时,我看不到磁盘大小已更改。为什么没有显示新空间?

编辑:所以我一直在遵循这里的指南:https://cloud.google.com/compute/docs/disks/add-persistent-disk

但是我的分区表看起来与众不同:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 600G 0 disk `-sda1 8:1 0 100G 0 part /

我尝试使用以下命令来扩展分区,但是它引发了错误:

JTa:~$ sudo growpart /dev/sda1 1 WARN: unknown label failed [sfd_dump:1] sfdisk --unit=S --dump /dev/sda1 /dev/sda1: device contains a valid 'ext4' signature; it is strongly recommended to wipe the device with wipefs(8) if this is unexpected, in order to avoid possible collisions sfdisk: failed to dump partition table: Success FAILED: failed to dump sfdisk info for /dev/sda1

1 个答案:

答案 0 :(得分:0)

尝试使用sudo growpart / dev / sda 1