美文网首页
You don't have enough free space

You don't have enough free space

作者: ag4kd | 来源:发表于2022-05-18 21:18 被阅读0次

问题

root@ionc:/var/cache/apt/archives# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfwupdplugin1
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  attr ibverbs-providers libboost-iostreams1.71.0 libboost-thread1.71.0 libcephfs2 libibverbs1 libjansson4 libldb2 libnl-route-3-200 librados2 librdmacm1
  libtalloc2 libtevent0 libwbclient0 python3-crypto python3-dnspython python3-gpg python3-ldb python3-markdown python3-packaging python3-pygments python3-pyparsing
  python3-samba python3-talloc python3-tdb samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
Suggested packages:
  python-markdown-doc python-pygments-doc ttf-bitstream-vera python-pyparsing-doc bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind
  heimdal-clients
The following NEW packages will be installed:
  attr ibverbs-providers libboost-iostreams1.71.0 libboost-thread1.71.0 libcephfs2 libibverbs1 libjansson4 libldb2 libnl-route-3-200 librados2 librdmacm1
  libtalloc2 libtevent0 libwbclient0 python3-crypto python3-dnspython python3-gpg python3-ldb python3-markdown python3-packaging python3-pygments python3-pyparsing
  python3-samba python3-talloc python3-tdb samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
0 upgraded, 32 newly installed, 0 to remove and 3 not upgraded.
Need to get 17.0 MB of archives.
After this operation, 101 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/

解决方案

查看磁盘空间

df
df -h

扩容

命令

  • 增大或减小至10G
lvextend -L 10G /dev/mapper/ubuntu--vg-ubuntu--lv
  • 增加10G
lvextend -L +10G /dev/mapper/ubuntu--vg-ubuntu--lv  
  • 减小10G
lvreduce -L -10G /dev/mapper/ubuntu--vg-ubuntu--lv    
  • 按百分比扩容
lvresize -l  +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv   
  • 执行调整
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv            

对红线的磁盘进行扩容

lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

生效

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

相关文章

网友评论

      本文标题:You don't have enough free space

      本文链接:https://www.haomeiwen.com/subject/abxzurtx.html