LOADING

VCSA 6.7 /storage/archive空间使用100%

虚拟化 2个月前 刘丰源
1,316 0 0

清理

偶然返现VCSA 6.7的 /storage/archive空间使用100%,想着给清理一下。
VCSA 6.7 /storage/archive空间使用100%

root@vcenter [ ~ ]# 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   94G   15M 100% /storage/archive
/dev/mapper/seat_vg-seat                  1.4T  5.5G  1.3T   1% /storage/seat

清理命令:

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

适用于VCSA6.7和7.0版本,其他版本没有测试

扩容

SSH登录VC,使用lsblk命令确定磁盘分区信息

root@vcenter [ ~ ]# lsblk
NAME                           MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                              8:0    0   48G  0 disk 
├─sda1                           8:1    0    2M  0 part 
├─sda2                           8:2    0  128M  0 part /boot
├─sda3                           8:3    0 46.9G  0 part /
└─sda4                           8:4    0    1G  0 part [SWAP]
sdb                              8:16   0    5G  0 disk 
sdc                              8:32   0   50G  0 disk 
└─swap_vg-swap1                254:0    0   50G  0 lvm  [SWAP]
sdd                              8:48   0   50G  0 disk 
└─core_vg-core                 254:3    0   50G  0 lvm  /storage/core
sde                              8:64   0   50G  0 disk 
└─log_vg-log                   254:5    0   50G  0 lvm  /storage/log
sdf                              8:80   0   25G  0 disk 
└─db_vg-db                     254:2    0   25G  0 lvm  /storage/db
sdg                              8:96   0   25G  0 disk 
└─dblog_vg-dblog               254:1    0   25G  0 lvm  /storage/dblog
sdh                              8:112  0  1.4T  0 disk 
└─seat_vg-seat                 254:11   0  1.4T  0 lvm  /storage/seat
sdi                              8:128  0   10G  0 disk 
└─netdump_vg-netdump           254:9    0   10G  0 lvm  /storage/netdump
sdj                              8:144  0   25G  0 disk 
└─autodeploy_vg-autodeploy     254:10   0   25G  0 lvm  /storage/autodeploy
sdk                              8:160  0   25G  0 disk 
└─imagebuilder_vg-imagebuilder 254:7    0   25G  0 lvm  /storage/imagebuilder
sdl                              8:176  0  100G  0 disk 
└─updatemgr_vg-updatemgr       254:6    0  100G  0 lvm  /storage/updatemgr
sdm                              8:192  0  200G  0 disk 
└─archive_vg-archive           254:8    0  200G  0 lvm  /storage/archive
sdn                              8:208  0  1.4T  0 disk 
└─vtsdb_vg-vtsdb               254:4    0  1.4T  0 lvm  /storage/vtsdb
sdo                              8:224  0   25G  0 disk 
└─vtsdblog_vg-vtsdblog         254:13   0   25G  0 lvm  /storage/vtsdblog
sdp                              8:240  0  100G  0 disk 
└─lifecycle_vg-lifecycle       254:12   0  100G  0 lvm  /storage/lifecycle

在vSphere Client中为VC虚拟机调大已有磁盘空间VCSA磁盘作用参考,然后SSH执行命令:
/usr/lib/applmgmt/support/scripts/autogrow.sh

版权声明:刘丰源 发表于 2021年11月23日 上午10:49。
转载请注明:VCSA 6.7 /storage/archive空间使用100% | VirtualVMW

相关文章

暂无评论

暂无评论...