Bootstrap

vCenter 报 /storage/archive剩余空间不足

用SSH登录到vcsa的shell界面,输入df -h 查看发现

/dev/mapper/archive_vg-archive             49G   45G  2.4G  95% /storage/archive

空间确实不足了接下来有两种方法:1:清理日志  2:扩容分区空间

1:清理日志空间(推荐)

清理命令:

cd /storage/archive/vpostgres

find * -mtime +30 -exec rm {} \;    // 查找创建时间大于30天的所有文件,并删除。

root@vcenter [ /storage/archive/vpostgres ]# find * -mtime +30 -exec rm {} \;
root@vcenter [ /storage/archive/vpostgres ]# df -h
Filesystem                                Size  Used Avail Use% Mounted on
devtmpfs                                   16G     0   16G   0% /dev
tmpfs                                      16G  916K   16G   1% /dev/shm
tmpfs                                      16G  684K   16G   1% /run
tmpfs                                      16G     0   16G   0% /sys/fs/cgroup
/dev/sda3                                  11G  6.4G  3.7G  64% /
tmpfs                                      16G  1.9M   16G   1% /tmp
/dev/mapper/imagebuilder_vg-imagebuilder   25G   44M   24G   1% /storage/imagebuilder
/dev/mapper/core_vg-core                   99G  134M   94G   1% /storage/core
/dev/mapper/log_vg-log                     25G  5.0G   19G  22% /storage/log
/dev/mapper/netdump_vg-netdump            9.8G   23M  9.2G   1% /storage/netdump
/dev/sda1                                 120M   34M   78M  31% /boot
/dev/mapper/autodeploy_vg-autodeploy       25G   44M   24G   1% /storage/autodeploy
/dev/mapper/updatemgr_vg-updatemgr         99G  1.5G   92G   2% /storage/updatemgr
/dev/mapper/dblog_vg-dblog                 25G  2.4G   21G  11% /storage/dblog
/dev/mapper/db_vg-db                       25G  1.7G   22G   7% /storage/db
/dev/mapper/archive_vg-archive             99G   60G   34G  64% /storage/archive
/dev/mapper/seat_vg-seat                  1.4T  5.5G  1.3T   1% /storage/seat

-----------------------------------------------------------------------------------------------------------------------

第二种:扩容磁盘空间

 

 先去vCenter中找到vcsa这台虚拟机,然后需要关闭虚拟机才可以给这个硬盘进行扩容

在vSphere Client中为VC虚拟机调大已有磁盘空间,然后SSH执行命令:

/usr/lib/applmgmt/support/scripts/autogrow.sh
;