V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
TKKONE
V2EX  ›  VPS

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

  •  
  •   TKKONE ·
    PRO
    · Apr 11, 2017 · 651 views
    This topic created in 3315 days ago, the information mentioned may be changed or developed.

    [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

    2 replies    2017-04-12 09:33:58 +08:00
    msg7086
        1
    msg7086  
       Apr 11, 2017   ❤️ 1
    resize2fs /
    TKKONE
        2
    TKKONE  
    OP
    PRO
       Apr 12, 2017
    @msg7086 resize2fs /dev/vda1 后,增加了 20G 。。汗|||
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3115 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:44 · PVG 21:44 · LAX 06:44 · JFK 09:44
    ♥ Do have faith in what you're doing.