为啥我的 vps 老是报空间不足?

2017-04-11 13:15:00 +08:00
 tumbzzc

[root@root /]# fdisk -l

Disk /dev/vda: 26.8 GB, 26843545600 bytes, 52428800 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: dos
Disk identifier: 0x000dcb5c

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *        2048    48232063    24115008   83  Linux
/dev/vda2        48232064    52426367     2097152   82  Linux swap / Solaris


[root@root /]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       2.0G  1.8G   78M  96% /
devtmpfs        912M     0  912M   0% /dev
tmpfs           921M     0  921M   0% /dev/shm
tmpfs           921M   25M  896M   3% /run
tmpfs           921M     0  921M   0% /sys/fs/cgroup
tmpfs           921M   25M  896M   3% /etc/machine-id
tmpfs           185M     0  185M   0% /run/user/0

实在搞不懂为什么会这样,明明还有 26.8G 空间,但是 df -hl 只显示 2GB

259 次点击
所在节点    VPS
2 条回复
msg7086
2017-04-11 23:04:09 +08:00
resize2fs /
tumbzzc
2017-04-12 09:33:58 +08:00
@msg7086 resize2fs /dev/vda1 后,增加了 20G 。。汗|||

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/354047

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX